L'Atlas / MCP servers / M-Pesa Daraja
MCP server

M-Pesa Daraja

io.github.Mr-Macharia/mpesa-daraja-mcp

MCP server Not tested

Get a review See pricing

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

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp.svg?lang=en)](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)
HTML
<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

Listed on L’Atlas

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”.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.Mr-Macharia/mpesa-daraja-mcp.svg?lang=en)](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)
HTML
<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.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport not listeddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Local launch of package mpesa-daraja-mcp (PyPI). Formats taken from each client’s documentation.

Claude Code
claude mcp add-json mpesa-daraja-mcp '{"command":"uvx","args":["mpesa-daraja-mcp==0.1.6"]}'
Claude (claude.ai, Claude Desktop, Cowork)claude_desktop_config.json (macOS : ~/Library/Application Support/Claude/ ; Windows : %APPDATA%\Claude\ ; Linux : ~/.config/Claude/)
{
  "mcpServers": {
    "mpesa-daraja-mcp": {
      "command": "uvx",
      "args": ["mpesa-daraja-mcp==0.1.6"]
    }
  }
}
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "mpesa-daraja-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mpesa-daraja-mcp==0.1.6"]
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "mpesa-daraja-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mpesa-daraja-mcp==0.1.6"],
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "mpesa-daraja-mcp": {
      "command": "uvx",
      "args": ["mpesa-daraja-mcp==0.1.6"]
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "mpesa-daraja-mcp": {
      "command": "uvx",
      "args": ["mpesa-daraja-mcp==0.1.6"]
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.mpesa-daraja-mcp]
command = "uvx"
args = ["mpesa-daraja-mcp==0.1.6"]

Declared environment variables

NameRequiredDescription
DARAJA_CONSUMER_KEYyes (secret)Daraja app Consumer Key
DARAJA_CONSUMER_SECRETyes (secret)Daraja app Consumer Secret
DARAJA_ENVnosandbox (default) or production
DARAJA_SHORTCODEnoPaybill / store number (174379 in sandbox)
DARAJA_PASSKEYno (secret)M-Pesa Express passkey (STK Push)
DARAJA_INITIATOR_NAMEnoAPI operator username (B2C, B2B, status, balance, reversal)
DARAJA_SECURITY_CREDENTIALno (secret)Encrypted initiator password
DARAJA_CALLBACK_BASE_URLnoPublic HTTPS base for callback URLs
DARAJA_CALLBACK_LISTENnohost:port for the built-in callback receiver
DARAJA_CALLBACK_TOKENno (secret)16+ random characters; secret path for callbacks
DARAJA_TOOLSETSnoComma list: stk,c2b,payouts,ops,qr,ratiba,billmanager
DARAJA_READ_ONLYnotrue hides every tool that moves money or writes
DARAJA_APPROVAL_THRESHOLDnoPayouts above this many shillings need approval in the chat
DARAJA_ALLOWED_RECIPIENTSnoComma list of phones/shortcodes that payouts may go to
DARAJA_ALLOW_LIVE_MONEY_MOVEMENTnotrue to allow production charges and payouts
DARAJA_INITIATOR_PASSWORDno (secret)Initiator password, encrypted into SecurityCredential at startup (alternative to DARAJA_SECURITY_CREDENTIAL)
DARAJA_CERT_PATHnoPath to Safaricom's public certificate, used with DARAJA_INITIATOR_PASSWORD
DARAJA_STATE_DBnoPath of the SQLite file that stores request state and callbacks
DARAJA_OUTPUT_DIRnoDirectory where generated QR PNGs are saved
DARAJA_CONFIG_DIRnoDirectory holding the saved config (default: user config dir)
DARAJA_DOTENVnoPath of a .env file to load instead of the project one
DARAJA_MCP_TOKENno (secret)Bearer token for HTTP mode (32+ random characters)
DARAJA_MCP_HOSTnoHTTP mode bind address (default 127.0.0.1)
DARAJA_MCP_PORTnoHTTP mode port (default 8000)
DARAJA_FORWARD_URLnoYour app's URL: every callback is POSTed on to it, HMAC-signed
DARAJA_FORWARD_SECRETno (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

Markdown
[M-Pesa Daraja — L’Atlas](https://latlas.dev/en/mcp/io.github.Mr-Macharia/mpesa-daraja-mcp)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.