Pagar.me MCP. Process Brazilian payments and billing flows from chat.
Works with every AI agent you already use
…and any MCP-compatible client
Just plug in your AI agents and start using Vinkius.
Pagar.me connects your AI client directly to Brazil’s payment infrastructure. Use this server to programmatically create orders via credit card, generate instant Pix QR codes, and set up recurring subscriptions for SaaS billing.
You can manage the entire financial lifecycle—from customer registration (CPF/CNPJ) to transaction tracking—all through natural conversation with your agent.
What your AI agents can do
Cancel order
Cancels a specific order record.
Capture order
Finalizes an authorized order by capturing the held funds.
Create boleto order
Generates a new order designed to be paid via Boleto Bancário.
Creates an order using credit cards or specific local payments like Pix and Boleto.
Sets up continuous revenue streams by creating and updating customer subscriptions.
Lists recent orders or retrieves specific order details to check status, payment methods, or amounts.
Creates a new customer record using their CPF or CNPJ for billing purposes.
Captures funds from an authorized order, or cancels the entire transaction if needed.
Ask AI about this MCP
Supported MCP Clients
Waiting for input…
Pagar.me MCP Server: 11 Tools for Payment & Order Management
These tools let you manage the full payment lifecycle—from customer setup to final fund capture—using specific APIs like creating Pix, Boleto orders, and managing subscriptions.
019d75eecancel order
Cancels a specific order record.
019d75eecapture order
Finalizes an authorized order by capturing the held funds.
019d75eecreate boleto order
Generates a new order designed to be paid via Boleto Bancário.
019d75eecreate customer
Registers a new customer using their Brazilian tax ID (CPF or CNPJ).
019d75eecreate order
Creates an order for items, requiring both product details and a customer record.
019d75eecreate pix order
Generates a new order that requires payment via Pix, with a one-hour expiration window.
019d75eecreate subscription
Establishes recurring billing for an existing customer on a set plan.
019d75eeget customer
Retrieves detailed information about a specific customer account.
019d75eeget order
Fetches the full details and current status of an order ID.
019d75eeget subscription
Retrieves the billing details for a specific recurring subscription.
019d75eelist orders
Lists recent orders, giving you an overview of multiple transactions.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with Pagar.me, then connect any of our 4,700+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 4,700+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
What you can do with this MCP connector
Pagar.me connects your AI client directly to Brazil’s payment infrastructure. You use this server when you need to handle everything financial—from registering a customer to capturing funds and setting up monthly billing cycles—all through natural conversation with your agent.
When you're getting an order processed, you can first register local customers by calling create_customer, using their Brazilian tax ID either as a CPF or CNPJ. Once that record exists, you’ve got options for generating the sale. You can generate a standard order requiring product details and an existing customer record using create_order.
If the payment needs to be handled with a credit card, create_order handles it. For instant payments, use create_pix_order; this generates an order that requires Pix payment and includes a one-hour expiration window for quick capture. If you need them to pay via bank slip instead, call create_boleto_order, generating an order specifically designed for Boleto Bancário.
After the customer makes a payment, you have control over the funds. You finalize an authorized order—meaning the money is held but not yet taken—by executing capture_order. If something goes sideways and you need to completely void the transaction before capturing funds, you call cancel_order to cancel that specific order record.
For ongoing revenue streams, you don't have to deal with manual invoices. You set up continuous billing cycles by calling create_subscription, which establishes recurring payments for an existing customer on a defined plan. You can later check the status of these automated charges using get_subscription to retrieve all the billing details.
When tracking down what's happening with money, you have full visibility into the transaction history. Use list_orders when you want a quick overview of multiple recent transactions, giving you an immediate picture of your sales flow. If you only need details on one specific purchase, calling get_order fetches all the current status and payment methods for that order ID.
Similarly, if you're checking up on a customer’s details or needing to verify their account information, you use get_customer. Finally, if you just want the billing specifics of any subscription you set up, you check those records with get_subscription.
It's all about managing the full lifecycle. You get the payment method ready—whether it’s a credit card, Pix, or Boleto. You establish the customer record using their CPF or CNPJ. You create and manage the order via create_order, create_pix_order, or create_boleto_order. You handle the recurring revenue with create_subscription, while always maintaining control to capture funds with capture_order or void things entirely using cancel_order.
All of this happens through direct, programmatic calls to Pagar.me's tools.
How Pagar.me MCP Works
- 1 First, subscribe to the Pagar.me server and supply your unique Secret Key.
- 2 Next, prompt your AI client with a payment task (e.g., 'Create a Pix order for R$100').
- 3 The agent uses the appropriate tool (
create_pix_order) to execute the API call, returning an immediate status or necessary next steps.
The bottom line is: you talk to your AI client in natural language, and it handles the complex payment logic behind the scenes.
Who Is Pagar.me MCP For?
This tool is for SaaS founders and e-commerce ops engineers running businesses that accept Brazilian payments. If your job involves billing, recurring revenue, or managing inventory sales in Brazil, you need this. It cuts out the manual API calls and spreadsheet reconciliation.
Needs to process ad-hoc orders for customers—sometimes via Boleto, sometimes via credit card—and track which payments succeeded or failed.
Must set up new customer accounts and automate recurring billing cycles (subscriptions) without manually calling the API for every renewal.
Needs a reliable, structured way to test complex payment workflows—like creating an order, authorizing it, and then capturing funds later—all within a consistent environment.
What Changes When You Connect
- Automated Payment Flow: You can generate instant Pix QR codes using
create_pix_order. This moves you past the manual process of copying static payment links, making checkout faster for users. - Subscription Reliability: Managing recurring revenue is simple. The
create_subscriptiontool handles setting up and tracking billing cycles for your SaaS clients without needing custom cron jobs. - Full Order Lifecycle Control: Need to cancel something? Use
cancel_order. If the payment was already authorized, you can still useget_orderto verify status before rolling back the transaction. - Customer Data Management: You don't have to juggle CRM and billing systems.
create_customerhandles registration using local IDs (CPF/CNPJ), ensuring your orders are tied to correct billing entities. - Comprehensive Oversight: Instead of checking 10 different dashboards, running
list_ordersgives you a quick overview of the last transactions, making reconciliation fast and reliable.
Real-World Use Cases
Handling an ad-hoc payment
A customer needs to pay for a single item immediately. The agent uses create_pix_order with the required amount, generates the QR code instantly, and waits until the status is confirmed via get_order. Problem solved: instant cash flow.
Setting up new SaaS billing
A founder signs up a client. The agent first uses create_customer to register them with their tax ID, then calls create_subscription for the monthly plan. This guarantees the customer record exists before any billing occurs.
Reconciling batch payments
At month-end close, an analyst needs to check all transactions. They run list_orders, review pending status on card payments, and then use get_order on specific IDs to see if the payment has been captured.
Correcting a failed transaction
An order was placed but needs modification. The agent uses get_order to confirm the current status, then calls cancel_order before requesting a new payment method via create_boleto_order.
The Tradeoffs
Assuming success after creation
The user thinks: 'I just called create_pix_order, so the money is there.' But sometimes, the order is created but payment confirmation hasn't hit the system yet.
→
Always follow up a creation call with get_order(order_id) to confirm the real-time status. Don't assume 'created' means 'paid'.
Manually calculating customer details
A developer hardcodes the customer ID into the payment script, but the client updates their company registration number.
→
Always run create_customer(cpf/cnpj) first. This ensures your billing record is current before you attempt to create any order or subscription.
Ignoring expiration windows
The user creates an order using a payment method that expires in 1 hour, but the AI client waits too long to process it.
→
Understand the time limits. If you use create_pix_order, act fast and treat the resulting QR code as temporary.
When It Fits, When It Doesn't
Use this server if your core business function is processing, tracking, or automating revenue collection in Brazil. You need it when your workflow involves payments that aren't just simple Stripe/PayPal card charges—specifically Pix, Boleto, or recurring subscriptions.
Don't use it if you only need to manage product inventory or user authentication (use a dedicated identity service instead). If you are building an internal accounting tool and never need to actually capture funds, consider mocking the API calls; otherwise, this is your single source of truth for transactional data. Always prefer using list_orders first when debugging status issues, as it gives context across multiple recent payments.
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Pagar.me. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This server provides 11 capabilities that interface natively with Claude, ChatGPT, Cursor, and any MCP client. No middleware. No custom integration required.
Available Capabilities
Processing local payments used to mean juggling three different APIs.
Before this server, if you wanted to accept money in Brazil, your engineering team had to integrate separate SDKs for Pix, Boleto, and credit card processing. Then, when the payment landed, you spent hours cross-referencing transaction logs between those disparate systems just to know if the sale was confirmed or pending.
Now, through Pagar.me MCP, all three methods are centralized. Your agent handles the complexity. You simply ask for an order and specify the payment type—Pix, Boleto, or card—and get a unified status update back.
Pagar.me MCP Server: Manage orders & payment flows
The old process for setting up recurring billing involved creating a customer record in the CRM, then manually calling a subscription endpoint, and hoping all IDs matched up. It was fragile and required constant manual verification to ensure the next billing date was correct.
With `create_subscription`, your AI client manages that entire sequence—customer validation, plan linking, and future billing dates—in one atomic workflow. You just define the rate and frequency.
Common Questions About Pagar.me MCP
How do I get my Secret Key? +
Log in to the Pagar.me dashboard, navigate to Settings > API Keys and copy your Secret Key (starts with sk_...). No complex OAuth apps, no webhooks — just connect and start processing payments.
Does it support Pix and Boleto? +
Yes! Generate instant Pix QR Codes or Boletos right in the chat. Your agent handles the entire checkout flow — creating the order, retrieving the payment code, and allowing the customer to pay without ever leaving the conversation.
Can I manage subscriptions? +
Yes. Just tell your AI agent to subscribe a new customer. It will register the customer, attach them to your predefined SaaS recurring plan, and confirm the active billing status — all in a single prompt without touching a dashboard.
Can I manage complete customer profiles and track their transaction histories? +
Absolutely. View detailed customer records, pull entire order histories, and verify payment statuses instantly — perfect for SaaS founders, customer support teams, and digital agencies handling multiple accounts.
When should I use the `capture_order` tool? +
You run capture_order when a customer authorizes payment, but you need to finalize the funds later. This step converts an authorized hold into actual settled money. It's critical for handling delays or batch processing.
How long is my payment link active when I use `create_pix_order`? +
The Pix order expires in one hour. If the customer hasn't paid by then, you must check its status using get_order. This lets you prompt them to pay or reissue a new QR code.
What details are required when I use `create_customer`? +
The tool requires a valid CPF or CNPJ number to register the customer. Using this unique ID ensures all future orders and transactions link correctly to that specific client profile.
Is it possible to cancel an order using `cancel_order`? +
Yes, you can use cancel_order if the transaction hasn't been processed. Be aware that if funds have already been captured or paid out, cancellation might require manual follow-up with Pagar.me support.
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
More in this category
Fireblocks
Securely manage digital assets, vault accounts, and blockchain transactions via the Fireblocks Digital Asset Platform directly from your AI agent.
Wise
Equip your AI agent with direct access to Wise — check multi-currency balances, track international transfers, and manage recipients without opening the banking interface.
Walmart Connect Ads
Manage Walmart Sponsored Search campaigns, budgets, keywords, and performance reports with AI. Exclusive for Walmart Connect Partner Network members.
You might also like
Tatum (Blockchain Infra)
Simplify blockchain development with Tatum — estimate fees, track portfolios, and manage real-time webhook subscriptions across multiple chains.
Reservoir (NFT Liquidity API)
Access aggregated NFT liquidity, metadata, and real-time pricing across all major marketplaces via the Reservoir API.
Everfit Coaching
Equip your AI agent to manage coaching clients, track workout plans, and monitor performance via the Everfit API.