Skip to main content
IZ

Izipay

v0.2.0-alpha.2API Keyalpha

Peru enterprise acquirer (Niubiz-backed — Visa + local banks). Complements Culqi (Peru SMB) for serious-volume Peruvian merchants. Alpha on npm — all endpoint paths best-guess since developers.izipay.pe is contract-gated.

20 tools5 env vars🇵🇪 Perualpha — pending validation

What your agent can do

Izipay gives your agent 20 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_chargeAuthorize a card payment. Supports 3-D Secure (3DS) challenge flow when required by issuer/brand. Set capture=true for authorize+capture atomically; capture=false to authorize only and capture later via capture_charge.
  • capture_chargeCapture a previously authorized charge (when capture=false was used in create_charge).
  • cancel_chargeVoid an authorized-but-uncaptured charge. Does not work on captured charges — use refund_charge for those.
Example call
// 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_charge", { /* ... */ });

Install

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

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "izipay": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-izipay@alpha"
      ],
      "env": {
        "IZIPAY_USERNAME": "<your_izipay_username>",
        "IZIPAY_PASSWORD": "<your_izipay_password>",
        "IZIPAY_MERCHANT_CODE": "<your_izipay_merchant_code>"
      }
    }
  }
}

After restart, your agent can call any of the 20 tools below — try create_charge first.

Environment variables · 5

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

IZIPAY_USERNAME
required

Izipay merchant username issued with your acquirer contract

IZIPAY_PASSWORD
requiredsecret

Izipay merchant password used to obtain JWT

IZIPAY_MERCHANT_CODE
required

Izipay merchant code (codigoComercio)

IZIPAY_ENV
optional

Environment: sandbox or production. Defaults to production.

IZIPAY_BASE_URL
optional

Izipay API base URL. Defaults per IZIPAY_ENV. Override if your contract issues a custom host.

Available tools · 20

Each tool is independent — your agent loads only what it needs to reduce context and response time.

WRITEcreate_charge
Authorize a card payment. Supports 3-D Secure (3DS) challenge flow when required by issuer/brand. Set capture=true for authorize+capture atomically; capture=false to authorize only and capture later via capture_charge.
WRITEcapture_charge
Capture a previously authorized charge (when capture=false was used in create_charge).
DELETEcancel_charge
Void an authorized-but-uncaptured charge. Does not work on captured charges — use refund_charge for those.
DELETErefund_charge
Refund a captured charge. Pass amount for a partial refund; omit for a full refund.
WRITEget_charge
Retrieve a charge by Izipay charge id.
WRITEtokenize_card
Tokenize a card for PCI-safe reuse. Returns a token_id to pass into create_charge.card.token_id.
DELETEdelete_token
Delete a stored card token.
WRITEcreate_installment_plan
Create a Peruvian cuotas (installment) plan on a charge. Enables splitting a card payment into N monthly installments, with or without interest, per the issuer's cuota program.

Compatible frameworks

MCP is a protocol — any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-izipay` and add the config block above to your MCP client — Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Izipay — MCP server · 20 tools | CodeSpar