Skip to main content
ME

Mercado Pago

v0.2.1OAuth2

Checkout Pro, Pix, boleto, tarjeta. Split de marketplace. El gateway de pagos de LatAm que de verdad funciona entre países.

30 herramientas1 env vars🌎 LATAMestable en npm

Qué puede hacer tu agente

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

  • create_paymentCreate a new payment
  • get_paymentGet payment details by ID
  • search_paymentsSearch payments with 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_payment", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-mercado-pago

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": {
    "mercado-pago": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-mercado-pago"
      ],
      "env": {
        "MERCADO_PAGO_ACCESS_TOKEN": "<your_mercado_pago_access_token>"
      }
    }
  }
}

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

Variables de entorno · 1

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

MERCADO_PAGO_ACCESS_TOKEN
obligatoriosecret

API key/token for mercado-pago

Herramientas disponibles · 30

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

WRITEcreate_payment
Create a new payment
WRITEget_payment
Get payment details by ID
WRITEsearch_payments
Search payments with filters
DELETEcreate_refund
Refund a payment (full or partial)
WRITEcreate_preference
Create a checkout preference for Checkout Pro
READget_preference
Get checkout preference by ID
WRITEcreate_customer
Create a customer
READlist_customers
List customers

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-mercado-pago` 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.
Mercado Pago — MCP server · 30 tools | CodeSpar