mcp-pagbrasil
v0.1.0PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds
Values you need
| Variable | What it is | |
|---|---|---|
PAGBRASIL_PBTOKEN | required secret | Merchant token (pbtoken) from the PagBrasil Dashboard |
PAGBRASIL_SECRET | required secret | Secret phrase from the PagBrasil Dashboard |
PAGBRASIL_BASE_URL | optional | API base URL. Defaults to https://sandbox.pagbrasil.com/api; production hosts are issued per-merchant. |
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-pagbrasil -e 'PAGBRASIL_PBTOKEN=<PAGBRASIL_PBTOKEN>' -e 'PAGBRASIL_SECRET=<PAGBRASIL_SECRET>' -- npx -y @codespar/mcp-pagbrasil@0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-pagbrasil": {
"args": [
"-y",
"@codespar/mcp-pagbrasil@0.1.0"
],
"command": "npx",
"env": {
"PAGBRASIL_PBTOKEN": "<PAGBRASIL_PBTOKEN>",
"PAGBRASIL_SECRET": "<PAGBRASIL_SECRET>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-pagbrasil": {
"args": [
"-y",
"@codespar/mcp-pagbrasil@0.1.0"
],
"command": "npx",
"env": {
"PAGBRASIL_PBTOKEN": "<PAGBRASIL_PBTOKEN>",
"PAGBRASIL_SECRET": "<PAGBRASIL_SECRET>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "PAGBRASIL_PBTOKEN",
"id": "pagbrasil-pbtoken",
"password": true,
"type": "promptString"
},
{
"description": "PAGBRASIL_SECRET",
"id": "pagbrasil-secret",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-pagbrasil": {
"args": [
"-y",
"@codespar/mcp-pagbrasil@0.1.0"
],
"command": "npx",
"env": {
"PAGBRASIL_PBTOKEN": "${input:pagbrasil-pbtoken}",
"PAGBRASIL_SECRET": "${input:pagbrasil-secret}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-pagbrasil]
command = "npx"
args = ["-y", "@codespar/mcp-pagbrasil@0.1.0"]
env = { "PAGBRASIL_PBTOKEN" = "<PAGBRASIL_PBTOKEN>", "PAGBRASIL_SECRET" = "<PAGBRASIL_SECRET>" }For AI agents
- Ask the user for: PAGBRASIL_PBTOKEN, PAGBRASIL_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: create_order, get_order, refund_order.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json