Centrapay MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Centrapay MCP Server Create a $25 NZD payment request"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
centrapay-mcp
An MCP server for the Centrapay payments API — bring NZ payment-flow testing directly into Claude Code, Claude Desktop, and any MCP-compatible AI tool.
Ask Claude things like:
"Create a $25 NZD payment request under config X"
"What's the status of payment request abc123?"
"List the merchants on this account"
Centrapay's model
Centrapay is structured Account → Merchant Config (configId) → Payment Request. A payment request is always created under a merchant config, and money is expressed as a value object with the amount in minor units as a string ({ "amount": "2500", "currency": "NZD" } = $25.00).
This server speaks that model directly — endpoints, methods, and field names are matched to the live API (see Verification below).
Related MCP server: Magpie MCP Server
Tools
Tool | What it does | Endpoint |
| Create a request under a |
|
| Get a request by id |
|
| Void (cancel) a request |
|
| List by |
|
| Settle a paid request — live call (test vs live depends on key + |
|
| Refund a paid request ( |
|
| Merchants visible to the API key |
|
| Merchant details by id |
|
| Create a merchant under an account |
|
Auth is via the x-api-key header.
Setup
1. Credentials — a public test key is documented at docs.centrapay.com/api/auth; for your own merchant config, contact integrations@centrapay.com.
2. Install and build
git clone https://github.com/CedricConday/centrapay-mcp
cd centrapay-mcp
npm install && npm run build3. Add to Claude Code
claude mcp add centrapay-mcp node /path/to/centrapay-mcp/dist/index.js \
-e CENTRAPAY_API_KEY=your_keyVerification
The request contract (endpoints, methods, body shapes, x-api-key auth) is pinned by contract tests (src/__tests__/payments.test.ts) that mock fetch and assert the exact method, path, and body for create / pay / refund — including the required refund idempotencyKey. Note: Centrapay has no separate sandbox host — service.centrapay.com is production, and test vs live is determined by your API key and the asset types you settle with, so pay / refund are real money-moving calls. A full create → pay → refund round-trip needs a configId under your own merchant account, so response formatting stays defensive (known fields with fallbacks, plus raw passthrough) until pinned against a live create.
Why
Centrapay builds the payment infrastructure NZ merchants use daily. I built this to understand their API from the outside — what integrating actually feels like, and where the friction is. If you're interviewing a candidate who already shipped a correct MCP server around your API, they've done the reading.
Tests
npm test
# Tests run against the real source (not reimplemented copies):
# amount → minor-unit-string coercion, and defensive response formatting.Stack
TypeScript · Node.js · @modelcontextprotocol/sdk · Centrapay REST API
License
MIT
Available Tools
9 toolscreate_merchantB
Create a merchant under an account.
Inputs: name (required), accountId (required).
create_payment_requestB
Create a Centrapay payment request under a merchant config. Returns a payment URL and request id.
Inputs: amount (required), configId (required), currency (required), externalRef, +1 more.
create_refundA
Refund a paid payment request. amount is in MINOR units (cents): 2500 = $25.00, must not exceed the original. Requires an idempotencyKey — a refund moves money irreversibly, so a retry without one would double-refund.
Inputs: id (required), amount (required), currency (required), externalRef (required), +1 more.
get_merchantA
Get details for a Centrapay merchant by id.
Inputs: merchantId (required).
get_payment_statusA
Get the current status of a Centrapay payment request by id.
Inputs: id (required).
list_merchantsB
List merchants visible to the API key.
Inputs: no named parameters.
list_payment_requestsA
List payment requests matching an externalRef for a merchant account (Centrapay has no flat list-all).
Inputs: externalRef (required), merchantAccountId (required).
pay_payment_requestA
Settle a payment request in the sandbox. Requires an assetType and asset reference — used to test webhook/settlement flows.
Inputs: id (required), assetId (required), assetType (required), idempotencyKey (required).
void_payment_requestB
Void (cancel) an active Centrapay payment request.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct resource (merchant or payment request) and action (create, get, list, pay, void, refund). No overlap between merchant and payment operations, and payment operations are clearly differentiated by action.
All tools follow a consistent verb_noun pattern with underscores (e.g., create_merchant, get_payment_status, void_payment_request). No mixing of styles or ambiguous names.
9 tools is well-scoped for a payment/merchant server covering core CRUD and lifecycle operations. Not excessive nor insufficient for the domain.
The tool set covers merchant management (create, get, list) and full payment lifecycle (create, status, list, pay, void, refund). No obvious gaps for the intended use case.
Maintenance
Related MCP Connectors
New Zealand payments for AI agents — cards / Apple Pay via Stripe. Never holds funds.
Query and manage Mercoa AP/AR bill-pay: entities, invoices, transactions and payment methods.
Pink Agentic AI Payments: AI agents pay within spending rules (budgets, caps, approval). Sandbox.
Read payment settings, orders and receipts, create payment links and API keys.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables integration with PayPal APIs for managing invoices, payments, disputes, subscriptions, and more through natural language.13Apache 2.0- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access Magpie Payment Platform APIs for processing payments, creating checkout sessions, sending invoices, and managing payment links through natural conversation.68 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to operate Xental merchant accounts via natural language, provisioning virtual accounts, monitoring transactions, and executing payouts.13MIT
- AlicenseAqualityFmaintenanceEnables managing CloudPayments operations including one-step and two-step payments, refunds, subscriptions, orders, and transaction history through natural language.12MIT