Kushki

Finance and commerce

MCP server for Kushki, LATAM PSP: card charges, preauth, PSE/SPEI transfer, cash, subscriptions.

Your AI app calls the Kushki MCP server, which does the finance and commerce work and sends the result back to the chat.

About Kushki

Kushki is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Kushki, LATAM PSP: card charges, preauth, PSE/SPEI transfer, cash, subscriptions.

Kushki runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-kushki@0.1.0 and talks to it over standard input and output. It needs KUSHKI_PUBLIC_MERCHANT_ID and KUSHKI_PRIVATE_MERCHANT_ID set before Kushki starts.

Kushki is listed in the official MCP registry as io.github.codespar/mcp-kushki, version 0.1.0.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-kushki
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-kushki

How to set up Kushki

  1. Install Node.js on the machine that runs your AI app, because Kushki starts with npx and downloads its package on first run.
  2. Create KUSHKI_PUBLIC_MERCHANT_ID and KUSHKI_PRIVATE_MERCHANT_ID for Kushki in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Kushki to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Kushki tools to confirm the connection.
  5. Run one read-only task with Kushki first, and keep your app asking before each tool call until the results look right.

Kushki compared with similar servers

  • Legiti by codespar has fewer GitHub stars than Kushki (278 against 278); both are community servers, and both run locally.
  • Konduto by codespar has fewer GitHub stars than Kushki (278 against 278); both are community servers, and both run locally.
  • Matera by codespar has fewer GitHub stars than Kushki (278 against 278); both are community servers, and both run locally.

Before you connect Kushki

  • Give Kushki its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Kushki tool call until you trust what it does with them.
  • Treat text that Kushki fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Kushki on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Kushki

How marketing and sales teams put Kushki to work, by company size. Pick the size closest to yours and start Kushki on one use case.

Small business

  • A small business can ask Kushki which products and customers drive margin, then plan promotions around them.
  • Owners can use Kushki to check refunds, failed payments and churn reasons without opening three dashboards.
  • Kushki runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Kushki to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Kushki to check spend against budget each week and move money to what's working.
  • Start Kushki on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Kushki read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Kushki to answer revenue questions by channel and region with figures finance signs off on.
  • Kushki is a community server, so have security review the code and pin a version before Kushki touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Kushki README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-kushki

MCP server for Kushki, the omnichannel PSP spanning Mexico, Colombia, Chile, Peru and Ecuador: card tokenization + one-step/two-step charges, bank transfer-in (PSE / SPEI), cash networks and subscriptions, all on one REST API.

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "kushki": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-kushki"],
      "env": {
        "KUSHKI_PUBLIC_MERCHANT_ID": "your-public-merchant-id",
        "KUSHKI_PRIVATE_MERCHANT_ID": "your-private-merchant-id",
        "KUSHKI_ENV": "sandbox"
      }
    }
  }
}
Claude Code
claude mcp add kushki --env KUSHKI_PUBLIC_MERCHANT_ID=... --env KUSHKI_PRIVATE_MERCHANT_ID=... -- npx -y @codespar/mcp-kushki
Cursor / VS Code

Add the same block to .cursor/mcp.json or .vscode/mcp.json.

Tools (10)

Tool Endpoint What it does
tokenize_card POST /card/v1/tokens Raw card → single-use token (public id)
create_charge POST /card/v1/charges One-step card charge
create_preauthorization POST /card/v1/preAuthorization Hold funds (two-step, step 1)
capture_preauthorization POST /card/v1/capture Capture a preauth (step 2, partial OK)
void_charge DELETE /card/v1/charges/{ticket} Void (same-day) or refund (settled)
create_transfer_token POST /transfer/v1/tokens Token for PSE (CO) / SPEI (MX) transfer-in
create_transfer_charge POST /transfer/v1/init Start the bank transfer; returns redirect URL
create_cash_charge POST /cash/v1/charges Cash voucher for OXXO-style networks
create_subscription POST /card/v1/subscriptions Recurring card charge on a periodicity
cancel_subscription DELETE /card/v1/subscriptions/{id} Stop future charges

Authentication

Two merchant ids with distinct powers:

Variable Required Description
KUSHKI_PUBLIC_MERCHANT_ID yes Tokenization only, safe for client-side use
KUSHKI_PRIVATE_MERCHANT_ID yes Money movement, server-side only
KUSHKI_ENV no sandbox (api-uat, default) or production

Amounts use Kushki's per-country tax shape: { subtotalIva, subtotalIva0, iva, currency }, currencies MXN, COP, CLP, PEN, USD.

Example

"Tokenize this test card and charge COP 85,000 with 19% IVA."

The agent calls tokenize_card, then create_charge with { subtotalIva: 85000, subtotalIva0: 0, iva: 16150, currency: "COP" }.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Managed tier

This open-source server calls Kushki's API directly with your credentials. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, governance, audit and a credential vault: codespar.dev/agents.

License

MIT

Questions about Kushki

What is the Kushki MCP server?

MCP server for Kushki, LATAM PSP: card charges, preauth, PSE/SPEI transfer, cash, subscriptions. Kushki is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Kushki MCP server?

Add Kushki to your AI app's MCP config with the command npx -y @codespar/mcp-kushki@0.1.0. In Claude Code, run claude mcp add --transport stdio codespar-kushki -- npx -y @codespar/mcp-kushki@0.1.0. To run Kushki this way you need Node.js installed.

Does Kushki need an API key?

Yes. Kushki expects KUSHKI_PUBLIC_MERCHANT_ID and KUSHKI_PRIVATE_MERCHANT_ID to be set. Create the key for Kushki in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Kushki an official MCP server?

No. Kushki is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Kushki access to company data.

What license is Kushki under?

Kushki is released under the MIT license, according to its GitHub repository. The license covers the code of Kushki; the service it connects to has its own terms.