Logo Lanfrica

gabrielmahia/mpesa-mcp

Domaine:

digital infrastructure

Type de record:

softwaretools
Créateur:
gab
Hôte:
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 …