
Mcp Pagseguro
io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026
MCP server for PagSeguro/PagBank — orders, Pix, boleto, credit card, charges
Overview
Local MCP server for PagSeguro/PagBank that lets an assistant create and manage orders, charges, Pix, boleto and card payments.
- What you can do
- Create, retrieve, list and pay orders, including Pix QR codes and boleto charges, and read account balance and payment notifications. Create, retrieve, list, capture, cancel and refund charges. Create customers and recurring subscription plans, and list subscriptions. Create split payment configurations and payouts to bank accounts or Pix keys. Register and list webhooks, and fetch public keys for card data encryption.
- When to use it
- Useful when an assistant should work with a PagSeguro/PagBank account directly: drafting or placing orders, issuing charges and Pix or boleto payments, handling refunds and subscriptions, or inspecting balance and disputes. Test against the sandbox before touching live money.
- Requirements
- Runs locally via npx from the npm package @codespar/mcp-pagseguro, so Node.js is needed. Requires a PagBank developer account and a Bearer token supplied in the PAGSEGURO_TOKEN environment variable. Set PAGSEGURO_SANDBOX to true to use the sandbox endpoint. Network access to PagSeguro/PagBank APIs is required.
Installation
In SourceWeft
- Open Mcp Pagseguro in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@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:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Tools (24)
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
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
Source: packages/payments/pagseguro/README.md at commit d0a519a
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts