Skip to content
View gabrielmahia's full-sized avatar

Block or report gabrielmahia

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
gabrielmahia/README.md

Gabriel Mahia

Decision Infrastructure for East Africa

GitHub PyPI HuggingFace Dev.to Glama


Kenyan diaspora engineer building coordination infrastructure for East Africa β€” reducing opacity, enabling coordination, amplifying agency in under-resourced systems.


The Positioning

When 300 Kimi agent swarms show up in Nairobi, the tool layer is already ready.

Agent swarms are useful in proportion to the quality of their domain tools. The 30-server East Africa coordination stack is the structured API layer that makes AI agents actually work for Kenya's institutional landscape β€” not web-searched guesses, structured tool calls.


Protocol Implementations for East Africa

Protocol Repo Status
MCP (Model Context Protocol) mpesa-mcp 🟒 PyPI
A2A (Agent-to-Agent) kenya-a2a 🟒 Live
Google ADK kenya-adk 🟒 Live

MCP Servers β€” Coordination Infrastructure

Economic Layer (10)

Server Domain PyPI
mpesa-mcp M-PESA mobile payments βœ…
mkopo-mcp Credit scoring βœ…
bima-mcp Insurance βœ…
soko-mcp Commodity markets βœ…
sifa-mcp Reputation/trust βœ…
remit-mcp Remittance corridors βœ…
kra-mcp Tax compliance (β‰ˆ TurboTax) βœ…
faida-mcp Capital markets (β‰ˆ Fidelity) βœ…
familia-mcp Family law & inheritance (β‰ˆ LegalZoom) βœ…
diaspora-mcp Full diaspora lifecycle βœ…

Physical Infrastructure (4)

Server Domain PyPI
wapimaji-mcp Drought & water βœ…
nishati-mcp Energy / KPLC βœ…
usafiri-mcp Transport / NTSA βœ…
ardhi-mcp Land administration βœ…

Social Infrastructure (9)

Server Domain PyPI
afya-mcp Health / SHA (SHIF) βœ…
afya-ya-akili-mcp Mental health (β‰ˆ BetterHelp) βœ…
elimu-mcp Education / HELB βœ…
kazi-mcp Labor market βœ…
haki-ya-kazi-mcp Labour rights (β‰ˆ ACAS) βœ…
kilimo-mcp Precision agriculture (β‰ˆ Climate Corp) βœ…
jumuia-mcp SACCOs & chamas βœ…
church-mcp Community/religious institutions βœ…
tafsiri-mcp Translation (Swahili, Kikuyu, Luo) βœ…

Civic / Governance Layer (5)

Server Domain PyPI
nyumba-mcp Housing βœ…
habari-mcp Civic info / Gazette βœ…
mazingira-mcp Environment / NEMA βœ…
county-mcp Kenya 47 counties βœ…
historia-mcp Historical archives βœ…

Foundation Layer (2)

Server Domain PyPI
civic-agent-kit Unified civic SDK βœ…
offline-mcp Local AI inference (Ollama) βœ…

Applications (Streamlit)

easystocktrader Β· DarajaAI Β· ShuleAI Β· KaziAI Β· OpenResilience Kenya


Across Every Developer Platform

πŸ™ GitHub
πŸ€— HuggingFace β€” East Africa datasets
πŸ“¦ PyPI β€” MCP servers and tools
πŸ“Š Kaggle β€” Kenya data notebooks
πŸ“ Dev.to β€” 23+ articles
⚑ Glama β€” MCP directory


Foundation

ML Credentials (2020)
Stanford ML Specialization Β· DeepLearning.AI (Andrew Ng)
Verify β†—

Diaspora
Virginia Β· Building for 47M+ Swahili speakers


Philosophy

"Diagnose structural absences, not competitive gaps."

M-Pesa wasn't missing from the AI agent ecosystem because engineers hadn't tried. It was missing because the engineer who understood it from the inside wasn't building there yet.

The MCP servers in this portfolio were built at the intersection of three things: what the East African institutional layer needs, what AI coordination infrastructure makes possible, and what I uniquely know how to build.

That intersection is where I work.

Five principles that drive everything here:

  • Build rails, not trains. TCP/IP, railroads, M-Pesa β€” infrastructure creates ecosystems. Each MCP server is a rail. Others build the trains.

  • Diagnose what's missing. Not "how do I compete?" but "what doesn't exist yet?"

  • Stewardship, not ownership. Data sovereignty: communities should steward their own data. That's why offline-mcp runs on a Raspberry Pi with no API key.

  • Compounding beats intensity. The servers were built incrementally. Each one compounds the next.

  • Timing is strategy. The AI infrastructure window is open now. The Nairobi AI hub moment is real. Build now or build later β€” but the leverage differs.

"Become who you are, build what is missing, steward what you've been given, and leave more order than chaos behind."


Why Data Sovereignty Matters

Across the Global South, citizens' health records, land titles, and civic data are increasingly extracted by foreign systems as conditions for receiving aid, services, or connectivity.

This portfolio builds the alternative: AI-powered institutional infrastructure that runs locally, processes data in-country, and gives communities control of their own information.

The offline-mcp server is the sovereignty floor β€” Ollama-backed inference that runs on a Raspberry Pi with no API key and no data leaving the device.

The sii-stack is the production architecture β€” n8n + LiteLLM with tri-polar routing (Western / Eastern / Sovereign) so no single government or corporation controls the intelligence layer.

Every MCP server in this stack was built so that a Kenyan community health worker, land administrator, or small business owner can get AI assistance without their data becoming someone else's training set.


Pinned Loading

  1. gabrielmahia.github.io gabrielmahia.github.io Public

    Gabriel Mahia β€” building decision infrastructure for under-resourced systems

    HTML

  2. reli reli Public

    On-ramp to East Africa's MCP coordination stack β€” install, wire, verify, and demo 30+ Kenya-domain MCP servers in one command.

    Python 1

  3. mpesa-mcp mpesa-mcp Public

    MCP server for M-PESA Daraja API β€” STK push, B2C, balance, status. 7 tools.

    Python 4 2

  4. kenya-legal-rag kenya-legal-rag Public

    βš–οΈ RAG system over Kenya legal documents β€” query the Constitution, Employment Act, Land Act, and Companies Act in Swahili

    Python 3

  5. civic-agent-kit civic-agent-kit Public

    Unified SDK for Kenya civic AI agents β€” NHIF, KRA, NTSA integrations, Swahili locale, MCP-native. 8 tools.

    Python 1

  6. kenya-rag kenya-rag Public

    KenyaRAG β€” LlamaIndex RAG system for Kenya civic data. Natural language queries over parliament, budget, and policy documents.

    Python