Mercado Pago

Finance and commerce

Mercado Pago, payments, checkout, PIX, refunds for LATAM.

Your AI app calls the Mercado Pago MCP server, which does the finance and commerce work and sends the result back to the chat.

About Mercado Pago

Mercado Pago is a community MCP server from codespar, filed in our directory under finance and commerce. Mercado Pago, payments, checkout, PIX, refunds for LATAM.

Mercado Pago runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-mercado-pago@0.2.2 and talks to it over standard input and output. It needs MERCADO_PAGO_ACCESS_TOKEN set before Mercado Pago starts.

Mercado Pago is listed in the official MCP registry as io.github.codespar/mcp-mercado-pago, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-mercado-pago
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-mercado-pago

How to set up Mercado Pago

  1. Install Node.js on the machine that runs your AI app, because Mercado Pago starts with npx and downloads its package on first run.
  2. Create MERCADO_PAGO_ACCESS_TOKEN for Mercado Pago in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Mercado Pago to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mercado Pago tools to confirm the connection.
  5. Run one read-only task with Mercado Pago first, and keep your app asking before each tool call until the results look right.

Mercado Pago compared with similar servers

  • Midaz by codespar has fewer GitHub stars than Mercado Pago (278 against 278); both are community servers, and both run locally.
  • Mercado Libre by codespar has fewer GitHub stars than Mercado Pago (278 against 278); both are community servers, and both run locally.
  • Moonpay by codespar has fewer GitHub stars than Mercado Pago (278 against 278); both are community servers, and both run locally.

Before you connect Mercado Pago

  • Give Mercado Pago its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mercado Pago tool call until you trust what it does with them.
  • Treat text that Mercado Pago fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mercado Pago on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mercado Pago

How marketing and sales teams put Mercado Pago to work, by company size. Pick the size closest to yours and start Mercado Pago on one use case.

Small business

  • A small business can ask Mercado Pago which products and customers drive margin, then plan promotions around them.
  • Owners can use Mercado Pago to check refunds, failed payments and churn reasons without opening three dashboards.
  • Mercado Pago runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Mercado Pago to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Mercado Pago to check spend against budget each week and move money to what's working.
  • Start Mercado Pago on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Mercado Pago read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Mercado Pago to answer revenue questions by channel and region with figures finance signs off on.
  • Mercado Pago is a community server, so have security review the code and pin a version before Mercado Pago touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mercado Pago README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-mercado-pago

MCP server for Mercado Pago, the leading payment platform in Latin America

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "mercado-pago": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-mercado-pago"],
      "env": {
        "MERCADO_PAGO_ACCESS_TOKEN": "APP_USR-..."
      }
    }
  }
}
Claude Code
claude mcp add mercado-pago -- npx @codespar/mcp-mercado-pago
CLI
# Set your access token
export MERCADO_PAGO_ACCESS_TOKEN="APP_USR-..."

# Run via stdio
npx -y @codespar/mcp-mercado-pago

# Run via HTTP
MCP_HTTP=true MCP_PORT=3000 npx -y @codespar/mcp-mercado-pago

Tools (30)

Tool Purpose
create_payment Create a new payment
get_payment Get payment details by ID
search_payments Search payments with filters
create_refund Refund a payment (full or partial)
create_preference Create a checkout preference for Checkout Pro
get_preference Get checkout preference by ID
create_customer Create a customer
list_customers List customers
get_payment_methods List available payment methods
create_pix_payment Create a PIX payment
get_merchant_order Get merchant order by ID
get_balance Get account balance
create_subscription Create a recurring subscription (preapproval)
get_subscription Get subscription (preapproval) details by ID
cancel_subscription Cancel a subscription (preapproval)
create_card_token Tokenize a card for secure payments
get_payment_method_details Get details of a specific payment method by ID
create_store Create a store (physical location or POS group)
list_stores List stores
create_pos Create a point of sale (POS) linked to a store
update_subscription Update a subscription (preapproval): amount, status, reason, card token, etc.
oauth_token_exchange Exchange an authorization code for a seller access token (marketplace onboarding).
create_advanced_payment Create a marketplace split payment with per-recipient disbursements (application_fee, money_release_days, c...
get_advanced_payment Get an advanced (split) payment by ID
get_chargeback Get chargeback details by ID
upload_chargeback_evidence Upload documentation/evidence for a chargeback dispute.
get_identification_types Get document/identification types available per country (CPF, CNPJ, DNI, RUT, etc.).
get_payment_methods_by_site List available payment methods for a specific Mercado Pago site (MLB=Brazil, MLA=Argentina, MLM=Mexico, MLC...
create_settlement_report Manually generate a settlement (account money) report for a date range.
search_merchant_orders Search merchant orders with filters (last 90 days).

Environment Variables

Variable Required Description
MERCADO_PAGO_ACCESS_TOKEN Yes Access token from Mercado Pago dashboard
MCP_HTTP No Set to "true" to enable HTTP transport
MCP_PORT No HTTP port (default: 3000)

Authentication

Uses Bearer token authentication. Set this environment variable before launching the server:

  • MERCADO_PAGO_ACCESS_TOKEN (required, secret): access token for Mercado Pago

Issue credentials at the Mercado Pago Developers dashboard.

API Reference

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Mercado Pago

What is the Mercado Pago MCP server?

Mercado Pago, payments, checkout, PIX, refunds for LATAM. Mercado Pago is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mercado Pago MCP server?

Add Mercado Pago to your AI app's MCP config with the command npx -y @codespar/mcp-mercado-pago@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-mercado-pago -- npx -y @codespar/mcp-mercado-pago@0.2.2. To run Mercado Pago this way you need Node.js installed.

Does Mercado Pago need an API key?

Yes. Mercado Pago expects MERCADO_PAGO_ACCESS_TOKEN to be set. Create the key for Mercado Pago in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Mercado Pago an official MCP server?

No. Mercado Pago is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Mercado Pago access to company data.

What license is Mercado Pago under?

Mercado Pago is released under the MIT license, according to its GitHub repository. The license covers the code of Mercado Pago; the service it connects to has its own terms.