Skip to main content
K

Kushki

@codespar/mcp-kushki Β· v0.1.0

🌎 Latin AmericaPaymentsAuth · API Keybeta10 tools3 env vars

Omnichannel PSP across Mexico, Colombia, Chile, Peru and Ecuador. One REST API for card tokenization and one-step or two-step charges.

Get started Β· freeView docs

MIT Β· runs locally or through the CodeSpar runtime

Limitations

  • The npm package ships no server.json manifest.
Package
@codespar/mcp-kushki
Version
0.1.0
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
🌎 Latin America
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, or through the hosted runtime.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables3 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 10 tools. Try tokenize_card first.
terminal
# Claude Code claude mcp add kushki -e KUSHKI_ENV=… -e KUSHKI_PRIVATE_MERCHANT_ID=… -e KUSHKI_PUBLIC_MERCHANT_ID=… -- npx -y @codespar/mcp-kushki@0.1.0 # then: /mcp to confirm the server is connected
Environment variables3 variables
KUSHKI_ENVEnvironment: 'sandbox' (api-uat) or 'production'. Defaults to 'sandbox'.optional
KUSHKI_PRIVATE_MERCHANT_IDKushki private merchant id (charges, captures, voids, subscriptions)requiredsecret
KUSHKI_PUBLIC_MERCHANT_IDKushki public merchant id (card/transfer tokenization)requiredsecret

Names read from the package code (@codespar/mcp-kushki@0.1.0). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials. On the CodeSpar runtime the credential you connect is stored encrypted (AES-256-GCM, key derived per organization), and the runtime adds it to the provider call itself; the agent never receives it.

First call demotokenize_card

"Exchange raw card data for a single-use token"

tools/calltokenize_cardresult returned

Tools

What your agent can call.

10 tools, as the package's tools/list returns them.

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.

capture_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).

void_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.

create_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.

create_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.

create_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.

create_subscription

Recurring card subscription (POST /card/v1/subscriptions, private merchant id). Kushki charges the tokenized card on the given periodicity until cancelled.

cancel_subscription

Cancel a subscription (DELETE /card/v1/subscriptions/{subscriptionId}, private merchant id). Stops all future charges.

Names and descriptions come from the package's tools/list (@codespar/mcp-kushki@0.1.0). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

Through the CodeSpar runtime, codespar_discover finds this server's tools, and a tools/call runs with the credential connected in your project, a test key included.

hostedhttps://connect.codespar.dev/mcp15 meta-tools

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Kushki MCP server?

Run npx -y @codespar/mcp-kushki@0.1.0 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? Add the CodeSpar endpoint with a test key and connect Kushki in your project; codespar_discover finds its tools.

What can my agent do with Kushki?

Kushki exposes 10 tools for payments. Your agent calls them directly; the full list is above.

How does Kushki authenticate, and how are credentials stored?

Kushki uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables. On the CodeSpar runtime the credential you connect is stored encrypted for your organization, and the runtime adds it to each provider call, so the agent never handles it.

How does Kushki handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.1.0, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Kushki open source? How do I report a bug?

Yes. Kushki is MIT-licensed and published on npm as @codespar/mcp-kushki, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

On the CodeSpar runtime, the credential you connect stays encrypted for your organization and the runtime adds it to each call. You just call the tool.

Start in seconds demo
Create an account and copy a test key.
Add the hosted endpoint to your client with the config above.
Connect Kushki in your project and ask your agent for the first call.
Kushki β€” MCP server Β· 10 tools | CodeSpar