afrimomo-mcp
v0.2.0
Published
Model Context Protocol server for Afrimomo SDK - enabling AI assistants to interact with African payment providers (PayChangu & PawaPay)
Maintainers
Readme
Afrimomo MCP Server
Model Context Protocol (MCP) server for the Afrimomo SDK, enabling AI assistants like Claude to interact with African payment providers.
Supported Providers
- PayChangu - Payment services in Malawi (12 tools)
- PawaPay - Mobile money payments across Sub-Saharan Africa (12 tools)
- OneKhusa - Enterprise payments in Malawi & Southern Africa (18 tools)
Features
- 42 comprehensive tools for payment operations
- Support for deposits, payouts, refunds, and transfers
- Collections and disbursements with approval workflows
- Batch payment processing
- Balance checking and transaction verification
- Mobile money and bank account operations
- Sandbox and production environment support
Installation
# Global installation
npm install -g afrimomo-mcp
# Or use directly with npx (no installation required)
npx afrimomo-mcpQuick Start
1. Get API Credentials
- PayChangu: Sign up at https://in.paychangu.com/register
- PawaPay: Sign up at https://www.pawapay.io/
- OneKhusa: Contact https://onekhusa.com/
2. Configure Claude Desktop
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"afrimomo": {
"command": "npx",
"args": ["-y", "afrimomo-mcp"],
"env": {
"PAYCHANGU_SECRET_KEY": "your-paychangu-secret-key",
"PAWAPAY_JWT": "your-pawapay-jwt-token",
"ONEKHUSA_API_KEY": "your-onekhusa-api-key",
"ONEKHUSA_API_SECRET": "your-onekhusa-api-secret",
"ONEKHUSA_ORGANISATION_ID": "your-organisation-id",
"ENVIRONMENT": "DEVELOPMENT"
}
}
}
}You only need to configure the providers you plan to use.
3. Restart Claude Desktop
Fully quit and restart Claude Desktop to load the MCP server.
4. Start Using
Try commands like:
- "Show me PayChangu mobile money operators"
- "What's my PawaPay wallet balance?"
- "Create a OneKhusa batch disbursement for January salaries"
Available Tools (42 Total)
PayChangu Tools (12)
Payment & Transaction Tools
paychangu_initiate_payment- Start hosted checkout paymentpaychangu_verify_transaction- Verify transaction status by tx_refpaychangu_initiate_direct_charge- Create virtual account for instant paymentpaychangu_get_transaction_details- Get direct charge transaction details
Bank Transfer Tools
paychangu_process_bank_transfer- Process bank transfer paymentpaychangu_get_supported_banks- List supported banks by currency
Mobile Money & Payout Tools
paychangu_get_mobile_operators- List mobile money operatorspaychangu_mobile_money_payout- Send payout to mobile money accountpaychangu_get_mobile_payout_details- Check mobile money payout statuspaychangu_bank_payout- Send payout to bank accountpaychangu_get_bank_payout_details- Check bank payout statuspaychangu_list_bank_payouts- List all bank payouts
PawaPay Tools (12)
Deposit Tools
pawapay_request_deposit- Request mobile money depositpawapay_get_deposit- Get deposit transaction detailspawapay_resend_deposit_callback- Resend deposit callback
Payout Tools
pawapay_send_payout- Send single payoutpawapay_send_bulk_payout- Send multiple payoutspawapay_get_payout- Get payout details
Refund Tools
pawapay_create_refund- Create refund requestpawapay_get_refund_status- Get refund status
Wallet & Configuration Tools
pawapay_get_all_balances- Get balances for all countriespawapay_get_country_balance- Get balance for specific countrypawapay_get_active_config- Get active merchant configurationpawapay_get_availability- Get correspondent availability status
OneKhusa Tools (18)
Collection Tools
onekhusa_initiate_request_to_pay- Initiate a request-to-pay collectiononekhusa_get_collection_transactions- Get paginated collection transactionsonekhusa_get_collection_transaction- Get specific transaction details
Single Disbursement Tools
onekhusa_add_single_disbursement- Create single payoutonekhusa_approve_single_disbursement- Approve pending disbursementonekhusa_review_single_disbursement- Mark disbursement as reviewedonekhusa_reject_single_disbursement- Reject disbursementonekhusa_get_single_disbursement- Get disbursement details
Batch Disbursement Tools
onekhusa_add_batch_disbursement- Create batch with multiple recipientsonekhusa_approve_batch- Approve batchonekhusa_review_batch- Mark batch as reviewedonekhusa_reject_batch- Reject batchonekhusa_cancel_batch- Cancel batchonekhusa_transfer_batch_funds- Transfer funds for approved batchonekhusa_get_batches- Get paginated batchesonekhusa_get_batch- Get batch detailsonekhusa_get_batch_transactions- Get transactions within batch
Configuration Tools
onekhusa_check_status- Check OneKhusa service status
Usage Examples
Once configured in Claude Desktop, interact with payment providers through natural language:
PayChangu Examples
Can you verify PayChangu transaction TX_12345?Show me all supported mobile money operators for PayChanguSend a PayChangu mobile money payout of 5000 MWK to 265991234567PawaPay Examples
What are my PawaPay wallet balances?Request a PawaPay deposit of 100 ZMW from phone number 260971234567Send a PawaPay payout of 50 UGX to phone number 256701234567OneKhusa Examples
Request a payment of 5000 MWK from 265991234567 using OneKhusaCreate a OneKhusa batch disbursement for January salaries with 3 recipients totaling 150000 MWKShow me all pending OneKhusa batchesApprove batch BATCH_12345 and transfer the fundsGetting API Credentials
PayChangu
- Sign up at PayChangu
- Complete business verification
- Get your secret key from the merchant dashboard
- Use test credentials for sandbox environment
PawaPay
- Create an account at PawaPay
- Complete onboarding and verification
- Generate an API token from the dashboard
- Use sandbox tokens for testing
OneKhusa
- Contact OneKhusa to create a business account
- Complete KYC verification
- Get your API Key, API Secret, and Organisation ID from the dashboard
- Use sandbox environment for testing
Security Notes
- Never commit API keys to version control
- Use environment variables or secure configuration management
- Always use sandbox credentials during development
- Keep production credentials secure
Troubleshooting
Tools not appearing in Claude
- Check that your
claude_desktop_config.jsonis valid JSON - Verify the file path to the config is correct
- Restart Claude Desktop after configuration changes
- Check the Claude Desktop logs for errors
Authentication errors
- Verify your API credentials are correct
- Check that environment variables are properly set
- Ensure you're using the correct environment (sandbox vs production)
- Check that your account has the necessary permissions
Connection issues
- Check your internet connection
- Verify the payment provider services are operational
- Check for any API rate limiting
Documentation
For full documentation, visit afrimomo.dev.
Related Packages
- afrimomo-sdk - The underlying TypeScript SDK
Support
License
MIT License - see LICENSE file for details
