Skip to main content
MCP server CX Codex

mcp-culqi — Claude Code MCP server: what it does, how to install

An MCP server for Culqi, Peru's payment provider: charges, refunds, saved cards, Yape and PagoEfectivo orders, subscription plans.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-culqi -e CULQI_SECRET_KEY=<CULQI_SECRET_KEY> -- npx -y @codespar/mcp-culqi
Open on GitHub

What mcp-culqi does

The server wraps Culqi API v2 in 20 tools. Card work follows the usual sequence: tokenize, charge, capture if the charge was only authorized, then refund when needed. Customers and their saved cards get their own tools so a card can be reused later.

Payment methods that skip cards run through orders. create_order handles Yape, PagoEfectivo and bank transfers, and confirm_order closes an unpaid one. Plans and subscriptions have their own tools, with one catch: subscription creation needs tyc: true, the customer's acceptance of terms, otherwise it fails. Amounts arrive in the currency's minor units, and PEN and USD are accepted.

Set CULQI_SECRET_KEY before starting the server. Culqi has no separate sandbox host; the prefix decides which environment you hit, sk_test_ or sk_live_. Card tokenization is exposed as create_token, but it is meant for test scripts. Sending real card numbers from your backend without PCI scope is not something to do, and the README says so.

What it helps with

  • charge a card and check whether it went through
  • refund a charge that was captured earlier
  • save a card to a customer for repeat payments
  • open an order paid by Yape or PagoEfectivo
  • create a plan and attach a subscriber to it

Example prompts for the agent

  • Charge this tokenized card 2500 PEN and capture it
  • Find the charge with list_charges and refund it
  • Create a customer, then attach the new token as a card

How to install mcp-culqi

Platform CLI

claude mcp add mcp-culqi -e CULQI_SECRET_KEY=<CULQI_SECRET_KEY> -- npx -y @codespar/mcp-culqi

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-culqi

How do I install mcp-culqi in Claude Code?

Run claude mcp add mcp-culqi -e CULQI_SECRET_KEY=<CULQI_SECRET_KEY> -- npx -y @codespar/mcp-culqi. Alternatively use the stdio transport: claude mcp add --env CULQI_SECRET_KEY=<CULQI_SECRET_KEY> --transport stdio culqi -- npx -y @codespar/mcp-culqi.

What does mcp-culqi do?

It exposes Culqi's payment API as agent tools: tokens, charges, refunds, customers, cards, orders, plans, subscriptions and webhook events.

How do I switch from test to live payments?

The key prefix sets the mode, since Culqi shares one host. Use sk_test_ in CULQI_SECRET_KEY for test traffic and sk_live_ for production.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set40

mcp-inter-bank Wires Banco Inter into an AI coding agent: issue boletos, take PIX payments, read balance and statements. Handy when money tasks run from chat. CX Codex +1 ★ 274repo stars mcp-foxbit Wires the Foxbit exchange into your coding agent: markets, order book, orders, balances, Pix payouts. Useful if you trade there or build against its API. CX Codex +1 ★ 274repo stars mcp-evolution-api Gives your agent 25 WhatsApp tools backed by your own Evolution API instance: messages, groups, contacts, connection state. CX Codex +1 ★ 274repo stars mcp-ebanx Hands your agent 18 EBANX tools: take a payment, refund it, send a payout, read an exchange rate. Useful when the product charges customers in Latin America. CX Codex +1 ★ 274repo stars mcp-conta-azul An MCP server that connects an AI agent to Conta Azul: customers, products, services, sales, receivables and a financial summary. CX Codex +1 ★ 274repo stars mcp-coinbase-commerce Gives an agent 18 Coinbase Commerce tools: bill a buyer in local fiat, take crypto at checkout, check a webhook signature. CX Codex +1 ★ 274repo stars mcp-clip An MCP server for taking payments through Clip (PayClip) in Mexico. Agents get hosted payment links, card-token charges, refunds and payment lookups, priced in MXN. CX Codex +1 ★ 274repo stars mcp-cielo Wires Cielo payments into your coding agent: card sales, boleto, Pix, recurring charges and payment links, as 22 callable tools. Handy when billing logic lives in the repo you are editing. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor