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,集成路径清晰又省心
RAG架构师
by alirezarezvani
聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。
✎ 面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。
多智能体架构
by alirezarezvani
聚焦多智能体系统架构设计,梳理 Supervisor、Swarm、分层和 Pipeline 等模式,覆盖角色定义、通信协作与性能评估,适合规划稳健可扩展的 AI agent 编排方案。
✎ 帮你系统解决多智能体应用的架构设计与协同编排难题,适合构建复杂 AI 工作流,成熟度高、社区认可也很亮眼。
相关 MCP Server
知识图谱记忆
编辑精选by Anthropic
Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。
✎ 帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。
顺序思维
编辑精选by Anthropic
Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。
✎ 这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。
by deusdata
持久化的代码库知识图谱,可跨会话保留上下文,在 session 重启或上下文压缩后仍能继续使用。
✎ 专治 AI 编程助手“会话失忆”,把代码库沉淀为持久知识图谱,重启或压缩上下文后也能无缝续上开发状态。