MCP server for Paystack — accept payments, verify transactions, manage customers, and more through AI assistants.
Project description
mcp-server-paystack
Paystack MCP Server — accept payments, verify transactions, and manage customers through AI assistants.
An MCP server that connects AI assistants (Claude, Cursor, etc.) to the Paystack API. Initialize payments, verify transactions, manage customers, create payment links, check balances, and more — all through natural language.
Stripe has an MCP server. Now Africa's biggest payment platform does too.
Quick Start
Install
pip install mcp-server-paystack
Get Your API Key
- Create a free account at paystack.com
- Go to Settings > API Keys & Webhooks
- Copy your Test Secret Key (
sk_test_...)
Test mode is completely free — no real money is involved.
Configure
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"paystack": {
"command": "mcp-server-paystack",
"env": {
"PAYSTACK_SECRET_KEY": "sk_test_your_key_here"
}
}
}
}
Claude Code
claude mcp add paystack -e PAYSTACK_SECRET_KEY=sk_test_your_key_here -- mcp-server-paystack
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"paystack": {
"command": "mcp-server-paystack",
"env": {
"PAYSTACK_SECRET_KEY": "sk_test_your_key_here"
}
}
}
}
What You Can Do
You: "Create a payment link for NGN 5,000 for my consultation fee"
Claude: Done! Payment link: https://paystack.com/pay/consultation-fee
You: "Check my Paystack balance"
Claude: Your balance is NGN 125,000.00
You: "Show me all successful transactions from last week"
Claude: Transactions (showing 8 of 8):
ref_001 | NGN 5,000.00 | success | john@email.com | 2026-02-10
ref_002 | NGN 12,500.00 | success | jane@email.com | 2026-02-11
...
You: "Verify the payment with reference TXN_abc123"
Claude: Transaction: TXN_abc123
Status: PAID
Amount: NGN 10,000.00
Channel: card
Customer: customer@email.com
You: "Resolve account number 0123456789 at Access Bank (code 044)"
Claude: Account verified!
Account name: JOHN DOE
Account number: 0123456789
Available Tools
| Tool | Description |
|---|---|
paystack_initialize_transaction |
Create a payment and get a checkout URL |
paystack_verify_transaction |
Check if a payment was successful |
paystack_list_transactions |
List recent transactions with filters |
paystack_check_balance |
Check account balance |
paystack_create_customer |
Create a new customer |
paystack_list_customers |
List customers |
paystack_create_payment_page |
Create a reusable payment link |
paystack_list_banks |
List supported banks in a country |
paystack_resolve_account |
Verify a bank account number |
paystack_transaction_totals |
Get transaction summary statistics |
Supported Currencies
| Currency | Country |
|---|---|
| NGN | Nigeria |
| GHS | Ghana |
| ZAR | South Africa |
| KES | Kenya |
| USD | International |
Development
# Clone the repo
git clone https://github.com/TRINITY-21/mcp-server-paystack.git
cd mcp-server-paystack
# Install in development mode
pip install -e .
# Run tests
python -m pytest tests/ -v
# Run the server locally
PAYSTACK_SECRET_KEY=sk_test_xxx mcp-server-paystack
How It Works
- The MCP server runs as a local process, communicating via stdio
- AI assistants discover the available Paystack tools through the MCP protocol
- When you ask a payment-related question, the assistant calls the appropriate tool
- The tool makes an authenticated request to the Paystack API and returns formatted results
- All amounts are accepted in main currency units (e.g., 5000 for NGN 5,000) and converted internally
Support
If this project is useful to you, consider supporting it.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_paystack-0.1.0.tar.gz.
File metadata
- Download URL: mcp_server_paystack-0.1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef81e338b9b9593dc9d9ad24a424379e723e0f49696eb3bef6d8a20f1ca2047
|
|
| MD5 |
8821537f4c5487f3bd79f0ea9637deac
|
|
| BLAKE2b-256 |
cd0b36293109fab51fa353e87c7b9bf858b44490b74e0efe608c48dcaffc4742
|
File details
Details for the file mcp_server_paystack-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_paystack-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98d8ae3fb0fe8c8cc7f26b24fa9706e1265bc73f22cccf85f09affd95f20727f
|
|
| MD5 |
6677ff920253278e74030865240521d0
|
|
| BLAKE2b-256 |
dd837c33e03a8f1e1b2e1f53ed74db08837f976155e35c3c495f675abb2e7255
|