# mcp-mercado-pago

Connect an agent to Mercado Pago tools for payments, refunds, PIX, and subscriptions. The server needs a Mercado Pago access token to run.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/mercado-pago
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-mercado-pago

## What it does

The server exposes tools for payments, Checkout Pro preferences, PIX, customers, balances, subscriptions, and merchant orders. Agents can also issue refunds, handle chargeback evidence, and create split payments. The README lists 30 tools.

In Claude Code, it runs through `npx` over stdio. HTTP transport is also available by setting `MCP_HTTP` and `MCP_PORT`. Supply `MERCADO_PAGO_ACCESS_TOKEN` when configuring the server; without a valid token, Mercado Pago requests cannot authenticate.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MERCADO_PAGO_ACCESS_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-mercado-pago -e MERCADO_PAGO_ACCESS_TOKEN=<MERCADO_PAGO_ACCESS_TOKEN> -- npx -y @codespar/mcp-mercado-pago
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mercado-pago --env MERCADO_PAGO_ACCESS_TOKEN=<MERCADO_PAGO_ACCESS_TOKEN> -- npx -y @codespar/mcp-mercado-pago
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mercado-pago": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-mercado-pago"
            ],
            "env": {
                "MERCADO_PAGO_ACCESS_TOKEN": "<MERCADO_PAGO_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mercado-pago": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-mercado-pago"
            ],
            "env": {
                "MERCADO_PAGO_ACCESS_TOKEN": "<MERCADO_PAGO_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MERCADO_PAGO_ACCESS_TOKEN=<MERCADO_PAGO_ACCESS_TOKEN> mercado-pago npx -y @codespar/mcp-mercado-pago
```
Replace <…> with your own values

## When to use it
- create a Mercado Pago payment or Checkout Pro preference
- search payments with filters and inspect their details
- issue a full or partial refund
- create a PIX payment or recurring subscription
- retrieve chargeback information

## Example prompts
- Create a Mercado Pago payment for this amount and currency.
- Search payments using these filters and show their statuses.
- Issue a partial refund for this payment.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
