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 (Mercado Pago's API) to manage customer data, specifically allowing you to update existing customer information. It is useful in scenarios where you need to keep your customer records synchronized with Mercado Pago, such as updating email addresses or names after changes in your CRM or user database.

For example, if a customer's email or name changes in your system, you can use this node to update that information directly in Mercado Pago, ensuring consistency across platforms.

Properties

Name Meaning
ID do Cliente The unique identifier of the customer to update.
Email The customer's email address. This is required and will be updated.
Primeiro Nome The customer's first name. Optional field to update the first name.
Sobrenome The customer's last name. Optional field to update the last name.

Output

The node outputs a JSON object containing:

  • type: A string indicating the operation type, here "customer_updated".
  • customer: An object with the updated customer details returned from Mercado Pago.
  • success: A boolean indicating whether the operation was successful (true).
  • timestamp: The ISO timestamp when the operation was performed.

Example output structure:

{
  "type": "customer_updated",
  "customer": {
    "id": "123456789",
    "email": "cliente@exemplo.com",
    "first_name": "João",
    "last_name": "Silva",
    ...
  },
  "success": true,
  "timestamp": "2024-06-01T12:00:00.000Z"
}

No binary data is produced by this node.

Dependencies

  • Requires an API key credential for Mercado Pago MCP API authentication.
  • Uses the Mercado Pago REST API endpoint https://api.mercadopago.com/v1/customers/{customerId} for updating customer data.
  • The node expects proper configuration of the Mercado Pago API credentials within n8n.

Troubleshooting

  • Missing or invalid customer ID: If the provided customer ID does not exist or is incorrect, the API call will fail. Verify the customer ID before running the node.
  • Invalid or missing email: Since email is required, omitting it or providing an invalid format may cause errors.
  • API authentication errors: Ensure the API key credential is valid and has the necessary permissions.
  • Network or connectivity issues: Check network access to Mercado Pago API endpoints.
  • Error messages typically include HTTP status codes and error descriptions from Mercado Pago API. Review these messages to identify issues like unauthorized access, resource not found, or validation errors.

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

Links and References

Discussion