mcp-pagbrasil MCP Server
PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds
mcp-pagbrasil scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 3 tools. Filed under Uncategorized. Package registries report about 59 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade C
61/100 for listing completeness. Lost points: short README, 3 of 3 tools barely described, short summary.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-pagbrasil": { "command": "npx", "args": [ "-y", "@codespar/mcp-pagbrasil@0.1.0" ], "env": { "PAGBRASIL_PBTOKEN": "YOUR_PAGBRASIL_PBTOKEN", "PAGBRASIL_SECRET": "YOUR_PAGBRASIL_SECRET", "PAGBRASIL_BASE_URL": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PAGBRASIL_PBTOKENSecret | Required | Merchant token (pbtoken) from the PagBrasil Dashboard |
PAGBRASIL_SECRETSecret | Required | 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. |
Tools3Tool docs quality grade F
All capabilitiescreate_ordertoolPOST /order/add
get_ordertoolPOST /order/get
refund_ordertoolPOST /order/refund
About
@codespar/mcp-pagbrasil
MCP server for PagBrasil — the cross-border acquirer for international merchants selling into Brazil: Pix, Automatic Pix (PagStream), Boleto Flash, PEC Flash and local credit cards with installments. Distinct from PagBank/PagSeguro.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"pagbrasil": {
"command": "npx",
"args": ["-y", "@codespar/mcp-pagbrasil"],
"env": {
"PAGBRASIL_PBTOKEN": "your-merchant-token",
"PAGBRASIL_SECRET": "your-secret-phrase"
}
}
}
}
Claude Code
claude mcp add pagbrasil -- npx @codespar/mcp-pagbrasil
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"pagbrasil": {
"command": "npx",
"args": ["-y", "@codespar/mcp-pagbrasil"],
"env": {
"PAGBRASIL_PBTOKEN": "your-merchant-token",
"PAGBRASIL_SECRET": "your-secret-phrase"
}
}
}
}
Authentication
Every request carries the merchant token (pbtoken) and the secret phrase as body fields — there is no auth header. This server injects both from PAGBRASIL_PBTOKEN and PAGBRASIL_SECRET.
API shape (worth knowing)
PagBrasil's API is form-urlencoded (not JSON) and answers XML. The merchant token (pbtoken) and secret phrase travel as body fields on every request — this server injects both from the environment. Tool responses hand the raw XML to the agent under xml so no fields are lost.
Tools (3)
| Tool | Endpoint | What it does |
|---|---|---|
create_order | POST /order/add | Create an order / request a payment (pix, boleto, creditcard). Pix responses carry pix_code + pix_image; boleto responses carry the bar code + PDF URL |
get_order | POST /order/get | Fetch an order's current status — poll to detect settlement |
refund_order | POST /order/refund | Refund a settled order (amount_brl for partial, omit for full) |
Environment
| Variable | Required | Description |
|---|---|---|
PAGBRASIL_PBTOKEN | yes | Merchant token from the PagBrasil Dashboard |
PAGBRASIL_SECRET | yes | Secret phrase from the Dashboard |
PAGBRASIL_BASE_URL | no | Defaults to https://sandbox.pagbrasil.com/api. Production hosts are issued per-merchant after the Payment Service Agreement — set the URL your dashboard provides |
Notes
amount_brlis in major units as a string:'125.00'= R$ 125,00.order_numbermust be unique percustomer_taxid. Same number + same taxid = idempotent no-op; same number + different taxid = rejected (Duplicated order).customer_taxidmust be a valid CPF or CNPJ — agents should ask the user, never invent one.
Enterprise
Need governance, budget limits, and audit trails for agent-driven payments on PagBrasil? CodeSpar Enterprise adds a policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT © CodeSpar
Frequently asked questions
What is mcp-pagbrasil MCP Server?
PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds
How do I install mcp-pagbrasil MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-pagbrasil MCP Server runs locally from the npm package @codespar/mcp-pagbrasil with the command npx -y @codespar/mcp-pagbrasil@0.1.0.
Does mcp-pagbrasil MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-pagbrasil MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-pagbrasil MCP Server provide?
mcp-pagbrasil MCP Server provides 3 tools: create_order, get_order, and refund_order. See the full tool list for descriptions and parameters.
How is mcp-pagbrasil MCP Server's trust score calculated?
mcp-pagbrasil MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.