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.
Connect Mpesa MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. 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. The mpesa mcp mcp server is what makes that connection.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
mpesa_stk_push — Trigger STK Push payment prompt on customer's M-Pesa phonempesa_stk_query — Check status of an STK Push requestmpesa_transaction_status — Query any M-Pesa transaction by receipt numbersms_send — Send SMS to 1–1,000 recipients across African networksairtime_send — Send airtime top-up to any subscriber (KES, NGN, GHS, UGX, etc.)Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Configuration is passed through the environment: MPESA_CONSUMER_KEY, MPESA_CONSUMER_SECRET, MPESA_SHORTCODE, MPESA_PASSKEY, MPESA_CALLBACK_URL, MPESA_SANDBOX, AT_USERNAME, AT_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Among the payments and commerce options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Mpesa MCP's toolset — mpesa_stk_push, mpesa_stk_query, mpesa_transaction_status and 2 more — is a fair guide to whether it matches your workflow. It is maintained by gabrielmahia; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| 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.) |
{
"mcpServers": {
"mpesa": {
"command": "uvx",
"args": ["mpesa-mcp"],
"env": {
"MPESA_CONSUMER_KEY": "your-value",
"MPESA_CONSUMER_SECRET": "your-value",
"MPESA_SHORTCODE": "your-value",
"MPESA_PASSKEY": "your-value",
"MPESA_CALLBACK_URL": "your-value",
"MPESA_SANDBOX": "your-value",
"AT_USERNAME": "your-value",
"AT_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MPESA_CONSUMER_KEY | Credential the server authenticates with. | Yes |
| MPESA_CONSUMER_SECRET | Credential the server authenticates with. | Yes |
| MPESA_SHORTCODE | Configuration value read at startup. | Optional |
| MPESA_PASSKEY | Credential the server authenticates with. | Yes |
| MPESA_CALLBACK_URL | Endpoint or connection string the server talks to. | Yes |
| MPESA_SANDBOX | Configuration value read at startup. | Optional |
| AT_USERNAME | Configuration value read at startup. | Optional |
| AT_API_KEY | Credential the server authenticates with. | Yes |
Payments infrastructure meets AI — customers, invoices, subscriptions and current API docs from Stripe's server.
Build for Shopify with current APIs — the official Dev MCP server for schema-accurate storefront and admin code.
Give your AI assistant a supervised window into your Interactive Brokers account — balances, positions, live quotes and orders.
Invoices, payments and disputes through PayPal's official server — commerce operations by conversation.
Enables querying and listing Azure resources and costs directly from an MCP client.
Empowers LLMs with Bitcoin Lightning Network payment capabilities via the ZBD API.