Skip to main content
PA

PagSeguro

v0.2.1API Key

Stack de pago completo: pedidos, Pix, boleto y tarjeta de crédito. Tu agente crea cobros y gestiona todo el ciclo de vida del pago.

24 herramientas1 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

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

  • create_orderCreate an order in PagSeguro (Pix, boleto, or credit card)
  • 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-pagseguro

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": {
    "pagseguro": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-pagseguro"
      ],
      "env": {
        "PAGSEGURO_TOKEN": "<your_pagseguro_token>"
      }
    }
  }
}

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

Variables de entorno · 1

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

PAGSEGURO_TOKEN
obligatoriosecret

API key for pagseguro

Herramientas disponibles · 24

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

WRITEcreate_order
Create an order in PagSeguro (Pix, boleto, or credit card)
READget_order
Get order details by ID
READlist_orders
List orders with optional filters
WRITEcreate_charge
Create a standalone charge
DELETErefund
Refund a charge (full or partial)
READget_pix_qrcode
Get Pix QR code payload and image for an order charge
WRITEcreate_customer
Create a customer in PagSeguro
READget_balance
Get account balance

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-pagseguro` 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.
PagSeguro — MCP server · 24 tools | CodeSpar