MCP server Paystack
Permite que assistentes de IA interajam com toda a gama de APIs do Paystack para gerenciar transações, clientes e pagamentos.
Também conhecido como PaystackOSS/paystack-mcp-server
- Stars
- 56
- Ferramentas
- 2
- Downloads, 30 dias
- —
- Versão mais recente
- —
- Último commit
- 29 de jun. de 2026
- Licença
- MIT
O que é o MCP Paystack?
Paystack é um MCP server. Permite que assistentes de IA interajam com toda a gama de APIs do Paystack para gerenciar transações, clientes e pagamentos. Ele expõe 2 ferramentas, como get_paystack_operation, make_paystack_request.
Resumo gerado a partir do README do projeto
Sobre o MCP server de Paystack
Gerenciar transações financeiras e dados de clientes por meio das APIs do Paystack é possível diretamente do seu assistente de IA. Este servidor conecta modelos a toda a gama de operações do Paystack ao analisar a especificação OpenAPI em tempo de execução. Em vez de depender de endpoints fixos, ele utiliza descoberta dinâmica para fornecer acesso a qualquer operação de API disponível por meio de ferramentas específicas como make_paystack_request e get_paystack_operation.
Desenvolvedores podem integrar este servidor em clientes compatíveis com MCP, como Claude Desktop, Cursor, Windsurf ou ChatGPT Desktop. A configuração requer Node.js v18+ e uma chave secreta de teste do Paystack começando com sk_test_. Por segurança, o servidor rejeita explicitamente chaves de produção e permite apenas credenciais de ambiente de teste. Você pode executar o servidor via npx ou compilando o repositório localmente para fins de desenvolvimento.
O que você pode fazer com ele
- 1Recuperar histórico de transaçõesPeça ao seu assistente para buscar os pagamentos mais recentes da sua conta.
- 2Criar novos clientesInstrua a IA a registrar um novo perfil de usuário usando um endereço de e-mail.
- 3Iniciar novos pagamentosSolicite a configuração de um valor de transação específico em uma moeda local.
- 4Explorar capacidades da APIUse o assistente para listar todas as operações disponíveis no ecossistema Paystack.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Ferramentas do MCP Paystack 2
Detectadas a partir do READMEget_paystack_operationmake_paystack_request
| get_paystack_operation | — | |
| make_paystack_request | — |
Configuração
PAYSTACK_TEST_SECRET_KEY
| Nome | Descrição | Tipo |
|---|---|---|
| PAYSTACK_TEST_SECRET_KEY | — |
Verificações automatizadas
Executado em 14 de nov. de 2026Relatório completo →Ainda não verificado. Um servidor precisa de uma pontuação de 80, nenhum problema grave e dados suficientes para verificarmos. Como as verificações funcionam · O que corrigir para ganhar mais pontos
- Repositório de origem vinculado e acessívelpaystackoss/paystack-mcp-server is public and reachablegithub.com/paystackoss/paystack-mcp-server ↗Passou
- O pacote indica este repositório como sua origemNão verificado
- Proveniência da build (atestação Sigstore)Não verificado
- Licença de código aberto (OSI)MITspdx.org/licenses/MIT.html ↗Passou
- Commit ou release no último anoLast commit or release 2026-06-29github.com/paystackoss/paystack-mcp-server ↗Passou
- OpenSSF ScorecardNão verificado
- Nome do pacote não é próximo a um pacote popularNão verificado
- Nenhum aviso crítico no pacote ou em suas dependênciasNão verificado
- Sem instruções ocultas para o modelo2 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPassou
- Ferramentas destrutivas estão rotuladasNo tool named like delete, drop or execPassou
- O endpoint remoto responde ao handshake do MCPNão verificado
README
Ver no GitHubPaystack 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:
- CLI argument (recommended):
--api-key sk_test_... - 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.).
Using npm (recommended)
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 nodeWindows
where nodeOnce 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 |
| ChatGPT Desktop | MCP settings in app preferences |
| Cursor | .cursor/mcp.json or global MCP settings |
| Windsurf | MCP configuration in settings |
| Claude Code | ~/.claude/mcp.json or project-level .mcp.json |
How It Works
The Paystack MCP Server exposes the entire Paystack API to AI assistants by parsing Paystack's OpenAPI specification at runtime. Instead of hardcoding individual endpoints, the server dynamically discovers all available operations and makes them accessible through a small set of tools.
Available Tools
| Tool | Description |
|---|---|
get_paystack_operation |
Fetch operation details (method, path, parameters) by operation ID |
make_paystack_request |
Execute a Paystack API request |
Available Resources
| Resource | URI | Description |
|---|---|---|
paystack_operation_list |
paystack://operations/list |
List all available Paystack operations and their details |
Example
When you ask your AI assistant something like "Get me the last 5 transactions on my Paystack integration", here's what happens behind the scenes:
- The assistant calls
get_paystack_operation("transaction_list")to look up the endpoint details - It gets back the method (
GET), path (/transaction), and available query parameters - It then calls
make_paystack_requestwith{ method: "GET", path: "/transaction", data: { perPage: 5 } } - You get your transactions
Prompt recommendation
To get the best results when using this MCP server, be specific in your prompts and always include "Paystack" in your requests. The server provides built-in instructions and a knowledge resource (paystack://skill) that help the AI assistant find the right documentation, code snippets, and API details.
Good prompts:
- "Initialize a Paystack transaction for 50000 NGN"
- "Create a customer with email user@example.com on my Paystack account"
- "How can I send money with the Paystack API?"
- "Show me a cURL example for verifying a Paystack transaction"
Less effective prompts:
- "List my transactions" (unclear which service to use)
- "Charge a customer" (missing context about Paystack)
Being explicit ensures the LLM narrows down to the right tool quickly and reduces ambiguity.
Development
Run locally (without building)
For local development and testing, you can run the TypeScript source directly:
PAYSTACK_TEST_SECRET_KEY=sk_test_... npm run dev
Run with MCP Inspector
npm run inspect
Build
npm run build
Run tests
npm test
Troubleshooting
| Issue | Solution |
|---|---|
| Server exits silently at startup | Check that PAYSTACK_TEST_SECRET_KEY is set |
| "Invalid key" error | Key must start with sk_test_ — live keys are not allowed |
| Tools not appearing in client | Ensure the server is running and the client config path is correct |
| Request timeouts | Check network connectivity to api.paystack.co |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING.md for more details.
License
MIT
Perguntas sobre o MCP Paystack
Quais ferramentas o MCP Paystack oferece?
Ele expõe 2 ferramentas, incluindo get_paystack_operation, make_paystack_request.
Posso usar minha chave secreta de produção do Paystack?
Não, apenas chaves de teste que começam com sk_test_ são permitidas. O servidor valida isso na inicialização e rejeitará chaves de produção por segurança.
Como forneço minha chave de API para o servidor?
Você pode fornecer sua chave de API como um argumento de CLI usando --api-key ou definindo a variável de ambiente PAYSTACK_TEST_SECRET_KEY.
Quais ferramentas estão disponíveis através deste MCP server?
O servidor fornece get_paystack_operation para buscar detalhes de operações e make_paystack_request para executar requisições na API do Paystack.