Paystack
AI 与智能体by kohasummons
Paystack 的 MCP server 让 AI agents 可通过标准化 MCP clients 以 tool calling 方式接入各类 Paystack 服务,统一调用并处理不同支付能力。
什么是 Paystack?
Paystack 的 MCP server 让 AI agents 可通过标准化 MCP clients 以 tool calling 方式接入各类 Paystack 服务,统一调用并处理不同支付能力。
核心功能 (28 个工具)
create_productCreate a new product on your Paystack integration
list_productsList products available on your Paystack integration with pagination support
get_productGet details of a specific product by ID
update_productUpdate an existing product by ID
create_customerCreate a new customer in Paystack
list_customersList customers available on your Paystack integration
get_customerGet details of a specific customer by email or code
update_customerUpdate a customer's details
validate_customerValidate a customer's identity with bank account
set_customer_risk_actionWhitelist or blacklist a customer
deactivate_authorizationDeactivate a payment authorization when a card needs to be forgotten
initialize_transactionInitialize a transaction to accept payment on Paystack
verify_transactionVerify a transaction's status using the transaction reference
fetch_transactionGet details of a transaction by ID
list_transactionsList transactions with pagination and filtering options
charge_authorizationCharge a previously authorized card
partial_debitCharge a partial amount from a previously authorized card
transaction_totalsGet total amount received on your account
export_transactionsExport a list of transactions carried out on your integration
list_banksGet a list of all banks supported by Paystack and their properties
list_countriesGet a list of countries that Paystack currently supports
list_statesGet a list of states for a country for address verification
check_balanceGet the available balance on your Paystack integration
balance_ledgerFetch all pay-ins and pay-outs that occurred on your Paystack integration
resend_transfers_otpGenerates a new OTP and sends to customer for transfer verification
disable_transfers_otpDisable OTP requirement for transfers
finalize_disable_otpFinalize the request to disable OTP on your transfers
enable_transfers_otpEnable OTP requirement for transfers
README
Paystack MCP Server
The Paystack Model Context Protocol (MCP) server allows AI agents to interact with Paystack through standardized MCP clients via tool calling. This protocol supports various tools to interact with different Paystack services.
Features
- Create and manage products in your Paystack store
- Handle customer management (create, list, update, validate)
- Process transactions (initialize, verify, charge authorization)
- Manage authorizations and payments
- Access bank information and country data
- Export transaction data and view transaction totals
Setup
Make sure to replace your_paystack_secret_key_here with your actual Paystack secret key.
To install Paystack MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kohasummons/paystack-mcp --client claude
Manual Installation
npm install -g @kohasummons/paystack-mcp
Usage
Start the server by running:
paystack-mcp
Or use with npx in your MCP configuration:
{
"mcpServers": {
"paystack-mcp": {
"command": "npx",
"args": [
"-y",
"@kohasummons/paystack-mcp"
],
"env": {
"PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
}
}
}
}
Add the following to your claude_desktop_config.json. See here for more details.
{
"mcpServers": {
"paystack-mcp": {
"command": "npx",
"args": ["-y", "@kohasummons/paystack-mcp"],
"env": {
"PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
}
}
}
}
Copy and paste the link below into a browser address bar to add this extension to goose desktop:
goose://extension?cmd=npx&arg=-y&arg=@kohasummons/paystack-mcp&id=paystack-mcp&name=Paystack%20MCP&description=process%20payments%20with%20Paystack
After installation, set your Paystack secret key in the extension settings.
</details> <details> <summary> Using with CLI</summary>Install the package globally:
npm install -g @kohasummons/paystack-mcp
Set your Paystack secret key as an environment variable:
export PAYSTACK_SECRET_KEY=your_paystack_secret_key_here # For macOS/Linux
# OR
set PAYSTACK_SECRET_KEY=your_paystack_secret_key_here # For Windows
Start the server by running:
paystack-mcp
Or use with NPX directly:
PAYSTACK_SECRET_KEY=your_paystack_secret_key_here npx -y @kohasummons/paystack-mcp
Add this to your Cursor MCP configuration:
{
"mcpServers": {
"paystack-mcp": {
"command": "npx",
"args": ["-y", "@kohasummons/paystack-mcp"],
"env": {
"PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
}
}
}
}
You can run the Paystack MCP server via Docker:
Build the image
docker-compose build
Run as a standalone server
docker-compose up -d
Use with Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": {
"paystack-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"PAYSTACK_SECRET_KEY=your_paystack_secret_key_here",
"kohasummons/paystack-mcp"
]
}
}
}
Use with Claude Desktop
{
"mcpServers": {
"paystack-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"PAYSTACK_SECRET_KEY=your_paystack_secret_key_here",
"kohasummons/paystack-mcp"
]
}
}
}
See DOCKER.md for detailed Docker instructions.
</details>Tools
Products
| Tool | Description | Example Prompt |
|---|---|---|
| create_product | Create a new product | "Create a new product called 'Premium Plan' with a price of 5000 naira" |
| list_products | List all products | "Show me all the products in my Paystack store" |
| get_product | Get details of a specific product | "Get the details of product ID 12345" |
| update_product | Update an existing product's details | "Update the price of product ID 12345 to 6000 naira" |
Customers
| Tool | Description | Example Prompt |
|---|---|---|
| create_customer | Create a new customer | "Create a new customer with email john@example.com" |
| list_customers | List all customers | "Show me all my customers" |
| get_customer | Get details of a specific customer | "Get the details for customer with email john@example.com" |
| update_customer | Update a customer's details | "Update John Doe's phone number to +2341234567890" |
| validate_customer | Validate a customer's identity with their bank account | "Verify customer CUS_123 with their bank account details" |
| set_customer_risk_action | Whitelist or blacklist a customer | "Blacklist customer CUS_123 from making transactions" |
Transactions
| Tool | Description | Example Prompt |
|---|---|---|
| initialize_transaction | Initialize a payment transaction | "Start a new payment of 5000 naira for customer john@example.com" |
| verify_transaction | Verify the status of a transaction | "Check the status of transaction with reference TR_123456" |
| fetch_transaction | Get details of a transaction | "Get details of transaction ID 12345" |
| list_transactions | List transactions with various filters | "Show me all successful transactions in the last month" |
| charge_authorization | Charge a previously authorized card | "Charge customer john@example.com 5000 naira using their saved card" |
| partial_debit | Charge a partial amount from authorized card | "Charge a partial amount of 3000 naira from john@example.com's saved card" |
| deactivate_authorization | Deactivate a payment authorization | "Remove the saved card with authorization code AUTH_123" |
| transaction_totals | Get total amount received on your account | "What's the total amount received in my account last month?" |
| export_transactions | Export a list of transactions | "Export all my transactions from January 2023" |
Banking Information
| Tool | Description | Example Prompt |
|---|---|---|
| list_banks | Get a list of banks supported by Paystack | "Show me all supported banks in Nigeria" |
| list_countries | Get a list of countries supported by Paystack | "Which countries does Paystack support?" |
| list_states | Get a list of states for a country | "List all states in Nigeria for address verification" |
Contributing
We welcome contributions to help improve this project and implement the remaining Paystack API endpoints! There are many more Paystack features that could be added as tools, including:
- Payment Pages
- Subaccounts
- Plans
- Subscriptions
- Apple Pay
- Virtual Accounts
- Invoices
- Refunds
- And more!
See CONTRIBUTING.md for detailed instructions on how to contribute, including:
- Setting up your development environment
- Guide for implementing new tools
- Code style guidelines
- Pull request process
Development
To work on this project:
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build - Run the Inspector:
npm run dev:debug
You'll need to set up your Paystack secret key as an environment variable:
# Create a .env file in the project root
echo "PAYSTACK_SECRET_KEY=your_paystack_secret_key_here" > .env
Debugging
To debug your server, you can use the MCP Inspector.
First build the server
npm run build
Run the following command in your terminal:
# Start MCP Inspector and server
npm run dev:debug
Add your PAYSTACK_SECRET_KEY to the enviroment variable in the Inspector UI. Debug away!
Docker Support
See DOCKER.md for details on building and running with Docker.
License
MIT
常见问题
Paystack 是什么?
Paystack 的 MCP server 让 AI agents 可通过标准化 MCP clients 以 tool calling 方式接入各类 Paystack 服务,统一调用并处理不同支付能力。
Paystack 提供哪些工具?
提供 28 个工具,包括 create_product、list_products、get_product 等。
相关 Skills
Claude接口
by anthropics
面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。
✎ 想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心
提示工程专家
by alirezarezvani
覆盖Prompt优化、Few-shot设计、结构化输出、RAG评测与Agent工作流编排,适合分析token成本、评估LLM输出质量,并搭建可落地的AI智能体系统。
✎ 把提示优化、LLM评测到RAG与智能体设计串成一套方法,适合想系统提升AI开发效率的人。
智能体流程设计
by alirezarezvani
面向生产级多 Agent 编排,梳理顺序、并行、分层、事件驱动、共识五种工作流设计,覆盖 handoff、状态管理、容错重试、上下文预算与成本优化,适合搭建复杂 AI 协作系统。
✎ 帮你把多智能体流程设计、编排和自动化统一起来,复杂工作流也能更稳地落地,适合追求强控制力的团队。
相关 MCP Server
顺序思维
编辑精选by Anthropic
Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。
✎ 这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。
知识图谱记忆
编辑精选by Anthropic
Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。
✎ 帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。
PraisonAI
编辑精选by mervinpraison
PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。
✎ 如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。