# mcp-kushki

An MCP server that lets an agent call the Kushki payments API: cards, PSE and SPEI transfers, cash and subscriptions. Useful when you build checkout flows for Latin America.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/kushki
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-kushki

## What it does

This server gives an agent access to the Kushki payments API, which covers Mexico, Colombia, Chile, Peru and Ecuador. It exposes 10 tools. `tokenize_card` swaps a card for a single-use token, `create_charge` bills in one step, and `create_preauthorization` plus `capture_preauthorization` handle hold-then-capture. `void_charge` covers voids and refunds.

Bank transfers run through `create_transfer_token` and `create_transfer_charge`, which returns a redirect URL. PSE is for Colombia, SPEI for Mexico. Cash payments get a voucher from `create_cash_charge`, and recurring card billing starts with `create_subscription` and stops with `cancel_subscription`.

You need two merchant ids. The public one only tokenizes. The private one moves money, so keep it server-side. `KUSHKI_ENV` defaults to `sandbox`, which means nothing real is charged until you set `production`. Amounts follow Kushki's tax shape: `subtotalIva`, `subtotalIva0`, `iva` and `currency`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `KUSHKI_PUBLIC_MERCHANT_ID`, `KUSHKI_PRIVATE_MERCHANT_ID`, `KUSHKI_ENV` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env KUSHKI_PUBLIC_MERCHANT_ID=<KUSHKI_PUBLIC_MERCHANT_ID> --env KUSHKI_PRIVATE_MERCHANT_ID=<KUSHKI_PRIVATE_MERCHANT_ID> --env KUSHKI_ENV=<KUSHKI_ENV> --transport stdio kushki -- npx -y @codespar/mcp-kushki
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add kushki --env KUSHKI_PUBLIC_MERCHANT_ID=<KUSHKI_PUBLIC_MERCHANT_ID> --env KUSHKI_PRIVATE_MERCHANT_ID=<KUSHKI_PRIVATE_MERCHANT_ID> --env KUSHKI_ENV=<KUSHKI_ENV> -- npx -y @codespar/mcp-kushki
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "kushki": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-kushki"
            ],
            "env": {
                "KUSHKI_PUBLIC_MERCHANT_ID": "<KUSHKI_PUBLIC_MERCHANT_ID>",
                "KUSHKI_PRIVATE_MERCHANT_ID": "<KUSHKI_PRIVATE_MERCHANT_ID>",
                "KUSHKI_ENV": "<KUSHKI_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "kushki": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-kushki"
            ],
            "env": {
                "KUSHKI_PUBLIC_MERCHANT_ID": "<KUSHKI_PUBLIC_MERCHANT_ID>",
                "KUSHKI_PRIVATE_MERCHANT_ID": "<KUSHKI_PRIVATE_MERCHANT_ID>",
                "KUSHKI_ENV": "<KUSHKI_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e KUSHKI_PUBLIC_MERCHANT_ID=<KUSHKI_PUBLIC_MERCHANT_ID> -e KUSHKI_PRIVATE_MERCHANT_ID=<KUSHKI_PRIVATE_MERCHANT_ID> -e KUSHKI_ENV=<KUSHKI_ENV> kushki npx -y @codespar/mcp-kushki
```
Replace <…> with your own values

## When to use it
- run a test card payment through Kushki
- hold funds on a card and capture part of them later
- start a PSE or SPEI bank transfer and get the redirect link
- issue a cash voucher for an OXXO-style network
- set up recurring card billing and cancel it on request

## Example prompts
- Use Kushki to tokenize this test card and charge it in COP with 19% IVA
- Create a Kushki preauthorization for this card, then capture part of it with `capture_preauthorization`
- Start a PSE transfer through Kushki and give me the redirect URL

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
