Skip to main content
CU

Culqi

v0.2.1API Key

O análogo do Stripe no Peru — PSP padrão pra D2C e SaaS peruanos (CulqiOnline, CulqiLink, CulqiFull). Traz o Peru pro catálogo junto com BR/MX/AR/CO/CL.

20 ferramentas1 env vars🇵🇪 Peruestável no npm

O que seu agente faz

O Culqi dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • create_tokenTokenize 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_chargeCreate 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_chargeRetrieve a charge by Culqi id.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_token", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-culqi

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "culqi": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-culqi"
      ],
      "env": {
        "CULQI_SECRET_KEY": "<your_culqi_secret_key>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste create_token primeiro.

Variáveis de ambiente · 1

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

CULQI_SECRET_KEY
obrigatóriosecret

Culqi secret key. Use sk_test_... for sandbox, sk_live_... for production.

Ferramentas disponíveis · 20

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

WRITEcreate_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.
WRITEcreate_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).
WRITEget_charge
Retrieve a charge by Culqi id.
WRITElist_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.
WRITEcapture_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.
DELETErefund_charge
Refund a captured charge (POST /refunds). Partial refunds supported by setting amount below the charge total.
DELETEget_refund
Retrieve a refund by id (GET /refunds/{id}).
WRITEcreate_customer
Create a customer record (POST /customers). Use the returned customer_id with create_card to save reusable cards.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-culqi` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Culqi — MCP server · 20 tools | CodeSpar