M-Pesa Daraja
io.github.Mr-Macharia/mpesa-daraja-mcp
About M-Pesa Daraja
M-Pesa Daraja is an MCP server published by the GitHub account Mr-Macharia. Safaricom M-Pesa Daraja tools: STK Push, C2B, B2C, B2B, QR, Ratiba. Sandbox-first, idempotent.
It runs on your own machine: your AI client starts it from the PyPI package mpesa-daraja-mcp at version 0.1.4.
It asks for 6 secrets: DARAJA_CONSUMER_KEY, DARAJA_CONSUMER_SECRET, DARAJA_PASSKEY, DARAJA_SECURITY_CREDENTIAL, DARAJA_CALLBACK_TOKEN and DARAJA_INITIATOR_PASSWORD. Give it a key with the least access that still works.
Version 0.1.4 was published on 24 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 1 warn, 0 fail, 1 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
DARAJA_CONSUMER_KEY | Yes | Yes | Daraja app Consumer Key |
DARAJA_CONSUMER_SECRET | Yes | Yes | Daraja app Consumer Secret |
DARAJA_ENV | No | No | sandbox (default) or production |
DARAJA_SHORTCODE | No | No | Paybill / store number (174379 in sandbox) |
DARAJA_PASSKEY | No | Yes | M-Pesa Express passkey (STK Push) |
DARAJA_INITIATOR_NAME | No | No | API operator username (B2C, B2B, status, balance, reversal) |
DARAJA_SECURITY_CREDENTIAL | No | Yes | Encrypted initiator password |
DARAJA_CALLBACK_BASE_URL | No | No | Public HTTPS base for callback URLs |
DARAJA_CALLBACK_LISTEN | No | No | host:port for the built-in callback receiver |
DARAJA_CALLBACK_TOKEN | No | Yes | 16+ random characters; secret path for callbacks |
DARAJA_TOOLSETS | No | No | Comma list: stk,c2b,payouts,ops,qr,ratiba,billmanager |
DARAJA_ALLOW_LIVE_MONEY_MOVEMENT | No | No | true to allow production charges and payouts |
DARAJA_INITIATOR_PASSWORD | No | Yes | Initiator password, encrypted into SecurityCredential at startup (alternative to DARAJA_SECURITY_CREDENTIAL) |
DARAJA_CERT_PATH | No | No | Path to Safaricom's public certificate, used with DARAJA_INITIATOR_PASSWORD |
DARAJA_STATE_DB | No | No | Path of the SQLite file that stores request state and callbacks |
DARAJA_OUTPUT_DIR | No | No | Directory where generated QR PNGs are saved |
DARAJA_CONFIG_DIR | No | No | Directory holding the saved config (default: user config dir) |
DARAJA_DOTENV | No | No | Path of a .env file to load instead of the project one |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/Mr-Macharia/mpesa-daraja-skills-and-mcp |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Warn | Asks for 6 secrets: DARAJA_CONSUMER_KEY, DARAJA_CONSUMER_SECRET, DARAJA_PASSKEY, DARAJA_SECURITY_CREDENTIAL, DARAJA_CALLBACK_TOKEN, DARAJA_INITIATOR_PASSWORD |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account Mr-Macharia |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | mpesa-daraja-mcp 0.1.4 has no setup.py; nothing runs at install |
| Code red flags | Pass | Read 19 files in mpesa-daraja-mcp 0.1.4: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 19 files, including comments and the README |
Popularity & health: 51 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
3 forks, 29 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.Mr-Macharia/mpesa-daraja-mcp |
|---|---|
| Publisher | GitHub account Mr-Macharia |
| How the name is verified | Name verified via GitHub account Mr-Macharia. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | pypi mpesa-daraja-mcp 0.1.4 (stdio) |
| Version | 0.1.4 |
| Published | |
| Last updated | |
| Source repository | https://github.com/Mr-Macharia/mpesa-daraja-skills-and-mcp |
| Website | None linked |
| Category | Other (assigned by keyword rule, not by hand) |
Related servers in Other
- formacv7/7FormaCV MCP server for AI-powered CV formatting, anonymization,…
- omega-mcp6/6Compile and run Omega (.om) programs in a sandbox, and look up…
- OTInstaller6/6Install and run open-source OSINT tools in a local sandbox, asking…
- Fairplug (sandbox)4/4Disclosure-first sponsored offers for AI assistants. Free read-only…
- godot7/7The most complete Godot 4 MCP: secure sandbox, 40+ tools…
- runno7/7MCP Server for the Runno Sandbox