
Safrapay MCP Server
by codespario.github.codespar/mcp-safrapayv0.2.0-alpha.3
MCP server for Safrapay — Banco Safra acquirer: credit, Pix, boleto + split, 3DS, chargebacks
context tax
queued
security
queued
cold start
queued
freshness
Active13d ago
Install Safrapay MCP server
Install in Claude Code
claude mcp add safrapay -e SAFRAPAY_CLIENT_ID='<safrapay-client-id>' -e SAFRAPAY_CLIENT_SECRET='<safrapay-client-secret>' -e SAFRAPAY_MERCHANT_ID='<safrapay-merchant-id>' -- npx -y @codespar/mcp-safrapayInstall in Cursor
{
"mcpServers": {
"safrapay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-safrapay"
],
"env": {
"SAFRAPAY_CLIENT_ID": "<safrapay-client-id>",
"SAFRAPAY_CLIENT_SECRET": "<safrapay-client-secret>",
"SAFRAPAY_MERCHANT_ID": "<safrapay-merchant-id>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"safrapay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-safrapay"
],
"env": {
"SAFRAPAY_CLIENT_ID": "<safrapay-client-id>",
"SAFRAPAY_CLIENT_SECRET": "<safrapay-client-secret>",
"SAFRAPAY_MERCHANT_ID": "<safrapay-merchant-id>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"safrapay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-safrapay"
],
"env": {
"SAFRAPAY_CLIENT_ID": "<safrapay-client-id>",
"SAFRAPAY_CLIENT_SECRET": "<safrapay-client-secret>",
"SAFRAPAY_MERCHANT_ID": "<safrapay-merchant-id>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"safrapay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-safrapay"
],
"env": {
"SAFRAPAY_CLIENT_ID": "<safrapay-client-id>",
"SAFRAPAY_CLIENT_SECRET": "<safrapay-client-secret>",
"SAFRAPAY_MERCHANT_ID": "<safrapay-merchant-id>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SAFRAPAY_CLIENT_ID | yes | — | Safrapay merchant CNPJ (sent as merchantCredential header on auth) |
| SAFRAPAY_CLIENT_SECRET | yes | yes | Safrapay MerchantToken used to compute the BCRYPT Authorization header on auth |
| SAFRAPAY_MERCHANT_ID | yes | — | Safrapay merchant id (used in request bodies where applicable) |
| SAFRAPAY_ENV | — | — | Environment: 'sandbox' or 'production'. Defaults to sandbox. |
Freshness
Active — last maintenance signal 13d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-27 · 13d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-22 · 4mo ago · official registry · v0.2.0-alpha.3
FAQ
›How do I install the Safrapay MCP server in Claude Code?
Run: claude mcp add safrapay -e SAFRAPAY_CLIENT_ID='<safrapay-client-id>' -e SAFRAPAY_CLIENT_SECRET='<safrapay-client-secret>' -e SAFRAPAY_MERCHANT_ID='<safrapay-merchant-id>' -- npx -y @codespar/mcp-safrapay. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Safrapay require an API key?
Yes. It expects SAFRAPAY_CLIENT_ID, SAFRAPAY_CLIENT_SECRET, SAFRAPAY_MERCHANT_ID, of which 1 is a secret.
›Can I use Safrapay as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Safrapay in the official MCP registry?
Yes, as io.github.codespar/mcp-safrapay.