
Mcp Pagar Me
io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026
MCP server for Pagar.me — orders, charges, recipients, transfers, plans, subscriptions, webhooks
Overview
Local MCP server for Pagar.me payments that lets an assistant create and inspect orders, charges, recipients, transfers, plans, subscriptions and webhooks.
- What you can do
- Create, retrieve and list orders and charges, including Pix, boleto and credit card charges, capture and refunds (full or partial). Create and list recipients for split payments, check account balance, create transfers and withdrawals, and request or inspect receivables anticipation and its limits. Create, update and cancel subscription plans and recurring subscriptions. Tokenize credit cards and register webhook endpoints for event notifications.
- When to use it
- Useful when an assistant should work with a Pagar.me account directly: drafting or placing orders, issuing and refunding charges, managing split recipients and payouts, handling subscriptions, or setting up webhooks. Test mode is recommended while evaluating it.
- Requirements
- Runs locally via npx from the npm package @codespar/mcp-pagar-me, configured in a desktop MCP client such as Claude Desktop, Claude Code, Cursor or VS Code. Requires a Pagar.me account and the PAGARME_API_KEY secret key; PAGARME_PUBLIC_KEY is needed only for card tokenization. Network access to the Pagar.me API.
Installation
In SourceWeft
- Open Mcp Pagar Me 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-pagar-me
MCP server for Pagar.me — Stone ecosystem payments with orders, charges, and split 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 (22)
Authentication
Pagar.me uses Basic Auth with the secret key (sk_xxx) as username and empty password.
Sandbox / Testing
Pagar.me provides test mode via the dashboard. Use a test-mode API key to avoid real charges.
Get your credentials
- Go to Pagar.me Dashboard
- Create an account
- Get your secret key (sk_test_xxx for test mode)
- Set the
PAGARME_API_KEYenvironment variable
Environment Variables
Roadmap
v0.3 (planned)
list_charges— List charges with filterslist_subscriptions— List subscriptionslist_plans— List plansbatch_charges— Create multiple charges in a single requestlist_webhooks/delete_webhook— Full webhook management
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/pagar-me/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