Mercado Pago MCP icon

Mercado Pago MCP

Integração com MCP Server do Mercado Pago

Actions26

Overview

This node integrates with the Mercado Pago MCP Server to manage orders and their payment transactions. Specifically, the Order - Create operation allows users to create a new order with detailed payment information, including transaction amount, description, payment method, and payer email. It also supports an option to either immediately capture the payment or just authorize it.

Common scenarios where this node is beneficial include:

  • E-commerce platforms automating order creation and payment processing.
  • Businesses needing to integrate Mercado Pago's advanced order and payment features into their workflows.
  • Automating financial operations such as capturing payments or authorizing them for later capture.

Practical example:

  • When a customer places an order on an online store, this node can be used to create the order in Mercado Pago with the specified transaction amount, payment method (e.g., credit card), and payer email. The business can choose to capture the payment immediately or only authorize it for manual capture later.

Properties

Name Meaning
Valor da Transação Transaction amount in Brazilian reais (R$).
Descrição Description of the order (e.g., "Pagamento do pedido").
ID do Método de Pagamento Payment method identifier (e.g., "visa", "pix", etc.).
Email do Pagador Email address of the payer.
Capturar Boolean flag indicating whether to capture the payment immediately (true) or only authorize (false).

Output

The node outputs a JSON object containing the result of the order creation request. The main output fields include:

  • type: A string indicating the type of response, here "order_created".
  • order: An object representing the created order details returned by Mercado Pago API.
  • success: A boolean indicating if the operation was successful (true).
  • timestamp: ISO string timestamp of when the operation was performed.

If the operation fails and "Continue On Fail" is enabled, the output will contain an error message with success: false.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for Mercado Pago MCP API authentication.
  • Uses Axios HTTP client to communicate with Mercado Pago endpoints.
  • Needs proper configuration of the Mercado Pago MCP API credentials within n8n, including access token and endpoint URL.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the Mercado Pago API credentials are correctly configured and valid.
  • Required parameters missing: The node requires all mandatory properties (transactionAmount, orderDescription, orderPaymentMethodId, orderPayerEmail) to be provided; missing any will cause errors.
  • Invalid payment method ID: Use valid payment method IDs supported by Mercado Pago.
  • Capture flag issues: If capture is set incorrectly, payments may not be processed as expected (authorized but not captured).
  • Network or API errors: Check network connectivity and Mercado Pago service status if requests fail.
  • Error messages: The node throws errors with descriptive messages, e.g., missing card token for card payments (not applicable here but relevant for other operations).

To resolve errors, verify input parameters, credentials, and network conditions.

Links and References

Discussion