mcp-pagseguro MCP Server
MCP server for PagSeguro/PagBank — orders, Pix, boleto, credit card, charges
mcp-pagseguro scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 26 tools. Filed under Uncategorized. Package registries report about 63 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 A
86/100 for listing completeness. Lost points: 5 of 26 tools barely described, short summary, no docs link.
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-pagseguro": { "command": "npx", "args": [ "-y", "@codespar/mcp-pagseguro@0.2.2" ], "env": { "PAGSEGURO_TOKEN": "YOUR_PAGSEGURO_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PAGSEGURO_TOKENSecret | Required | API key for pagseguro |
Tools26Tool docs quality grade C
All capabilitiesbatch_refundstoolProcess multiple refunds in a single request
cancel_chargetoolCancel a charge that has not yet been settled
capture_chargetoolCapture a pre-authorized credit card charge
create_boletotoolCreate a boleto charge
create_chargetoolCreate a standalone charge
create_customertoolCreate a customer in PagSeguro
create_ordertoolCreate an order in PagSeguro (Pix, boleto, or credit card)
create_payouttoolCreate a payout/transfer to a bank account or Pix key
create_plantoolCreate a subscription plan
create_splittoolCreate a split payment configuration for marketplace transactions
Create a recurring subscription plan in PagSeguro
create_webhooktoolRegister an application webhook URL to receive event notifications
About
@codespar/mcp-pagseguro
MCP server for PagSeguro/PagBank — orders, charges, Pix, boleto, and credit card payments
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"pagseguro": {
"command": "npx",
"args": ["-y", "@codespar/mcp-pagseguro"],
"env": {
"PAGSEGURO_TOKEN": "your-token",
"PAGSEGURO_SANDBOX": "true"
}
}
}
}
Claude Code
claude mcp add pagseguro -- npx @codespar/mcp-pagseguro
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"pagseguro": {
"command": "npx",
"args": ["-y", "@codespar/mcp-pagseguro"],
"env": {
"PAGSEGURO_TOKEN": "your-token",
"PAGSEGURO_SANDBOX": "true"
}
}
}
}
Tools (24)
| Tool | Purpose |
|---|---|
create_order | Create an order in PagSeguro (Pix, boleto, or credit card) |
get_order | Get order details by ID |
list_orders | List orders with optional filters |
create_charge | Create a standalone charge |
refund | Refund a charge (full or partial) |
get_pix_qrcode | Get Pix QR code payload and image for an order charge |
create_customer | Create a customer in PagSeguro |
get_balance | Get account balance |
create_subscription | Create a recurring subscription plan in PagSeguro |
list_subscriptions | List subscriptions with optional filters |
get_notifications | Get payment notification details by notification code |
create_split | Create a split payment configuration for marketplace transactions |
get_dispute | Get dispute/chargeback details by ID |
pay_order | Pay an existing order (attach a charge/payment to an order in CREATED state) |
get_charge | Get charge details by ID |
list_charges | List charges with optional filters |
capture_charge | Capture a pre-authorized credit card charge |
cancel_charge | Cancel a charge that has not yet been settled |
create_boleto | Create a boleto charge |
get_boleto | Get boleto charge details by ID |
get_public_keys | Get PagSeguro public key for card data encryption (type: card) |
create_payout | Create a payout/transfer to a bank account or Pix key |
create_webhook | Register an application webhook URL to receive event notifications |
list_webhooks | List registered application webhooks |
Authentication
PagSeguro uses a Bearer token for authentication. Generate your token from the PagBank developer portal.
Sandbox / Testing
PagSeguro provides a sandbox at sandbox.api.pagseguro.com. Set PAGSEGURO_SANDBOX=true to use it.
Get your credentials
- Go to PagBank Developer Portal
- Create a developer account
- Generate your API token
- Set the
PAGSEGURO_TOKENenvironment variable
Environment Variables
| Variable | Required | Description |
|---|---|---|
PAGSEGURO_TOKEN | Yes | Bearer token from PagBank |
PAGSEGURO_SANDBOX | No | Set to "true" for sandbox mode |
Roadmap
v0.2 (planned)
create_subscription— Create a recurring subscriptionlist_subscriptions— List all subscriptions with filtersget_notifications— Get payment notifications/webhookscreate_split— Create split payments between receiversget_dispute— Get dispute/chargeback details
v0.3 (planned)
create_plan— Create a subscription planget_installments— Get installment options for a paymentbatch_refunds— Process multiple refunds in a single request
Want to contribute? Open a PR or request a tool.
Links
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Frequently asked questions
What is mcp-pagseguro MCP Server?
MCP server for PagSeguro/PagBank — orders, Pix, boleto, credit card, charges
How do I install mcp-pagseguro 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-pagseguro MCP Server runs locally from the npm package @codespar/mcp-pagseguro with the command npx -y @codespar/mcp-pagseguro@0.2.2.
Does mcp-pagseguro MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-pagseguro MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-pagseguro MCP Server provide?
mcp-pagseguro MCP Server provides 26 tools, including batch_refunds, cancel_charge, capture_charge, and create_boleto. See the full tool list for descriptions and parameters.
How is mcp-pagseguro MCP Server's trust score calculated?
mcp-pagseguro 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.