Culqi

Finance and commerce

MCP server for Culqi, Peru PSP: charges, refunds, cards, Yape/PagoEfectivo, subscriptions.

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

About Culqi

Culqi is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Culqi, Peru PSP: charges, refunds, cards, Yape/PagoEfectivo, subscriptions.

Culqi runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-culqi@0.2.2 and talks to it over standard input and output. It needs CULQI_SECRET_KEY set before Culqi starts.

Culqi is listed in the official MCP registry as io.github.codespar/mcp-culqi, version 0.2.2.

At a glance

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

How to set up Culqi

  1. Install Node.js on the machine that runs your AI app, because Culqi starts with npx and downloads its package on first run.
  2. Create CULQI_SECRET_KEY for Culqi in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Culqi 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 Culqi tools to confirm the connection.
  5. Run one read-only task with Culqi first, and keep your app asking before each tool call until the results look right.

Culqi compared with similar servers

  • Dlocal by codespar has fewer GitHub stars than Culqi (278 against 278); both are community servers, and both run locally.
  • Coordinadora by codespar has fewer GitHub stars than Culqi (278 against 278); both are community servers, and both run locally.
  • Dock by codespar has fewer GitHub stars than Culqi (278 against 278); both are community servers, and both run locally.

Before you connect Culqi

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

Marketing use cases for Culqi

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

Small business

  • A small business can ask Culqi which products and customers drive margin, then plan promotions around them.
  • Owners can use Culqi to check refunds, failed payments and churn reasons without opening three dashboards.
  • Culqi 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 Culqi to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Culqi to check spend against budget each week and move money to what's working.
  • Start Culqi on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

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

Culqi 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-culqi

MCP server for Culqi, Peru's default PSP.

Culqi is the Stripe of Peru: the standard rail for Peruvian D2C brands and SaaS. It ships CulqiOnline (hosted checkout), CulqiLink (payment links), and CulqiFull (subscriptions). Adding Culqi brings Peru into the CodeSpar catalog alongside Mexico, Brazil, Colombia, Argentina, and Chile.

Tools (20)

Tool Purpose
create_token Tokenize a card (POST /tokens).
create_charge Create a charge (POST /charges).
get_charge Retrieve a charge by Culqi id.
list_charges List charges (GET /charges) with optional filters.
capture_charge Capture a previously-authorized charge (POST /charges/{id}/capture).
refund_charge Refund a captured charge (POST /refunds).
get_refund Retrieve a refund by id (GET /refunds/{id}).
create_customer Create a customer record (POST /customers).
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,...
create_card Attach a tokenized card to a customer for reuse (POST /cards).
delete_card Detach a saved card from its customer (DELETE /cards/{id}).
create_order Create an order (POST /orders) for non-card payment methods, Yape, PagoEfectivo (Cash), bank transfer.
confirm_order Confirm an unpaid order (POST /orders/{id}/confirm).
list_orders List orders (GET /orders) with optional filters passed as query params: order_number, state (created, paid,...
create_plan Create a subscription plan (POST /plans).
create_subscription Subscribe a customer's saved card to a plan (POST /subscriptions).
cancel_subscription Cancel an active subscription (DELETE /subscriptions/{id}).
list_events List webhook events (GET /events) with optional filters.
get_event Retrieve a single webhook event by id (GET /events/{id}).

Install

npm install @codespar/mcp-culqi

Environment

CULQI_SECRET_KEY="sk_test_..."   # or sk_live_... for production

Culqi has no separate sandbox URL, the key prefix (sk_test_ vs sk_live_) selects the environment.

Authentication

Bearer token on every request:

Authorization: Bearer <CULQI_SECRET_KEY>
Content-Type: application/json

Base URL: https://api.culqi.com/v2.

Run

# stdio (default, for Claude Desktop, Cursor, etc)
npx @codespar/mcp-culqi

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-culqi

Notes

  • Amounts are in cents of the currency (e.g. 1000 = S/ 10.00 PEN).
  • Currencies supported: PEN, USD.
  • Tokenization of raw card data is typically done client-side (culqi.js / mobile SDKs). The create_token tool is primarily for test scripts, never send real PANs from a backend without PCI scope.
  • Subscriptions require tyc: true (terms & conditions acceptance) on creation.

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.

License

MIT

Questions about Culqi

What is the Culqi MCP server?

MCP server for Culqi, Peru PSP: charges, refunds, cards, Yape/PagoEfectivo, subscriptions. Culqi 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 Culqi MCP server?

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

Does Culqi need an API key?

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

Is Culqi an official MCP server?

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

What license is Culqi under?

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