Skip to main content
P

Pagar.me

@codespar/mcp-pagar-me Β· v0.2.2

πŸ‡§πŸ‡· BrazilPaymentsAuth Β· API Keylive22 tools2 env vars

Payment gateway with card, Pix, and boleto. Receivables anticipation and risk management built for Brazilian marketplaces.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • Hosted calls with a test key are not available: the runtime has not recorded this provider's test behaviour (test venue unclassified).
Package
@codespar/mcp-pagar-me
Version
0.2.2
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables2 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 22 tools. Try create_order first.
terminal
# Claude Code claude mcp add pagar-me -e PAGARME_API_KEY=… -e PAGARME_PUBLIC_KEY=… -- npx -y @codespar/mcp-pagar-me@0.2.2 # then: /mcp to confirm the server is connected
Environment variables2 variables
PAGARME_API_KEYSecret key (sk_xxx) for Pagar.merequiredsecret
PAGARME_PUBLIC_KEYPublic key (pk_xxx) for card tokenization (required only for create_card_token)optional

Names read from the package code (@codespar/mcp-pagar-me@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_order

"Create an order in Pagar.me with items and payment"

tools/callcreate_orderresult returned

Tools

What your agent can call.

22 tools, as the package's tools/list returns them.

create_order

Create an order in Pagar.me with items and payment

get_order

Get order details by ID

list_orders

List orders with optional filters

create_charge

Create a charge (Pix, boleto, or credit card)

get_charge

Get charge details by ID

create_recipient

Create a recipient for split payments

get_balance

Get current account balance

create_transfer

Create a transfer to a recipient

refund

Refund a charge (full or partial)

list_recipients

List recipients with optional filters

create_anticipation

Request anticipation of receivables for a recipient (antecipaΓ§Γ£o)

get_anticipation

Get anticipation details by ID

Names and descriptions come from the package's tools/list (@codespar/mcp-pagar-me@0.2.2). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

codespar_discover lists this server's tools, but a project with a test key cannot call them yet: the runtime has not recorded what this provider does in test mode, and refuses rather than guess.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Pagar.me MCP server?

Run npx -y @codespar/mcp-pagar-me@0.2.2 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Pagar.me?

Pagar.me exposes 22 tools for payments. Your agent calls them directly; the full list is above.

How does Pagar.me authenticate, and how are credentials stored?

Pagar.me uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Pagar.me handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.2, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Pagar.me open source? How do I report a bug?

Yes. Pagar.me is MIT-licensed and published on npm as @codespar/mcp-pagar-me, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Pagar.me β€” MCP server Β· 22 tools | CodeSpar