Skip to main content
KH

Khipu

v0.2.0-alpha.2API Keyalpha

PSP chileno de transferência bancária instantânea. Complementa a Transbank pra merchants que querem pagamentos por transferência bancária além de cartões — consumidores chilenos costumam preferir transferências bancárias pra transações maiores (sem limite de crédito, sem taxas de cartão).

21 ferramentas4 env vars🇨🇱 Chilealpha — validação pendente

O que seu agente faz

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

  • create_paymentCreate a Khipu payment (bank-transfer charge). Returns a payment_id and URLs the payer visits to authorize the transfer from their Chilean bank account. Use simplified_transfer_url for in-app redirects and transfer_url for desktop bank-login flows.
  • get_paymentRetrieve a Khipu payment. Pass either payment_id (lookup by id) or notification_token (lookup from a webhook — preferred, since webhooks only contain the token).
  • delete_paymentDelete (cancel) a pending Khipu payment. Only works while the payment has not been paid by the payer.
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_payment", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-khipu@alpha

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": {
    "khipu": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-khipu@alpha"
      ],
      "env": {}
    }
  }
}

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

Variáveis de ambiente · 4

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

KHIPU_API_KEY
opcionalsecret

Khipu v3 API key (sent as x-api-key header). Obtain from Khipu merchant panel → Developers.

KHIPU_RECEIVER_ID
opcional

Khipu receiver id (merchant id). Required only for legacy v2 HTTP Basic auth; not needed when KHIPU_API_KEY is set.

KHIPU_SECRET
opcionalsecret

Khipu receiver secret. Required only for legacy v2 HTTP Basic auth; not needed when KHIPU_API_KEY is set.

KHIPU_BASE_URL
opcional

Khipu API base URL. Defaults to https://payment-api.khipu.com/v3.

Ferramentas disponíveis · 21

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

WRITEcreate_payment
Create a Khipu payment (bank-transfer charge). Returns a payment_id and URLs the payer visits to authorize the transfer from their Chilean bank account. Use simplified_transfer_url for in-app redirects and transfer_url for desktop bank-login flows.
WRITEget_payment
Retrieve a Khipu payment. Pass either payment_id (lookup by id) or notification_token (lookup from a webhook — preferred, since webhooks only contain the token).
DELETEdelete_payment
Delete (cancel) a pending Khipu payment. Only works while the payment has not been paid by the payer.
WRITEconfirm_payment
Manually confirm a Khipu payment. Use when the merchant has opted into manual confirmation and the backend has validated the underlying transfer.
DELETErefund_payment
Refund a paid Khipu payment (full or partial). Refunds are only possible for merchants collecting into a Khipu account and before settlement of the corresponding funds (until 01:00 am the next business day).
WRITElist_payments
List Khipu payments for the current merchant, optionally filtered by date range and status. Useful for reconciliation jobs and agent-driven reporting.
WRITEpredict_payment
Predict whether a payment is likely to succeed for a given payer+amount+bank, and recommend the best bank/rail. Call before create_payment to improve conversion for large or edge-case transfers.
READget_merchants
List the merchant receiver accounts accessible with the current API key. Useful to confirm auth + discover receiver_id values.

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-khipu` 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.
Khipu — MCP server · 21 tools | CodeSpar