Skip to main content
PA

Pagar.me

v0.2.1API Key

Gateway de pago con tarjeta, Pix y boleto. Anticipación de recibibles y gestión de riesgo hechos para marketplaces brasileños.

22 herramientas2 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

Pagar.me le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_orderCreate an order in Pagar.me with items and payment
  • get_orderGet order details by ID
  • list_ordersList orders with optional filters
Ejemplo de llamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_order", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-pagar-me

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "pagar-me": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-pagar-me"
      ],
      "env": {
        "PAGARME_API_KEY": "<your_pagarme_api_key>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá create_order primero.

Variables de entorno · 2

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

PAGARME_API_KEY
obligatoriosecret

Secret key (sk_xxx) for Pagar.me

PAGARME_PUBLIC_KEY
opcional

Public key (pk_xxx) for card tokenization (required only for create_card_token)

Herramientas disponibles · 22

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEcreate_order
Create an order in Pagar.me with items and payment
READget_order
Get order details by ID
READlist_orders
List orders with optional filters
WRITEcreate_charge
Create a charge (Pix, boleto, or credit card)
WRITEget_charge
Get charge details by ID
WRITEcreate_recipient
Create a recipient for split payments
READget_balance
Get current account balance
WRITEcreate_transfer
Create a transfer to a recipient

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-pagar-me` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Pagar.me — MCP server · 22 tools | CodeSpar