PP

paystackoss/paystack-mcp-server

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

56 stars 14 forks 质量 81 趋势 17MIT

paystackoss/paystack-mcp-server 是从 https://github.com/paystackoss/paystack-mcp-server. 导入的 MCP 候选服务器。

概览

paystackoss/paystack-mcp-server 是从 https://github.com/paystackoss/paystack-mcp-server. 导入的 MCP 候选服务器。

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,使AI助手能够与所有Paystack API交互。

[!警告] 公开预览: 该MCP服务器目前处于公开预览阶段。我们正在寻求早期反馈以改进下一版本,因此请谨慎使用并报告遇到的问题。

快速启动

通过非官方邮件安装并运行(推荐):

或者本地开发,克隆并建造:

然后配置你的MCP客户端使用服务器(参见客户端集成)。

要求

  • Node.js v18+
  • NPM或纱线
  • Paystack测试秘密密钥(以sk_test_开头)

配置选项

环境变量 目的
PAYSTACK_TEST_SECRET_KEY 你的Paystack测试密钥(如果没有CLI则用备用密钥)

你可以通过两种方式提供你的API密钥:

  1. CLI 参数(推荐): --api-key sk_test_...
  2. 环境变量: 设置 PAYSTACK_TEST_SECRET_KEY

安全提示: 仅允许测试密钥([sk_test_*)。服务器在启动时验证此项,并会拒绝有效密钥。

客户端集成

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Paystack MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to interact with the full range of Paystack APIs.

[!WARNING] Public Preview: This MCP server is currently in public preview. We’re seeking early feedback to improve the next iteration, so use cautiously and report any issues you encounter.

Quick Start

Install and run via npm (recommended):

npx @paystack/mcp-server --api-key sk_test_your_key_here

Or for local development, clone and build:

git clone https://github.com/PaystackOSS/paystack-mcp-server.git
cd paystack-mcp-server
npm install
npm run build

Then configure your MCP client to use the server (see Client Integration).

Requirements

  • Node.js v18+
  • npm or yarn
  • A Paystack test secret key (starts with sk_test_)

Configuration Options

Environment Variable Purpose
PAYSTACK_TEST_SECRET_KEY Your Paystack test secret key (fallback if no CLI arg)

You can provide your API key in two ways:

  1. CLI argument (recommended): --api-key sk_test_...
  2. Environment variable: Set PAYSTACK_TEST_SECRET_KEY

Security note: Only test keys (sk_test_*) are allowed. The server validates this at startup and will reject live keys.

Client Integration

The Paystack MCP Server works with any MCP-compatible client. Below is the standard configuration schema used by most clients (Claude Desktop, ChatGPT Desktop, Cursor, Windsurf, etc.).

For npm-installed server:

{
  "mcpServers": {
    "paystack": {
      "command": "npx",
      "args": ["@paystack/mcp-server", "--api-key", "sk_test_..."]
    }
  }
}

Using a local build

If you’ve cloned and built the server locally:

{
  "mcpServers": {
    "paystack": {
      "command": "node",
      "args": ["/path/to/paystack-mcp-server/build/index.js"],
      "env": {
        "PAYSTACK_TEST_SECRET_KEY": "sk_test_..."
      }
    }
  }
}

[!IMPORTANT] When setting command: "node", you should ensure you’re using Node v18+. If you are using a package manager, you might need to get the path of your Node binary by running this command in your CLI:

Linux and MacOS

which node

Windows

where node

Once you have the path, use it as the value of the MCP Server command in the JSON configuration. e.g., command: "path/to/installation/bin/node"

Where to add this configuration

Client Config file location
VS Code .vscode/mcp.json
Claude Desktop claude_desktop_config.json
在 GitHub 查看完整 README

安装

npx @paystack/mcp-server --api-key sk_test_...
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "paystack": { "command": "npx", "args": ["@paystack/mcp-server", "--api-key", "sk_test_..."] } } }