mcpField
M
mcp-mercado-pago

mcp-mercado-pago

Local
github.com/codesparFinance275Updated 4w ago

About mcp-mercado-pago

An MCP server for the Mercado Pago payment platform, aimed at payment and checkout workflows in Latin America. It exposes 30 tools covering payments, Checkout Pro, PIX, refunds, subscriptions and merchant orders.

Key features

  1. 01Payment creation, lookup and search
  2. 02Full or partial refunds
  3. 03Checkout Pro preference management
  4. 04PIX payment creation
  5. 05Subscription (preapproval) management
  6. 06Marketplace split payments and chargeback evidence upload

Use cases

  1. 01Creating PIX or card payments from an agent
  2. 02Generating Checkout Pro links for an online store
  3. 03Handling refunds and chargeback disputes

MCP support

This is an MCP server that exposes 30 tools to MCP clients for calling the Mercado Pago API. It authenticates with a Bearer access token set in MERCADO_PAGO_ACCESS_TOKEN.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-mercado-pago": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-mercado-pago"
],
"env": {
"MERCADO_PAGO_ACCESS_TOKEN": "<MERCADO_PAGO_ACCESS_TOKEN>"
}
}
}
}
Run commandnpx -y @codespar/mcp-mercado-pago
Environment variables to set
MERCADO_PAGO_ACCESS_TOKENSecretAPI key/token for mercado-pago

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-mercado-pago0.2.2

Tools

30

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
tokenstringNoCard token (for credit card payments)
amountnumberYesPayment amount
descriptionstringYesPayment description
payer_emailstringYesPayer email address
installmentsnumberNoNumber of installments (default 1)
payment_method_idstringYesPayment method ID (e.g. pix, credit_card, bolbradesco)

Details

From the project README

@codespar/mcp-mercado-pago

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

npm License: MIT

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)

ToolPurpose
create_paymentCreate a new payment
get_paymentGet payment details by ID
search_paymentsSearch payments with filters
create_refundRefund a payment (full or partial)
create_preferenceCreate a checkout preference for Checkout Pro
get_preferenceGet checkout preference by ID
create_customerCreate a customer
list_customersList customers
get_payment_methodsList available payment methods
create_pix_paymentCreate a PIX payment
get_merchant_orderGet merchant order by ID
get_balanceGet account balance
create_subscriptionCreate a recurring subscription (preapproval)
get_subscriptionGet subscription (preapproval) details by ID
cancel_subscriptionCancel a subscription (preapproval)
create_card_tokenTokenize a card for secure payments
get_payment_method_detailsGet details of a specific payment method by ID
create_storeCreate a store (physical location or POS group)
list_storesList stores
create_posCreate a point of sale (POS) linked to a store
update_subscriptionUpdate a subscription (preapproval): amount, status, reason, card token, etc.
oauth_token_exchangeExchange an authorization code for a seller access token (marketplace onboarding).
create_advanced_paymentCreate a marketplace split payment with per-recipient disbursements (application_fee, money_release_days, c...
get_advanced_paymentGet an advanced (split) payment by ID
get_chargebackGet chargeback details by ID
upload_chargeback_evidenceUpload documentation/evidence for a chargeback dispute.
get_identification_typesGet document/identification types available per country (CPF, CNPJ, DNI, RUT, etc.).
get_payment_methods_by_siteList available payment methods for a specific Mercado Pago site (MLB=Brazil, MLA=Argentina, MLM=Mexico, MLC...
create_settlement_reportManually generate a settlement (account money) report for a date range.
search_merchant_ordersSearch merchant orders with filters (last 90 days).

Environment Variables

VariableRequiredDescription
MERCADO_PAGO_ACCESS_TOKENYesAccess token from Mercado Pago dashboard
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.