mcpField
M
mcp-izipay

mcp-izipay

Local
github.com/codesparFinance275Updated 4w ago

About mcp-izipay

mcp-izipay is an MCP server for Izipay, the merchant brand of Niubiz, aimed at Peruvian enterprise acquiring. It covers card authorization, capture, refunds, settlements and installment (cuotas) plans. The README marks it as alpha, with endpoint paths inferred from public SDKs and still to be validated.

Key features

  1. 01Card authorization, capture and cancellation
  2. 02Refunds, transaction listing and settlement batches
  3. 03Installment (cuotas) plan lookup and creation
  4. 04Card tokenization and 3-D Secure authentication
  5. 05Yape and Plin direct payments and payment links
  6. 06JWT authentication with in-memory token refresh

Use cases

  1. 01Card payment acceptance and refunds for large Peruvian merchants
  2. 02Daily reconciliation using settlement batch data
  3. 03Offering installment payment plans on orders

MCP support

The project runs as an MCP server and exposes 20 payment tools to MCP clients over stdio or HTTP.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-izipay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-izipay"
],
"env": {
"IZIPAY_USERNAME": "<IZIPAY_USERNAME>",
"IZIPAY_PASSWORD": "<IZIPAY_PASSWORD>",
"IZIPAY_MERCHANT_CODE": "<IZIPAY_MERCHANT_CODE>",
"IZIPAY_ENV": "<IZIPAY_ENV>",
"IZIPAY_BASE_URL": "<IZIPAY_BASE_URL>"
}
}
}
}
Run commandnpx -y @codespar/mcp-izipay
Environment variables to set
IZIPAY_USERNAMEIzipay merchant username issued with your acquirer contract
IZIPAY_PASSWORDSecretIzipay merchant password used to obtain JWT
IZIPAY_MERCHANT_CODEIzipay merchant code (codigoComercio)
IZIPAY_ENVEnvironment: sandbox or production. Defaults to production.
IZIPAY_BASE_URLIzipay API base URL. Defaults per IZIPAY_ENV. Override if your contract issues a custom host.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-izipay0.2.0-alpha.3

Tools

20

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
cardobjectNoCard data. Prefer token from tokenize_card via `token_id`.
card.numberstringNoPAN (avoid; prefer token_id)
card.token_idstringNoToken from tokenize_card. Preferred over raw PAN for PCI scope.
card.security_codestringNoCVV/CVC
card.cardholder_namestringNo
card.expiration_yearstringNoYYYY
card.expiration_monthstringNoMM
amountnumberYesAmount in minor units (céntimos de sol). 10000 = 100.00 PEN.
capturebooleanYestrue = authorize + capture in one call; false = authorize only.
currencystringYesISO-4217 currency code. PEN or USD.
customerobjectYesPayer identity
customer.emailstringYes
customer.phonestringNo
customer.last_namestringNo
customer.first_namestringNo
customer.document_typeenumNoPeruvian ID typeDNI | CE | RUC | PAS
customer.document_numberstringNo
order_idstringYesMerchant-side order reference (orderNumber).
three_dsobjectNo3DS parameters (optional). Enable for issuer challenge.
three_ds.enabledbooleanNo
three_ds.return_urlstringNoURL to return the browser to after 3DS challenge completes.
descriptionstringNoHuman-readable description

Details

From the project README

@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
SegmentPeru SMBPeru enterprise
TypePSP (Stripe-analog)Acquirer (Niubiz)
OnboardingSelf-serveCommercial contract
CustomersD2C, SaaS, startupsRetail 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)
ToolMethodPath
auth (internal)POST/auth/login
create_chargePOST/v1/charges
capture_chargePOST/v1/charges/{id}/capture
cancel_chargePOST/v1/charges/{id}/cancel
refund_chargePOST/v1/charges/{id}/refund
get_chargeGET/v1/charges/{id}
tokenize_cardPOST/v1/tokens
delete_tokenDELETE/v1/tokens/{id}
create_installment_planPOST/v1/installments
list_transactionsGET/v1/transactions
get_settlementGET/v1/settlements/{date}

Tools (20)

ToolPurpose
create_chargeAuthorize a card payment.
capture_chargeCapture a previously authorized charge (when capture=false was used in create_charge).
cancel_chargeVoid an authorized-but-uncaptured charge.
refund_chargeRefund a captured charge.
get_chargeRetrieve a charge by Izipay charge id.
tokenize_cardTokenize a card for PCI-safe reuse.
delete_tokenDelete a stored card token.
create_installment_planCreate a Peruvian cuotas (installment) plan on a charge.
list_transactionsList transactions for reconciliation.
get_settlementGet the daily settlement batch (liquidación) for a given date.
get_charge_by_orderRetrieve a charge by the merchant-side orderNumber (order_id passed to create_charge).
list_installment_optionsQuery available cuota programs for a given card BIN and amount.
list_settlementsList settlement batches across a date range.
create_payment_linkCreate a hosted payment link (pay-by-link).
get_payment_linkRetrieve a payment link by id.
pay_yapeInitiate a Yape direct payment.
pay_plinInitiate a Plin direct payment.
authenticate_3dsComplete a 3-D Secure challenge.
create_subscriptionStart a recurring card charge (subscription).
cancel_subscriptionCancel 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.pe
  • IZIPAY_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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.