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_product

Create a new product on your Paystack integration

list_products

List products available on your Paystack integration with pagination support

get_product

Get details of a specific product by ID

update_product

Update an existing product by ID

create_customer

Create a new customer in Paystack

list_customers

List customers available on your Paystack integration

get_customer

Get details of a specific customer by email or code

update_customer

Update a customer's details

validate_customer

Validate a customer's identity with bank account

set_customer_risk_action

Whitelist or blacklist a customer

deactivate_authorization

Deactivate a payment authorization when a card needs to be forgotten

initialize_transaction

Initialize a transaction to accept payment on Paystack

verify_transaction

Verify a transaction's status using the transaction reference

fetch_transaction

Get details of a transaction by ID

list_transactions

List transactions with pagination and filtering options

charge_authorization

Charge a previously authorized card

partial_debit

Charge a partial amount from a previously authorized card

transaction_totals

Get total amount received on your account

export_transactions

Export a list of transactions carried out on your integration

list_banks

Get a list of all banks supported by Paystack and their properties

list_countries

Get a list of countries that Paystack currently supports

list_states

Get a list of states for a country for address verification

check_balance

Get the available balance on your Paystack integration

balance_ledger

Fetch all pay-ins and pay-outs that occurred on your Paystack integration

resend_transfers_otp

Generates a new OTP and sends to customer for transfer verification

disable_transfers_otp

Disable OTP requirement for transfers

finalize_disable_otp

Finalize the request to disable OTP on your transfers

enable_transfers_otp

Enable 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.

smithery badge

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.

<details> <summary> Installing via Smithery</summary>

To install Paystack MCP for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @kohasummons/paystack-mcp --client claude

Manual Installation

bash
npm install -g @kohasummons/paystack-mcp

Usage

Start the server by running:

bash
paystack-mcp

Or use with npx in your MCP configuration:

json
{
  "mcpServers": {
    "paystack-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@kohasummons/paystack-mcp"
      ],
"env": {
        "PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
      }
    }
  }
}
</details> <details> <summary> Using with Claude Desktop</summary>

Add the following to your claude_desktop_config.json. See here for more details.

json
{
  "mcpServers": {
    "paystack-mcp": {
      "command": "npx",
      "args": ["-y", "@kohasummons/paystack-mcp"],
      "env": {
        "PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
      }
    }
  }
}
</details> <details> <summary> Using with Goose</summary>

Copy and paste the link below into a browser address bar to add this extension to goose desktop:

code
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:

bash
npm install -g @kohasummons/paystack-mcp

Set your Paystack secret key as an environment variable:

bash
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:

bash
paystack-mcp

Or use with NPX directly:

bash
PAYSTACK_SECRET_KEY=your_paystack_secret_key_here npx -y @kohasummons/paystack-mcp
</details> <details> <summary> Using with Cursor</summary>

Add this to your Cursor MCP configuration:

json
{
  "mcpServers": {
    "paystack-mcp": {
      "command": "npx",
      "args": ["-y", "@kohasummons/paystack-mcp"],
      "env": {
        "PAYSTACK_SECRET_KEY": "your_paystack_secret_key_here"
      }
    }
  }
}
</details> <details> <summary> Using with Docker</summary>

You can run the Paystack MCP server via Docker:

Build the image

bash
docker-compose build

Run as a standalone server

bash
docker-compose up -d

Use with Cursor

Add to your .cursor/mcp.json:

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

json
{
  "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

ToolDescriptionExample Prompt
create_productCreate a new product"Create a new product called 'Premium Plan' with a price of 5000 naira"
list_productsList all products"Show me all the products in my Paystack store"
get_productGet details of a specific product"Get the details of product ID 12345"
update_productUpdate an existing product's details"Update the price of product ID 12345 to 6000 naira"

Customers

ToolDescriptionExample Prompt
create_customerCreate a new customer"Create a new customer with email john@example.com"
list_customersList all customers"Show me all my customers"
get_customerGet details of a specific customer"Get the details for customer with email john@example.com"
update_customerUpdate a customer's details"Update John Doe's phone number to +2341234567890"
validate_customerValidate a customer's identity with their bank account"Verify customer CUS_123 with their bank account details"
set_customer_risk_actionWhitelist or blacklist a customer"Blacklist customer CUS_123 from making transactions"

Transactions

ToolDescriptionExample Prompt
initialize_transactionInitialize a payment transaction"Start a new payment of 5000 naira for customer john@example.com"
verify_transactionVerify the status of a transaction"Check the status of transaction with reference TR_123456"
fetch_transactionGet details of a transaction"Get details of transaction ID 12345"
list_transactionsList transactions with various filters"Show me all successful transactions in the last month"
charge_authorizationCharge a previously authorized card"Charge customer john@example.com 5000 naira using their saved card"
partial_debitCharge a partial amount from authorized card"Charge a partial amount of 3000 naira from john@example.com's saved card"
deactivate_authorizationDeactivate a payment authorization"Remove the saved card with authorization code AUTH_123"
transaction_totalsGet total amount received on your account"What's the total amount received in my account last month?"
export_transactionsExport a list of transactions"Export all my transactions from January 2023"

Banking Information

ToolDescriptionExample Prompt
list_banksGet a list of banks supported by Paystack"Show me all supported banks in Nigeria"
list_countriesGet a list of countries supported by Paystack"Which countries does Paystack support?"
list_statesGet 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:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Run the Inspector: npm run dev:debug

You'll need to set up your Paystack secret key as an environment variable:

bash
# 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

code
npm run build

Run the following command in your terminal:

bash
# 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

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描109.6k

提示工程专家

by alirezarezvani

Universal
热门

覆盖Prompt优化、Few-shot设计、结构化输出、RAG评测与Agent工作流编排,适合分析token成本、评估LLM输出质量,并搭建可落地的AI智能体系统。

把提示优化、LLM评测到RAG与智能体设计串成一套方法,适合想系统提升AI开发效率的人。

AI 与智能体
未扫描9.0k

智能体流程设计

by alirezarezvani

Universal
热门

面向生产级多 Agent 编排,梳理顺序、并行、分层、事件驱动、共识五种工作流设计,覆盖 handoff、状态管理、容错重试、上下文预算与成本优化,适合搭建复杂 AI 协作系统。

帮你把多智能体流程设计、编排和自动化统一起来,复杂工作流也能更稳地落地,适合追求强控制力的团队。

AI 与智能体
未扫描9.0k

相关 MCP Server

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
82.9k

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
82.9k

PraisonAI

编辑精选

by mervinpraison

热门

PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。

如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。

AI 与智能体
6.4k

评论