🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-mercado-pago

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-mercado-pago

MCP server for Mercado Pago — payments, checkout, PIX, refunds for LATAM

latest
npmnpm
Version
0.2.2
Version published
Weekly downloads
54
50%
Maintainers
2
Weekly downloads
 
Created
Source

MCP Mercado Pago

MCP server for the Mercado Pago payment gateway — the leading payment platform in Latin America.

Quick Start

# Set your access token
export MERCADO_PAGO_ACCESS_TOKEN="APP_USR-..."

# Run via stdio
npx tsx packages/payments/mercado-pago/src/index.ts

# Run via HTTP
npx tsx packages/payments/mercado-pago/src/index.ts --http

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)

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).

Auth

Uses Bearer token authentication. Obtain your access token from 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.

Authentication

Set these environment variables before launching the server:

  • MERCADO_PAGO_ACCESS_TOKEN (required, secret) — API key/token for mercado-pago

Issue credentials at the provider's developer portal: https://www.mercadopago.com.br/developers.

License

MIT

Keywords

mercado-pago

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts