emailmd
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
M-Pesa Daraja and Africa's Talking MCP server: 24 tools; live payments and SMS need confirmation.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 20/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 32/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: 26 (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
SettingsDeveloperEdit Config
Checking the commands · copy buttons appear once they pass
Use Mpesa MCP and tell me what you can do for me, then show me one thing✓ If Claude says it is using Mpesa MCP or shows a Mpesa MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Mpesa MCP yet
Mpesa MCP runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Mpesa MCP
B · Others in Chat & email that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Python (uv) on your computer first (one time)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Checking the commands · copy buttons appear once they pass
You should see Mpesa MCP listed as connected
Use Mpesa MCP and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Mpesa MCP or shows a Mpesa MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Python (uv) on your computer first (one time)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Checking the commands · copy buttons appear once they pass
Use Mpesa MCP and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Mpesa MCP or shows a Mpesa MCP tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Python (uv) on your computer first (one time)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Checking the commands · copy buttons appear once they pass
Use Mpesa MCP and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Mpesa MCP or shows a Mpesa MCP tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
Checking the commands · copy buttons appear once they pass
Claude Desktop (claude_desktop_config.json)
Checking the commands · copy buttons appear once they pass
Cursor (~/.cursor/mcp.json)
Checking the commands · copy buttons appear once they pass
VS Code (mcp.json)
Checking the commands · copy buttons appear once they pass
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
The registry name was verified with the GitHub account gabrielmahia, which owns the repo
Code last changed 9 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
No entries on OSV.dev for mpesa-mcp@0.7.3
Checks only this package version, not every dependency · checked Nov 15, 2026
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/gabrielmahia-mpesa-mcp)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 9 days ago, and the latest version (0.7.3) reached the registry 9 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: emailmd, Kite Discord Bot Builder, e2a — email for AI agents, Infobip MCP, kernelCAD
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.
Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.
Infobip MCP server for omnichannel communication and messaging. SMS, RCS, WhatsApp, Viber and more.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
| This one Mpesa MCP | emailmd | Kite Discord Bot Builder | e2a — email for AI agents | Infobip MCP | kernelCAD | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Cloud or install on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install |
| Needs a key | No | No | No | No | No | No |
| Add with + in Claude | No | No | No | No | Yes | No |
| Basic checks | 3/3 | 5/5 | 4/4 | 4/4 | 4/4 | 4/4 |
| License | MIT | MIT | AGPL-3.0 | Apache-2.0 | MIT | MIT |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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.
This server does not recommend, certify or benchmark any model, and get_model_hint() is kept only for compatibility (it returns neutral guidance). Use a model that follows tool schemas reliably, rehearse in the sandbox first, and keep a person approving every money-moving or messaging call: in live mode the server itself asks the person, through the MCP client, to approve each payment or SMS (a client that cannot show that prompt is refused by default, since 0.7.0), and the limits are operator settings: MPESA_MAX_AMOUNT_KES (default KES 20,000 per payment), MPESA_SESSION_BUDGET_KES (default 50,000 per session) and MPESA_MAX_SMS_RECIPIENTS (default 50 per call).
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.
| 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_ratiba_create | Create an M-Pesa Ratiba standing order (recurring payment the customer approves by PIN); returns the schedule and total commitment |
mpesa_transaction_status | Query any M-Pesa transaction by receipt number |
sms_send | Send an SMS to a list of recipients across African networks (per-call cap, default 50; the person approves each send in live mode) |
airtime_send | Send airtime top-up to any subscriber (KES, NGN, GHS, UGX, etc.) |
mpesa-mcp is available as a hosted MCP server on Glama:
mpesa-mcp was reviewed against NSA CSI U/OO/6030316-26 (May 2026), the NSA Artificial Intelligence Security Center's Cybersecurity Information Sheet on Model Context Protocol security. That sheet is guidance, not a certifiable standard, so the table below is this project's own self-assessment, not an audit or a certification.
| Control area | What this server does |
|---|---|
| Parameter validation | Kenyan phone numbers are normalised and validated; amounts must be positive and within the configured limits |
| Audit logging | One structured log line per tool call; phone numbers are logged as a truncated SHA-256 hash, other identifiers as given; a terminal line records how each money-out call ended |
| Spend limits | A per-payment cap, a per-session budget, an optional recipient allowlist, and confirmation required in live mode (see Bounded authorisation below) |
| Token lifecycle | The Daraja OAuth token is cached with its expiry and refreshed automatically |
| Error handling | Daraja API errors are returned as structured results; an unexpected exception is logged by type only and re-raised, and the MCP framework reports it to the client |
| HTTPS | All Daraja API calls use HTTPS |
| Secrets | Live credentials come from environment variables; the Safaricom sandbox test shortcode and passkey in this README are published examples, not secrets |
See SECURITY.md for how to report a vulnerability.
Reference: NSA CSI_MCP_SECURITY.pdf (May 2026, UNCLASSIFIED)
pip install mpesa-mcp
Or run directly with uvx:
uvx mpesa-mcp
Set these environment variables before starting the server:
# M-Pesa (Safaricom Daraja)
MPESA_CONSUMER_KEY=your_consumer_key MPESA_CONSUMER_SECRET=your_consumer_secret MPESA_SHORTCODE=174379 # sandbox test shortcode MPESA_PASSKEY=your_passkey MPESA_CALLBACK_URL=https://yourdomain.com/mpesa/callback MPESA_SANDBOX=true # set false for production
AT_USERNAME=sandbox # your AT username (sandbox for testing) AT_API_KEY=your_at_api_key
New Daraja account, or setting this up on a new machine? Follow the sandbox setup guide: it records the verified procedure (create the app with only Lipa Na M-Pesa Sandbox ticked, use the published test shortcode and passkey, point MPESA_CALLBACK_URL at a public HTTPS address you can watch) and what a healthy result looks like. Consumer keys cannot be shared, so each developer creates their own free sandbox app.
M-Pesa sandbox: https://developer.safaricom.co.ke — create a free app to get test credentials.
174379bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919Africa's Talking sandbox: https://account.africastalking.com — use username=sandbox, any API key.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": { "mpesa": { "command": "uvx", "args": ["mpesa-mcp"], "env": { "MPESA_CONSUMER_KEY": "your_key", "MPESA_CONSUMER_SECRET": "your_secret", "MPESA_SHORTCODE": "174379", "MPESA_PASSKEY": "your_passkey", "MPESA_CALLBACK_URL": "https://yourdomain.com/mpesa/callback", "MPESA_SANDBOX": "true", "AT_USERNAME": "sandbox", "AT_API_KEY": "your_at_key" } } } }
claude mcp add mpesa -- uvx mpesa-mcp
Set env vars in your shell before running claude.
Once connected, you can ask your AI agent:
"Send KES 500 STK Push to +254712345678 for order #1234"
"Check if the payment QKL8ABC123 has been received"
"Send an SMS to these 50 farmers with today's maize price: [list]"
"Top up KES 50 airtime for our field agents: [list of numbers]"
Field agent payment dispatch
"Send KES 300 STK Push to each of these 12 field agents for today's data collection: [list]"
The agent triggers 12 sequential STK pushes, tracks each checkout_request_id, and polls for confirmation — without any code from you.
Farmer alert + airtime
"SMS these 200 Garissa farmers that the river is rising. Then top up KES 20 airtime each so they can call in reports."
One prompt → 200 SMS messages and 200 airtime top-ups across Safaricom, Airtel, and Telkom.
Payment reconciliation
"Check whether receipt OKL8M3B2HF was a successful payment and how much it was for"
Useful for support agents using Claude to verify M-Pesa transactions in real time.
All tools declare MCP tool annotations so clients can gate calls appropriately:
| Tool | readOnly | destructive | idempotent |
|---|---|---|---|
mpesa_stk_push | ❌ | ✅ | ❌ |
mpesa_stk_query | ✅ | ❌ | ✅ |
mpesa_ratiba_create | ❌ | ✅ | ❌ |
mpesa_transaction_status | ✅ | ❌ | ✅ |
sms_send | ❌ | ✅ | ❌ |
airtime_send | ❌ | ✅ | ❌ |
Claude Desktop and other MCP clients will request confirmation before triggering payment, SMS, or airtime operations.
Capabilities are advertised via .well-known/mcp.json — the emerging MCP Server Cards standard. Registries and browsers can index this server's tools without connecting to it.
# Check capabilities
curl https://raw.githubusercontent.com/gabrielmahia/mpesa-mcp/main/.well-known/mcp.json
These tests check this server's behaviour. This README makes no claim about how accurate any model is when it uses this server.
mpesa-mcp is tested against all three Kenyan phone number formats, boundary amount values, and missing optional fields:
pytest tests/ -v # run full suite
pytest tests/test_phone_formats.py # format normalization pytest tests/test_boundary_amounts.py # min/max amount edge cases
Write operations (STK push, SMS, airtime) have explicit validation before any API call is made.
Mojaloop (funded by the Gates Foundation) handles payment *interoperability* — connecting banks, mobile money wallets, and merchants across DFSPs in East Africa and beyond.
mpesa-mcp handles the *AI agent tooling layer* — enabling AI coding assistants to trigger and query M-Pesa payments programmatically.
These are complementary:
See the Mojaloop documentation contribution for more on this pattern.
mpesa-mcp implements MCP (Model Context Protocol) — how an AI agent talks to tools.
There is a complementary protocol, A2A (Agent-to-Agent), which handles how agents talk to *each other*. They solve different problems and work together:
For most integrations you only need MCP. A2A becomes relevant when you're building multi-agent systems where a payment workflow coordinates with other specialized agents.
git clone https://github.com/gabrielmahia/mpesa-mcp
cd mpesa-mcp pip install -e ".[dev]" pytest tests/ -v
Do not commit API keys. Use environment variables or a secrets manager. Report vulnerabilities to: contact@aikungfu.dev
Swahili and translation (arXiv:2509.04516, 2025): in a small news-classification experiment, a Swahili-native BERT model made 0.36% errors against 1.47% for an English model applied to machine-translated Swahili, so native beat translate-then-classify on that task. This server's tool descriptions are written so they can be read in