Skip to main content
Glama
kenyaclaw

Africa Payments MCP

by kenyaclaw

🌍 Africa Payments MCP

The missing piece for African fintech. One MCP server. Every major African payment provider. Natural language payments.

CI Security codecov npm version Downloads License: MIT Built by Africans


✨ What if accepting payments was as easy as sending a message?

# "Send KES 5,000 to Mary via M-Pesa"
# "Request $100 from a customer in Nigeria"  
# "Check if that MTN MoMo payment came through"
# "Process a refund for order #12345"

No more wrestling with 5 different APIs. No more juggling documentation.
Just natural language that works across M-Pesa, Paystack, MTN MoMo, and more.


🎬 See It In Action

Demo with Claude

Demo with Cursor

Claude Demo

Cursor Demo


πŸ’‘ Why Africa Payments MCP?

The Problem 😀

Africa has the world's most innovative payment systemsβ€”M-Pesa, Paystack, Flutterwave, MTN MoMo, Chipper Cashβ€”but integrating them is a nightmare:

  • πŸ”€ Fragmented APIs: M-Pesa uses SOAP. Paystack uses REST. MTN MoMo uses something entirely different.

  • πŸ“š Scattered Documentation: Hours spent hunting for the right docs

  • πŸ”§ Different Auth Methods: API keys, OAuth, basic authβ€”each one unique

  • πŸ› Edge Cases Everywhere: Each provider has quirks that break your code

  • ⏱️ Weeks of Integration Time: Before you process a single payment

The Solution 🎯

One MCP server. Every provider. Natural language.

// Instead of this...
const mpesa = new MpesaAPI({ consumerKey, consumerSecret, passkey });
await mpesa.authenticate();
const result = await mpesa.stkPush({ phone, amount, accountRef });

// Just say this:
"Send KES 5,000 to 254712345678 via M-Pesa"

The Impact πŸš€

  • ⚑ Ship in hours, not weeks β€” Your first payment working today

  • 🧠 AI-native from day one β€” Built for the era of AI agents

  • 🌍 Truly Pan-African β€” One integration covers the continent

  • πŸ”“ Open Source β€” MIT licensed, community-driven

  • πŸ› οΈ Developer-First β€” Built by Africans who understand the pain


πŸš€ Quick Start

curl -fsSL https://raw.githubusercontent.com/kenyaclaw/africa-payments-mcp/main/scripts/install.sh | bash

Or with wget:

wget -qO- https://raw.githubusercontent.com/kenyaclaw/africa-payments-mcp/main/scripts/install.sh | bash

Manual Installation

1. Install

npm install -g @kenyaclaw/africa-payments-mcp

2. Configure

Interactive wizard (recommended):

africa-payments-mcp init
# Beautiful interactive setup with emoji and progress indicators

Auto-detect existing credentials:

africa-payments-mcp detect --output config.json
# Automatically finds MPESA_*, PAYSTACK_* env vars and config files

3. Connect to Your AI

Add to your MCP client configuration:

{
  "mcpServers": {
    "africa-payments": {
      "command": "africa-payments-mcp",
      "env": {
        "MPESA_CONSUMER_KEY": "your_key",
        "PAYSTACK_SECRET_KEY": "your_key"
      }
    }
  }
}

4. Start Accepting Payments

Open Claude, ChatGPT, Cursor, or any MCP client and just ask:

"Send KES 5,000 to Mary via M-Pesa"


🐳 Docker Quick Start

Run with Docker (no Node.js installation required):

# Pull the latest image
docker pull kenyaclaw/africa-payments-mcp:latest

# Run with a config file
docker run -v $(pwd)/config.json:/app/config/config.json \
  kenyaclaw/africa-payments-mcp:latest

# Or run with environment variables
docker run -e MPESA_CONSUMER_KEY=xxx \
  -e MPESA_CONSUMER_SECRET=xxx \
  -e PAYSTACK_SECRET_KEY=xxx \
  kenyaclaw/africa-payments-mcp:latest

Docker Compose

version: '3.8'
services:
  africa-payments:
    image: kenyaclaw/africa-payments-mcp:latest
    volumes:
      - ./config.json:/app/config/config.json:ro
    environment:
      - NODE_ENV=production
    ports:
      - "3000:3000"  # For webhook support
    restart: unless-stopped

πŸ”Œ Supported Providers

Provider

Countries

Status

Features

M-Pesa

πŸ‡°πŸ‡ͺ Kenya, πŸ‡ΉπŸ‡Ώ Tanzania, πŸ‡²πŸ‡Ώ Mozambique, πŸ‡¨πŸ‡© DRC, πŸ‡ͺπŸ‡¬ Egypt

βœ… Ready

STK Push, B2C, B2B, C2B, Reversal

Paystack

πŸ‡³πŸ‡¬ Nigeria, πŸ‡¬πŸ‡­ Ghana, πŸ‡ΏπŸ‡¦ South Africa, +4 more

βœ… Ready

Cards, Bank Transfer, Mobile Money

MTN MoMo

πŸ‡³πŸ‡¬ Nigeria, πŸ‡¬πŸ‡­ Ghana, πŸ‡ΊπŸ‡¬ Uganda, +12 more

βœ… Ready

Collections, Disbursements, Remittances

Flutterwave

πŸ‡³πŸ‡¬ Nigeria, πŸ‡°πŸ‡ͺ Kenya, πŸ‡ΏπŸ‡¦ South Africa, +30 more

🚧 Beta

Cards, Mobile Money, Bank Transfer

Chipper Cash

πŸ‡³πŸ‡¬ Nigeria, πŸ‡¬πŸ‡­ Ghana, πŸ‡°πŸ‡ͺ Kenya, +7 more

🚧 Beta

P2P Transfers, Payments

πŸ’‘ Want to add a provider? See our contribution guide


πŸ“– Documentation


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Your AI Agent                             β”‚
β”‚              (Claude, ChatGPT, Cursor, etc.)                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚ MCP Protocol
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Africa Payments MCP Server                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚   M-Pesa    β”‚ β”‚  Paystack   β”‚ β”‚     MTN MoMo            β”‚ β”‚
β”‚  β”‚   Adapter   β”‚ β”‚   Adapter   β”‚ β”‚     Adapter             β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ Flutterwave β”‚ β”‚ ChipperCash β”‚ β”‚    More Coming...       β”‚ β”‚
β”‚  β”‚   Adapter   β”‚ β”‚   Adapter   β”‚ β”‚                         β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🌟 What Developers Are Saying

"Integrated M-Pesa in 10 minutes. Took me 3 weeks the old way."
β€” David O., Fintech Developer, Lagos

"Finally, payments that work the way I think about them."
β€” Grace W., Startup Founder, Nairobi

"The USB-C of African payments. One connection, everything works."
β€” Kofi A., Full Stack Engineer, Accra


🀝 Contributing

We built this for Africa's developers. Help us make it better:

  1. 🍴 Fork the repo

  2. 🌿 Create your branch (git checkout -b feature/amazing-feature)

  3. πŸ’» Make your changes

  4. βœ… Add tests

  5. πŸ“ Update documentation

  6. πŸ”€ Submit a PR

Read our Contributing Guide


πŸ“œ License

MIT License β€” use it, modify it, build the future of African fintech.


πŸ’¬ Join the Community


πŸš€ Launch Materials

Ready to launch? Check out our complete launch kit: πŸ“‹ LAUNCH.md - Twitter, HN, Dev.to, LinkedIn, Product Hunt templates

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kenyaclaw/africa-payments-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server