mcp-server-paystack
Enables AI assistants to accept payments, verify transactions, and manage customers via Paystack API through natural language.
README
<div align="center">
mcp-server-paystack
Paystack MCP Server — accept payments, verify transactions, and manage customers through AI assistants.
</div>
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.
<a href="https://buymeacoffee.com/trinity_21" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="40"></a>
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。