Skip to main content
K

Khipu

@codespar/mcp-khipu Β· v0.2.0-alpha.3

πŸ‡¨πŸ‡± ChilePaymentsAuth Β· API Keybeta21 tools4 env varsprerelease

Chilean instant bank-transfer PSP. Complements Transbank for merchants who want bank-transfer payments alongside cards β€” Chilean consumers often prefer bank transfers for larger transactions (no credit limit, no card fees).

Get started Β· freeView docs

MIT Β· runs locally or through the CodeSpar runtime

Limitations

  • v0.2.0-alpha.3 is a prerelease, with 21 tools, and the command on this page installs it. The latest stable release is 0.1.0, with 8 tools.
Package
@codespar/mcp-khipu
Version
0.2.0-alpha.3 Β· prerelease
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
πŸ‡¨πŸ‡± Chile
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, or through the hosted runtime.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables4 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 21 tools. Try create_payment first.
terminal
# Claude Code claude mcp add khipu -e KHIPU_API_KEY=… -e KHIPU_BASE_URL=… -e KHIPU_RECEIVER_ID=… -e KHIPU_SECRET=… -- npx -y @codespar/mcp-khipu@0.2.0-alpha.3 # then: /mcp to confirm the server is connected
Environment variables4 variables
KHIPU_API_KEYKhipu v3 API key (sent as x-api-key header). Obtain from Khipu merchant panel β†’ Developers.optionalsecret
KHIPU_BASE_URLKhipu API base URL. Defaults to https://payment-api.khipu.com/v3.optional
KHIPU_RECEIVER_IDKhipu receiver id (merchant id). Required only for legacy v2 HTTP Basic auth; not needed when KHIPU_API_KEY is set.optional
KHIPU_SECRETKhipu receiver secret. Required only for legacy v2 HTTP Basic auth; not needed when KHIPU_API_KEY is set.optionalsecret

Names read from the package code (@codespar/mcp-khipu@0.2.0-alpha.3). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials. On the CodeSpar runtime the credential you connect is stored encrypted (AES-256-GCM, key derived per organization), and the runtime adds it to the provider call itself; the agent never receives it.

First call democreate_payment

"Create a Khipu payment"

tools/callcreate_paymentresult returned

Tools

What your agent can call.

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

create_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.

get_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).

delete_payment

Delete (cancel) a pending Khipu payment. Only works while the payment has not been paid by the payer.

confirm_payment

Manually confirm a Khipu payment. Use when the merchant has opted into manual confirmation and the backend has validated the underlying transfer.

refund_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).

list_payments

List Khipu payments for the current merchant, optionally filtered by date range and status. Useful for reconciliation jobs and agent-driven reporting.

predict_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.

get_merchants

List the merchant receiver accounts accessible with the current API key. Useful to confirm auth + discover receiver_id values.

get_merchant

Fetch a single merchant by id. Returns commercial info, configured collect accounts, and current integration status.

list_merchant_accounts

List the bank accounts registered for a merchant to collect into. Use with refund_payment / conciliation flows to know which account funds settle to.

create_receiver

Create (onboard) a new receiver under an integrator account. The receiver can then collect Khipu payments. Only available to integrator-level API keys.

list_receivers

List receivers onboarded under the current integrator account.

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

Through the CodeSpar runtime, codespar_discover finds this server's tools, and a tools/call runs with the credential connected in your project, a test key included.

hostedhttps://connect.codespar.dev/mcp15 meta-tools

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Khipu MCP server?

Run npx -y @codespar/mcp-khipu@0.2.0-alpha.3 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. Prefer hosted? Add the CodeSpar endpoint with a test key and connect Khipu in your project; codespar_discover finds its tools.

What can my agent do with Khipu?

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

How does Khipu authenticate, and how are credentials stored?

Khipu uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables. On the CodeSpar runtime the credential you connect is stored encrypted for your organization, and the runtime adds it to each provider call, so the agent never handles it.

How does Khipu handle upstream API changes?

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

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

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

On the CodeSpar runtime, the credential you connect stays encrypted for your organization and the runtime adds it to each call. You just call the tool.

Start in seconds demo
Create an account and copy a test key.
Add the hosted endpoint to your client with the config above.
Connect Khipu in your project and ask your agent for the first call.
Khipu β€” MCP server Β· 21 tools | CodeSpar