Gateway mexicano de BBVA — la alternativa MX a Conekta. Tarjetas, OXXO, SPEI, suscripciones (nativas), payouts de marketplace. Cierra la historia de los rieles BBVA para México.
Openpay le da a tu agente 23 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_charge — Create a charge. Pass customer_id to charge at a customer scope (POST /customers/{customer_id}/charges); omit to charge at merchant scope (POST /charges). Methods: 'card' (requires source_id token), 'bank_account' (SPEI — returns CLABE reference), 'store' (OXXO — returns barcode/reference). Amounts are in major units (e.g. 100 = 100 MXN).get_charge — Retrieve a charge. Pass customer_id to fetch at customer scope (GET /customers/{customer_id}/charges/{id}); omit for merchant scope (GET /charges/{id}).capture_charge — Capture a previously authorized charge (when the original charge used capture=false). Pass amount to capture less than the authorized total; omit to capture the full authorized amount.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_charge", { /* ... */ });$ npm install @codespar/mcp-openpayAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"openpay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-openpay"
],
"env": {
"OPENPAY_MERCHANT_ID": "<your_openpay_merchant_id>",
"OPENPAY_PRIVATE_KEY": "<your_openpay_private_key>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 23 herramientas de abajo — probá create_charge primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
OPENPAY_MERCHANT_IDOpenpay merchant id (forms part of the API URL path)
OPENPAY_PRIVATE_KEYOpenpay private API key (used as HTTP Basic auth username with empty password)
OPENPAY_ENVEnvironment: 'sandbox' (default) or 'production'. Selects between https://sandbox-api.openpay.mx and https://api.openpay.mx.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_chargeget_chargecapture_chargerefund_chargecreate_customerget_customerlist_customerscreate_cardMCP es un protocolo — cualquier framework que lo hable puede montar este server.