Skip to main content
KU

Kushki

v0.1.0API Key

PSP omnicanal en México, Colombia, Chile, Perú y Ecuador. Una API REST para tokenización de tarjetas y cobros en uno o dos pasos.

10 herramientas3 env vars🌎 LATAMestable en npm

Qué puede hacer tu agente

Kushki le da a tu agente 10 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • tokenize_cardExchange raw card data for a single-use token (POST /card/v1/tokens, public merchant id). The token feeds create_charge / create_preauthorization / create_subscription. Card data never touches your backend.
  • create_chargeOne-step card charge (POST /card/v1/charges, private merchant id). Pass the token from tokenize_card plus the amount object. Supports metadata, months (MX installments) and deferred (installment plans).
  • create_preauthorizationTwo-step charge, step 1: hold funds on the card (POST /card/v1/preAuthorization, private merchant id). Returns a ticketNumber to capture later.
Ejemplo de llamada
// 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("tokenize_card", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-kushki

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "kushki": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-kushki"
      ],
      "env": {
        "KUSHKI_PUBLIC_MERCHANT_ID": "<your_kushki_public_merchant_id>",
        "KUSHKI_PRIVATE_MERCHANT_ID": "<your_kushki_private_merchant_id>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 10 herramientas de abajo — probá tokenize_card primero.

Variables de entorno · 3

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

KUSHKI_PUBLIC_MERCHANT_ID
obligatoriosecret

Kushki public merchant id (card/transfer tokenization)

KUSHKI_PRIVATE_MERCHANT_ID
obligatoriosecret

Kushki private merchant id (charges, captures, voids, subscriptions)

KUSHKI_ENV
opcional

Environment: 'sandbox' (api-uat) or 'production'. Defaults to 'sandbox'.

Herramientas disponibles · 10

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEtokenize_card
Exchange raw card data for a single-use token (POST /card/v1/tokens, public merchant id). The token feeds create_charge / create_preauthorization / create_subscription. Card data never touches your backend.
WRITEcreate_charge
One-step card charge (POST /card/v1/charges, private merchant id). Pass the token from tokenize_card plus the amount object. Supports metadata, months (MX installments) and deferred (installment plans).
WRITEcreate_preauthorization
Two-step charge, step 1: hold funds on the card (POST /card/v1/preAuthorization, private merchant id). Returns a ticketNumber to capture later.
WRITEcapture_preauthorization
Two-step charge, step 2: capture a previous preauthorization (POST /card/v1/capture, private merchant id). Amount may be lower than the preauth (partial capture).
DELETEvoid_charge
Void / refund a card charge (DELETE /card/v1/charges/{ticketNumber}, private merchant id). Same-day = void; settled = refund. Optional partial amount where the acquirer supports it.
WRITEcreate_transfer_token
Token for a bank-transfer-in (POST /transfer/v1/tokens, public merchant id). PSE in Colombia, SPEI in Mexico, bank transfer in Chile/Peru. Feeds create_transfer_charge.
WRITEcreate_transfer_charge
Bank transfer-in charge with a transfer token (POST /transfer/v1/init, private merchant id). Returns the bank redirect URL the customer authorizes at.
WRITEcreate_cash_charge
Cash payment reference (POST /cash/v1/charges, private merchant id). Generates a voucher/reference the customer pays at a cash network (OXXO-style). Returns reference + expiry.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-kushki` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Kushki — MCP server · 10 tools | CodeSpar