M-Pesa Daraja
io.github.Mr-Macharia/mpesa-daraja-mcp
MCP server Not tested
Safaricom M-Pesa Daraja tools: STK Push, C2B, B2C, B2B, QR, Ratiba. Sandbox-first, idempotent.
Technical sheet
- Author
- Mr-Macharia (registry namespace)
- Repository
- github.com/Mr-Macharia/mpesa-daraja-skills-and-mcp
- Site
- —
- Version
- 0.1.6
- Transport
- stdio
- Authentication
- Key or token (declared in the registry)
- Packages
- mpesa-daraja-mcp 0.1.6 pypi stdio
- Tools
- —
- Categories
- —
- Last updated
- 29 Oct 2026
- Published
- 29 Oct 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: no successful test not yet
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)<a href="https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp"><img src="https://latlas.dev/badge/statut/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded. Latest test not successful: the badge only says “listed”.
[](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)<a href="https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp"><img src="https://latlas.dev/badge/fiche/io.github.Mr-Macharia/mpesa-daraja-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
No remote address published: this server runs locally, so we do not test it.
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport not listed | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Local launch of package mpesa-daraja-mcp (PyPI). Formats taken from each client’s documentation.
claude mcp add-json mpesa-daraja-mcp '{"command":"uvx","args":["mpesa-daraja-mcp==0.1.6"]}'{
"mcpServers": {
"mpesa-daraja-mcp": {
"command": "uvx",
"args": ["mpesa-daraja-mcp==0.1.6"]
}
}
}{
"mcpServers": {
"mpesa-daraja-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["mpesa-daraja-mcp==0.1.6"]
}
}
}{
"mcpServers": {
"mpesa-daraja-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["mpesa-daraja-mcp==0.1.6"],
"tools": ["*"]
}
}
}{
"mcpServers": {
"mpesa-daraja-mcp": {
"command": "uvx",
"args": ["mpesa-daraja-mcp==0.1.6"]
}
}
}{
"mcpServers": {
"mpesa-daraja-mcp": {
"command": "uvx",
"args": ["mpesa-daraja-mcp==0.1.6"]
}
}
}[mcp_servers.mpesa-daraja-mcp]
command = "uvx"
args = ["mpesa-daraja-mcp==0.1.6"]Declared environment variables
| Name | Required | Description |
|---|---|---|
| DARAJA_CONSUMER_KEY | yes (secret) | Daraja app Consumer Key |
| DARAJA_CONSUMER_SECRET | yes (secret) | Daraja app Consumer Secret |
| DARAJA_ENV | no | sandbox (default) or production |
| DARAJA_SHORTCODE | no | Paybill / store number (174379 in sandbox) |
| DARAJA_PASSKEY | no (secret) | M-Pesa Express passkey (STK Push) |
| DARAJA_INITIATOR_NAME | no | API operator username (B2C, B2B, status, balance, reversal) |
| DARAJA_SECURITY_CREDENTIAL | no (secret) | Encrypted initiator password |
| DARAJA_CALLBACK_BASE_URL | no | Public HTTPS base for callback URLs |
| DARAJA_CALLBACK_LISTEN | no | host:port for the built-in callback receiver |
| DARAJA_CALLBACK_TOKEN | no (secret) | 16+ random characters; secret path for callbacks |
| DARAJA_TOOLSETS | no | Comma list: stk,c2b,payouts,ops,qr,ratiba,billmanager |
| DARAJA_READ_ONLY | no | true hides every tool that moves money or writes |
| DARAJA_APPROVAL_THRESHOLD | no | Payouts above this many shillings need approval in the chat |
| DARAJA_ALLOWED_RECIPIENTS | no | Comma list of phones/shortcodes that payouts may go to |
| DARAJA_ALLOW_LIVE_MONEY_MOVEMENT | no | true to allow production charges and payouts |
| DARAJA_INITIATOR_PASSWORD | no (secret) | Initiator password, encrypted into SecurityCredential at startup (alternative to DARAJA_SECURITY_CREDENTIAL) |
| DARAJA_CERT_PATH | no | Path to Safaricom's public certificate, used with DARAJA_INITIATOR_PASSWORD |
| DARAJA_STATE_DB | no | Path of the SQLite file that stores request state and callbacks |
| DARAJA_OUTPUT_DIR | no | Directory where generated QR PNGs are saved |
| DARAJA_CONFIG_DIR | no | Directory holding the saved config (default: user config dir) |
| DARAJA_DOTENV | no | Path of a .env file to load instead of the project one |
| DARAJA_MCP_TOKEN | no (secret) | Bearer token for HTTP mode (32+ random characters) |
| DARAJA_MCP_HOST | no | HTTP mode bind address (default 127.0.0.1) |
| DARAJA_MCP_PORT | no | HTTP mode port (default 8000) |
| DARAJA_FORWARD_URL | no | Your app's URL: every callback is POSTed on to it, HMAC-signed |
| DARAJA_FORWARD_SECRET | no (secret) | HMAC secret for forwarded callbacks (16+ characters) |
Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
[M-Pesa Daraja — L’Atlas](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.