La adquirente de tarjetas dominante de Chile — raíces de origen estatal, efectivamente el default para el comercio chileno. Webpay Plus (pagos únicos) + Webpay OneClick Mall (recurrente con tarjeta guardada). Prerequisito para cualquier afirmación de cobertura LatAm que incluya Chile.
Transbank le da a tu agente 19 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
webpay_create_transaction — Create a Webpay Plus transaction. Returns { token, url } — redirect the user to url?token_ws=<token> to complete payment. After the user returns to return_url, call webpay_commit_transaction.webpay_commit_transaction — Commit a Webpay Plus transaction after the user has returned from the Webpay flow. Must be called to actually charge the card.webpay_get_transaction_status — Get the current status of a Webpay Plus transaction by token.// 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("webpay_create_transaction", { /* ... */ });$ npm install @codespar/mcp-transbank@alphaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"transbank": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-transbank@alpha"
],
"env": {
"TRANSBANK_COMMERCE_CODE": "<your_transbank_commerce_code>",
"TRANSBANK_API_KEY_SECRET": "<your_transbank_api_key_secret>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 19 herramientas de abajo — probá webpay_create_transaction primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
TRANSBANK_COMMERCE_CODETransbank merchant commerce code (sent as Tbk-Api-Key-Id header)
TRANSBANK_API_KEY_SECRETTransbank API secret key (sent as Tbk-Api-Key-Secret header)
TRANSBANK_ENVEnvironment: 'integration' (default, https://webpay3gint.transbank.cl) or 'production' (https://webpay3g.transbank.cl)
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
webpay_create_transactionwebpay_commit_transactionwebpay_get_transaction_statuswebpay_refund_transactionwebpay_increase_amountwebpay_capture_transactionwebpay_mall_create_transactionwebpay_mall_commit_transactionMCP es un protocolo — cualquier framework que lo hable puede montar este server.