Skip to main content
C

Culqi

@codespar/mcp-culqi Β· v0.2.2

πŸ‡΅πŸ‡ͺ PeruPaymentsAuth Β· API Keybeta20 tools1 env vars

Peru's Stripe-analog β€” default PSP for Peruvian D2C and SaaS (CulqiOnline, CulqiLink, CulqiFull). Brings Peru into the catalog alongside BR/MX/AR/CO/CL.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • Hosted calls with a test key are not available: the runtime has not recorded this provider's test behaviour (test venue unclassified).
Package
@codespar/mcp-culqi
Version
0.2.2
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
πŸ‡΅πŸ‡ͺ Peru
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables1 variable read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 20 tools. Try create_token first.
terminal
# Claude Code claude mcp add culqi -e CULQI_SECRET_KEY=… -- npx -y @codespar/mcp-culqi@0.2.2 # then: /mcp to confirm the server is connected
Environment variables1 variable
CULQI_SECRET_KEYCulqi secret key. Use sk_test_... for sandbox, sk_live_... for production.requiredsecret

Names read from the package code (@codespar/mcp-culqi@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_token

"Tokenize a card"

tools/callcreate_tokenresult returned

Tools

What your agent can call.

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

create_token

Tokenize a card (POST /tokens). Returns a token id like tkn_xxx. Tokenization is typically done client-side via culqi.js or mobile SDKs; this tool is primarily for test scripts and integration tests. Never send real PANs from a backend without PCI scope.

create_charge

Create a charge (POST /charges). Amount is in cents of the currency (e.g. 1000 = S/ 10.00 PEN). source_id accepts a token id (tkn_xxx) or a stored card id (crd_xxx).

get_charge

Retrieve a charge by Culqi id.

list_charges

List charges (GET /charges) with optional filters. Filters are passed as query params: amount, min_amount, max_amount, installments, currency_code, code (auth code), decline_code, fraud_score, first_name, last_name, email, country_code, creation_date_from (ms), creation_date_to (ms), limit, before, after.

capture_charge

Capture a previously-authorized charge (POST /charges/{id}/capture). Use after creating a charge with capture=false. Must be called within 10 days of authorization.

refund_charge

Refund a captured charge (POST /refunds). Partial refunds supported by setting amount below the charge total.

get_refund

Retrieve a refund by id (GET /refunds/{id}).

create_customer

Create a customer record (POST /customers). Use the returned customer_id with create_card to save reusable cards.

get_customer

Retrieve a customer by Culqi id (GET /customers/{id}).

list_customers

List customers (GET /customers) with optional filters passed as query params: first_name, last_name, email, country_code, creation_date_from (ms), creation_date_to (ms), limit, before, after.

create_card

Attach a tokenized card to a customer for reuse (POST /cards). Returns a card id (crd_xxx) usable as source_id on future charges.

delete_card

Detach a saved card from its customer (DELETE /cards/{id}). The card id becomes unusable as source_id afterwards.

Names and descriptions come from the package's tools/list (@codespar/mcp-culqi@0.2.2). 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.

codespar_discover lists this server's tools, but a project with a test key cannot call them yet: the runtime has not recorded what this provider does in test mode, and refuses rather than guess.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Culqi MCP server?

Run npx -y @codespar/mcp-culqi@0.2.2 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.

What can my agent do with Culqi?

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

How does Culqi authenticate, and how are credentials stored?

Culqi uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Culqi handle upstream API changes?

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

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

Yes. Culqi is MIT-licensed and published on npm as @codespar/mcp-culqi, 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.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Culqi β€” MCP server Β· 20 tools | CodeSpar