/mercadopago:mp-webhooksfrom Mercado Pago
Configure Mercado Pago webhook URLs, validate HMAC-SHA256 signatures, and diagnose delivery failures. Use when integrating payment notifications.
Ships in Mercado Pago. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill is for everything notifications. It is the only place where the HMAC validation pattern lives — every other skill defers here.
Do not inspect MCP state when this skill starts. Scaffolding and reviewing the receiver pattern are static operations and require no MCP connection.
Connect only immediately before one of these selected operations:
| Operation | Required MCP tool |
|---|---|
| Fetch a language-specific signature example | search_documentation |
| Resolve an unknown or country-specific topic | search_documentation |
| Register or rotate the callback URL | save_webhook |
| Confirm or diagnose webhook delivery | notifications_history |
On-demand authentication procedure:
application_list as a connection probe.mcp__plugin_mercadopago_mcp__authenticate.plugin:mercadopago:mcp. Keep any static scaffold/review work available offline.Show this prerequisites checklist only when the developer selects an MCP-backed action:
Before configuring webhooks live, you'll need:
- [ ] A Mercado Pago developer account
- [ ] An app created in the Developer Dashboard
- [ ] Test credentials: APP_USR- access token + public key (tab {test_tab})
- [ ] The webhook signature secret (Dashboard → Webhooks → Signature secret)
Connection will be requested immediately before the selected MCP operation.
Ask the developer (or infer from $ARGUMENTS) which of these they want:
| Action | Tool to call | When |
|---|---|---|
| Configure the webhook URL on the MP application | save_webhook | First time setup or rotating the endpoint |
| Diagnose delivery failures | notifications_history | Investigating missed/failed notifications |
| Scaffold the receiver code | (no MCP call — render the pattern below) | Adding the receiver to the codebase |
You may chain them: scaffold the receiver → save_webhook → trigger a real test payment → use notifications_history to confirm delivery.
Mercado Pago signs every notification with the secret returned in the dashboard at Webhooks → Signature secret. The x-signature header is composed of ts=...,v1=... where v1 is the HMAC-SHA256 of the canonical string "id:{data.id};request-id:{x-request-id};ts:{ts};".
Every receiver MUST:
x-signature and x-request-id from the request headers.ts and v1 out of x-signature.data.id (from the JSON body) and x-request-id and ts.HMAC-SHA256(canonical, secret) and compare in constant time with v1.200 immediately if the signature is valid — process the event asynchronously afterwards. Mercado Pago retries on non-200 responses with exponential backoff for up to ~24 hours.data.id + topic as the dedup key.id:<data.id>;request-id:<x-request-id>;ts:<ts>;
import crypto from "node:crypto";
const SECRET = process.env.MP_WEBHOOK_SECRET;
export function mpWebhook(req, res) {
const signature = req.header("x-signature") ?? "";
const requestId = req.header("x-request-id") ?? "";
const parts = Object.fromEntries(
signature.split(",").map((p) => p.split("=").map((s) => s.trim()))
);
const ts = parts.ts;
const v1 = parts.v1;
const dataId = req.body?.data?.id;
if (!ts || !v1 || !dataId || !requestId) return res.status(400).end();
const canonical = `id:${dataId};request-id:${requestId};ts:${ts};`;
const expected = crypto.createHmac("sha256", SECRET).update(canonical).digest("hex");
const ok = expected.length === v1.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
if (!ok) return res.status(401).end();
res.status(200).end();
// process asynchronously after responding 200
queueMicrotask(() => handleEvent(req.body));
}
For other languages, apply Step 0 immediately before querying MCP search_documentation with:
"webhook signature validation {language}" (e.g., python, java, php, ruby, go, dotnet).The notification body contains type (the topic) and data.id. Common topics:
| Topic | When | Resource to fetch |
|---|---|---|
payment | Payment status change (Payments API) | GET /v1/payments/{id} |
orders | Point / QR Code event (Orders API) | GET /v1/orders/{id} |
merchant_order | Merchant order updated — legacy (Checkout Pro / QR attended via legacy API) | GET /merchant_orders/{id} |
topic_claims_integration_wh | Chargebacks | GET /v1/chargebacks/{id} |
point_integration_wh | Point device events — legacy (old Point Integration API) | Point legacy API — query MCP for the country |
subscription_preapproval | Subscription status change | GET /preapproval/{id} |
subscription_authorized_payment | Recurring charge attempt | GET /authorized_payments/{id} |
If a topic is not in this table, apply Step 0 immediately before querying MCP for the latest list rather than guessing.
save_webhook)Connect on demand: apply Step 0 immediately before
save_webhook. Do not callapplication_listfirst.
mcp__plugin_mercadopago_mcp__save_webhook(
callback="https://<production-url>/mp/webhook",
callback_url="https://<your-domain>/mp/webhook",
topics=["payment", "merchant_order", ...]
)
Confirm the response shows the URL and topics correctly registered.
simulate_webhook no longer exists in the MCP. To test your receiver:
200 and processed the event idempotentlyApply Step 0 immediately before using notifications_history to confirm delivery:
mcp__plugin_mercadopago_mcp__notifications_history()
Connect on demand: apply Step 0 immediately before
notifications_history. Do not callapplication_listfirst.
mcp__plugin_mercadopago_mcp__notifications_history()
Returns delivery metrics and a breakdown of failures (timeouts, non-200 responses, signature mismatches). Use this when notifications are missing in production.
200 before processing. A long synchronous handler causes retries that flood the receiver and can mask the real failure.data.id + type as the dedup key.?id=&topic= GET-style notification) is deprecated. New integrations use only the modern signed webhook described here.mp-integrate.mp-review.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mercadopago, webhooks, hmac, signature-validation, payment-notifications
4 skills in this plugin
/mp-integrateWizard that scaffolds a complete Mercado Pago integration from official and bundled sources, using MCP only for selected account actions or documentation gaps. Use whenever the developer wants to add or migrate a Mercado Pago payment flow./mp-reviewReview a Mercado Pago integration with a local cross-cutting security checklist and official MCP quality tools on demand. Use after the integration is in place, or when /mp-review is invoked./mp-test-setupCreate test users and add funds to them for Mercado Pago testing. Wraps create_test_user and add_money_test_user from the MCP. Clarifies that credentials come in APP_USR- (Orders API, Checkout Pro, Point, QR) and TEST- (Checkout API, Bricks, Payments API) formats — both are valid and actively issued.2 plugins ship this exact skill · first indexed Aug 26, 2026
npx claudepluginhub mercadopago/mercadopago-claude-marketplace --plugin mercadopagoOther plugins' skills for the same job