Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Africa Payments MCPSend KES 5,000 to 254712345678 via M-Pesa"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Africa Payments MCP
The missing piece for African fintech. One MCP server. Every major African payment provider. Natural language payments.
β¨ 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 |
|
|
π‘ 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
One-Line Installer (Recommended)
curl -fsSL https://raw.githubusercontent.com/kenyaclaw/africa-payments-mcp/main/scripts/install.sh | bashOr with wget:
wget -qO- https://raw.githubusercontent.com/kenyaclaw/africa-payments-mcp/main/scripts/install.sh | bashManual Installation
1. Install
npm install -g @kenyaclaw/africa-payments-mcp2. Configure
Interactive wizard (recommended):
africa-payments-mcp init
# Beautiful interactive setup with emoji and progress indicatorsAuto-detect existing credentials:
africa-payments-mcp detect --output config.json
# Automatically finds MPESA_*, PAYSTACK_* env vars and config files3. 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:latestDocker 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:
π΄ Fork the repo
πΏ Create your branch (
git checkout -b feature/amazing-feature)π» Make your changes
β Add tests
π Update documentation
π Submit a PR
π 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

