io.github.codespar/mcp-izipay
io.github.codespar/mcp-izipay · 273 stars · TypeScript · MIT
MCP server MCP server for Izipay — Peru enterprise acquirer (Niubiz): authorize/capture/refund, cuotas
Install
The repo has no one-line install. Follow its README.
Published as
- npm
@codespar/mcp-izipaystdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
IZIPAY_USERNAMERequired | Env var | Izipay merchant username issued with your acquirer contract |
IZIPAY_PASSWORDRequired · Secret | Env var | Izipay merchant password used to obtain JWT |
IZIPAY_MERCHANT_CODERequired | Env var | Izipay merchant code (codigoComercio) |
IZIPAY_ENVOptional | Env var | Environment: sandbox or production. Defaults to production. |
IZIPAY_BASE_URLOptional | Env var | Izipay API base URL. Defaults per IZIPAY_ENV. Override if your contract issues a custom host. |
Files
@codespar/mcp-izipay
MCP server for Izipay — Peru's enterprise acquirer.
Izipay is the merchant-facing brand of Niubiz (Visa + Peruvian banks joint venture), the largest card acquirer in Peru with 20%+ share. Niubiz/Izipay is the default for enterprise merchants with serious volume and a direct acquirer contract.
Positioning vs Culqi
| @codespar/mcp-culqi | @codespar/mcp-izipay | |
|---|---|---|
| Segment | Peru SMB | Peru enterprise |
| Type | PSP (Stripe-analog) | Acquirer (Niubiz) |
| Onboarding | Self-serve | Commercial contract |
| Customers | D2C, SaaS, startups | Retail chains, airlines, utilities, banks |
Peruvian merchants with serious volume typically have an Izipay acquirer contract before they adopt a PSP — different customers, different contracts, different commercial terms. The two servers complement each other.
Status: alpha
This is 0.1.0-alpha.1. Izipay's developer portal at developers.izipay.pe is contract-gated — the public homepage advertises the API but the full REST reference is only available to contracted merchants. The endpoint paths in this server are best-effort inferences from Izipay's public SDK repositories (github.com/izipay-pe) and common Niubiz/Izipay REST conventions. Every endpoint below should be validated against your integration kit before going live, and corrections are welcome via PR.
Best-guess endpoints (unverified)
| Tool | Method | Path |
|---|---|---|
| auth (internal) | POST |
/auth/login |
create_charge |
POST |
/v1/charges |
capture_charge |
POST |
/v1/charges/{id}/capture |
cancel_charge |
POST |
/v1/charges/{id}/cancel |
refund_charge |
POST |
/v1/charges/{id}/refund |
get_charge |
GET |
/v1/charges/{id} |
tokenize_card |
POST |
/v1/tokens |
delete_token |
DELETE |
/v1/tokens/{id} |
create_installment_plan |
POST |
/v1/installments |
list_transactions |
GET |
/v1/transactions |
get_settlement |
GET |
/v1/settlements/{date} |
Tools (20)
| Tool | Purpose |
|---|---|
create_charge |
Authorize a card payment. |
capture_charge |
Capture a previously authorized charge (when capture=false was used in create_charge). |
cancel_charge |
Void an authorized-but-uncaptured charge. |
refund_charge |
Refund a captured charge. |
get_charge |
Retrieve a charge by Izipay charge id. |
tokenize_card |
Tokenize a card for PCI-safe reuse. |
delete_token |
Delete a stored card token. |
create_installment_plan |
Create a Peruvian cuotas (installment) plan on a charge. |
list_transactions |
List transactions for reconciliation. |
get_settlement |
Get the daily settlement batch (liquidación) for a given date. |
get_charge_by_order |
Retrieve a charge by the merchant-side orderNumber (order_id passed to create_charge). |
list_installment_options |
Query available cuota programs for a given card BIN and amount. |
list_settlements |
List settlement batches across a date range. |
create_payment_link |
Create a hosted payment link (pay-by-link). |
get_payment_link |
Retrieve a payment link by id. |
pay_yape |
Initiate a Yape direct payment. |
pay_plin |
Initiate a Plin direct payment. |
authenticate_3ds |
Complete a 3-D Secure challenge. |
create_subscription |
Start a recurring card charge (subscription). |
cancel_subscription |
Cancel an active subscription. |
Install
npm install @codespar/mcp-izipay@alpha
Environment
IZIPAY_USERNAME="..." # merchant username IZIPAY_PASSWORD="..." # merchant password (secret) IZIPAY_MERCHANT_CODE="..." # codigoComercio IZIPAY_ENV="production" # or "sandbox" IZIPAY_BASE_URL="..." # Optional override
Defaults:
IZIPAY_ENV=production→https://api.izipay.peIZIPAY_ENV=sandbox→https://sandbox-api.izipay.pe
Authentication
JWT Bearer. On the first API call the server POSTs { username, password, merchantCode } to /auth/login, caches the returned JWT in memory, and attaches it as Authorization: Bearer <jwt> on every subsequent request. The cached JWT is refreshed 60s before expiry. Transparent to callers.
Run
# stdio (default) npx @codespar/mcp-izipay # HTTP MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-izipay
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
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 273
- License
- MIT
- Language
- TypeScript
- Last push
- 2026-09-27
- Forks
- 50
- MCP Registry
- io.github.codespar/mcp-izipay
- Homepage
- codespar.dev/servers
- Topics
- agentic-commerce, ai-agents, brazil, claude, fintech, latin-america, llm-tools, mcp, model-context-protocol, nfe, open-finance, payments, pix
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k