mpesa-mcp: The First African Fintech MCP Server You Can Install Right Now

mpesa-mcp: The First African Fintech MCP Server You Can Install Right Now

mpesa-mcp is now on Anthropic's official MCP registry, giving Claude Code access to M-Pesa payments and Africa's Talking SMS.

Ggentic.news Editorial·2h ago·4 min read·3 views·via devto_mcp
Share:

mpesa-mcp: The First African Fintech MCP Server You Can Install Right Now

Six weeks after its initial release, mpesa-mcp has landed on Anthropic's official MCP registry. This is the first African fintech entry in the registry that Claude Code uses to discover MCP servers. If you're building applications for East Africa or need payment/SMS integrations, this server gives Claude direct access to M-Pesa Daraja and Africa's Talking APIs.

What It Does

mpesa-mcp provides tools for:

  • M-Pesa STK Push: Initiate mobile payment prompts to Kenyan phone numbers
  • Transaction status checks: Query payment completion
  • Africa's Talking SMS: Send SMS messages through Africa's Talking gateway
  • Phone number normalization: Automatically converts between Kenyan phone formats (0712345678 ↔ 254712345678 ↔ +254712345678)

This server bridges the gap between AI agents and the financial infrastructure used by millions in East Africa.

Setup & Installation

Installation is straightforward via the official registry:

Cover image for 6 weeks later: mpesa-mcp is on the official MCP Registry — here's what I learned

# Install using uvx (recommended)
uvx mpesa-mcp

# Or install via pip
pip install mpesa-mcp

Once installed, configure it in your Claude Desktop claude_desktop_config.json:

{
  "mcpServers": {
    "mpesa-mcp": {
      "command": "uvx",
      "args": ["mpesa-mcp"],
      "env": {
        "DARAJASANDBOX_CONSUMER_KEY": "your_key_here",
        "DARAJASANDBOX_CONSUMER_SECRET": "your_secret_here",
        "AFRICASTALKING_USERNAME": "sandbox",
        "AFRICASTALKING_API_KEY": "your_api_key_here"
      }
    }
  }
}

Key Features for Claude Code Users

1. Phone Number Normalization (The Hidden Time-Saver)

The server automatically handles all three Kenyan phone number formats. This solves the most common Daraja integration bug where developers struggle with format mismatches. When you ask Claude to "send a payment request to 0712345678," the server transparently converts it to the format Daraja expects.

2. Sandbox-First Design

The server works with M-Pesa's Daraja sandbox, meaning you can test payment flows without real money. Get your sandbox credentials from Safaricom Developer Portal, and you're ready to prototype.

3. Production-Ready Structure

The maintainer learned from listing friction and now ships with:

  • ASCII-only glama.json (no unicode characters that break validation)
  • Proper Dockerfile for MCP server inspection
  • Version alignment across all configuration files
  • GitHub releases for every version

When To Use It

Use mpesa-mcp when:

  1. Building East African market applications with Claude Code
  2. Prototyping payment integrations without writing boilerplate API code
  3. Testing SMS notification flows for African phone numbers
  4. Creating civic tools that need to interact with M-Pesa infrastructure

The Developer's Lessons (What You Should Know)

The maintainer discovered several friction points in the MCP ecosystem:

  1. The Glama validation is strict: A single unicode em-dash in glama.json caused silent rejection. Your MCP servers need ASCII-only configuration files.

  2. The clone-to-view ratio matters: Developers evaluating MCP servers clone repositories (~9:1 ratio for mpesa-mcp), not just browse. They check CI/CD and issue history to assess maintenance quality.

  3. Documentation placement is critical: The phone number normalization feature was buried in the README but should have been front-and-center. When building your own MCP servers, lead with the feature that solves the most common pain point.

What's Coming Next

The maintainer plans:

  1. WapiMaji SMS pipeline: Drought alerts to Kenyan farmers via Africa's Talking (requires registered shortcode)
  2. daraja-mock v2: Local test server with web UI for non-developers to inspect STK Push flows
  3. Broader civic tools: Parliamentary accountability, crop prices, and remittance transparency tools

Try It Today

If you're working on East African projects or want to explore fintech integrations with Claude Code, install mpesa-mcp now. The sandbox setup takes about 30 minutes, and you'll have a working payment/SMS integration that Claude can control directly.

# Quick evaluation
uvx mpesa-mcp --help

Check the repository for complete documentation: github.com/gabrielmahia/mpesa-mcp

AI Analysis

Claude Code users working on international or fintech projects should immediately evaluate mpesa-mcp. This server solves a specific, high-friction problem: integrating with M-Pesa's API. Instead of writing and maintaining your own wrapper code, you get battle-tested tools that handle phone number normalization and sandbox/production transitions. Change your workflow: When prototyping applications for East African markets, start with `uvx mpesa-mcp` configured in Claude Desktop. Ask Claude to "initiate a test payment to 254712345678 for 100 KES" or "send an SMS alert about service downtime." The server handles the API complexity while you focus on application logic. Also note the maintenance signals: This server has passed the strict validation of Anthropic's official registry and received attention from the awesome-mcp-servers maintainer. The high clone-to-view ratio indicates serious developer evaluation, not just bot traffic. When choosing MCP servers for production use, these are the quality indicators to look for.
Original sourcedev.to

Trending Now

More in Products & Launches

View all