Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

gabrielmahia/mpesa-mcp

Domain:

digital infrastructure

Record type:

softwaretools
Creator:
gab
Host:
MCP server for M-PESA Daraja API — STK push, B2C, balance, status. First African mobile money MCP. 7 tools. # mpesa-mcp > MCP server for East African fintech APIs — M-Pesa (Safaricom Daraja) and Africa's Talking Give your AI agent the ability to trigger M-Pesa payments, check transaction status, send SMS, and top up airtime across 20+ African telecom networks. ## Tested With ``` claude-sonnet-5 (recommended — call get_model_hint() for guidance) claude-opus-4-8 (for highest-accuracy compliance reasoning) ``` Claude Sonnet 5 (released June 30, 2026) finishes multi-step M-PESA workflows without stopping short and self-corrects tool-call errors without prompting. Terminal-Bench score 80.4% vs Sonnet 4.6's 67.0% — the benchmark most analogous to payment agent work. ## Why this exists M-Pesa processes more transactions per day than PayPal does in Africa. Africa's Talking reaches users in 20+ countries on basic phones via SMS and USSD. Neither has an MCP server. This means every AI agent built today — Claude, GPT, Gemini, or any MCP-compatible runtime — cannot trigger an M-Pesa payment or send a Kiswahili SMS without custom integration work. `mpesa-mcp` closes that gap in one `pip install`. ## Tools | Tool | Description | |---|---| | `mpesa_stk_push` | Trigger STK Push payment prompt on customer's M-Pesa phone | | `mpesa_stk_query` | Check status of an STK Push request | | `mpesa_transaction_status` | Query any M-Pesa transaction by receipt number | | `sms_send` | Send SMS to 1–1,000 recipients across African networks | | `airtime_send` | Send airtime top-up to any subscriber (KES, NGN, GHS, UGX, etc.) | ## Coverage - **M-Pesa:** Kenya (Safaricom Daraja v3) — STK Push, C2B, transaction status - **SMS/Airtime:** Kenya, Nigeria, Ghana, Tanzania, Uganda, Rwanda, South Africa, and 15+ more via Africa's Talking ## Glama (hosted MCP) mpesa-mcp is available as a hosted MCP server on Glama: ## Security — NSA MCP Guidance Compliant `mpesa-mcp` was updated in response to **NSA CSI U/OO/6030316-26 (May 2026)** — the NSA Artificial Intelligence Securit …

Visit

github.com

Languages

LusengoSwahiliSwahili, CoastalSwahili, Congo

Tags

africaai-agentseast-africafintechkenyamcpmodel-context-protocolmpesaopen-sourcepython+1

Licenses

MIT

Similar

gabrielmahia/county-mcpgabrielmahia/usafiri-mcpgabrielmahia/bima-mcpgabrielmahia/offline-mcpgabrielmahia/habari-mcpgabrielmahia/ardhi-mcp

gabrielmahia/county-mcp

Kenya 47 counties local government data via MCP — county info, budgets, services, CDF, wards, contac

gabrielmahia/usafiri-mcp

MCP server for Kenya transport — matatu routes, NTSA services, boda licensing, freight logistics. 5

gabrielmahia/bima-mcp

MCP server for Kenya insurance — NHIF coverage, parametric crop risk, microinsurance comparison. 6 t

gabrielmahia/offline-mcp

Local AI inference infrastructure for East Africa — Ollama, open weights, degraded-mode fallbacks. 6

gabrielmahia/habari-mcp

MCP server for Kenya civic information — Kenya Gazette, government tenders, open data, parliament tr

gabrielmahia/ardhi-mcp

MCP server for Kenya land administration — title search, land rates, subdivision, NLC dispute resolu