Omnichannel PSP across Mexico, Colombia, Chile, Peru and Ecuador. One REST API for card tokenization and one-step or two-step charges.
Kushki gives your agent 10 tools it calls directly โ pick the ones it needs, in Claude, Cursor, or any MCP client.
tokenize_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.create_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).create_preauthorization โ Two-step charge, step 1: hold funds on the card (POST /card/v1/preAuthorization, private merchant id). Returns a ticketNumber to capture later.// 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", { /* ... */ });$ npm install @codespar/mcp-kushkiAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"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>"
}
}
}
}After restart, your agent can call any of the 10 tools below โ try tokenize_card first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
KUSHKI_PUBLIC_MERCHANT_IDKushki public merchant id (card/transfer tokenization)
KUSHKI_PRIVATE_MERCHANT_IDKushki private merchant id (charges, captures, voids, subscriptions)
KUSHKI_ENVEnvironment: 'sandbox' (api-uat) or 'production'. Defaults to 'sandbox'.
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
tokenize_cardcreate_chargecreate_preauthorizationcapture_preauthorizationvoid_chargecreate_transfer_tokencreate_transfer_chargecreate_cash_chargeMCP is a protocol โ any framework that speaks it can mount this server.