LocalFree server, account needed

M-Pesa Daraja MCP server

Mr-Macharia/mpesa-daraja-skills-and-mcp

Safaricom M-Pesa Daraja tools: STK Push, C2B, B2C, B2B, QR, Ratiba. Sandbox-first, idempotent.

3 GitHub stars3 forks

Install M-Pesa Daraja in Claude Code

Claude Code
claude mcp add m-pesa-daraja -e DARAJA_CONSUMER_KEY=... -e DARAJA_CONSUMER_SECRET=... -- uvx mpesa-daraja-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "m-pesa-daraja": {
      "command": "uvx",
      "args": [
        "mpesa-daraja-mcp"
      ],
      "env": {
        "DARAJA_CONSUMER_KEY": "...",
        "DARAJA_CONSUMER_SECRET": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the M-Pesa Daraja MCP server do?

Safaricom M-Pesa Daraja tools: STK Push, C2B, B2C, B2B, QR, Ratiba. Sandbox-first, idempotent.

Is the M-Pesa Daraja MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does M-Pesa Daraja run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add M-Pesa Daraja to Claude Code?

Run: claude mcp add m-pesa-daraja -e DARAJA_CONSUMER_KEY=... -e DARAJA_CONSUMER_SECRET=... -- uvx mpesa-daraja-mcp

More other tools & integrations MCP servers

View all