Skip to main content
W

Worldpay

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

🌐 GlobalPaymentsAuth · API Keybeta22 tools5 env varsprerelease

Global enterprise processor (Access Worldpay REST). Target: multinationals routing LatAm volume through a global contract. Recently acquired by Global Payments (Jan 2026); platform stability TBD. Alpha on npm β€” HATEOAS linkData flow pending sandbox validation.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • v0.2.0-alpha.3 is a prerelease; npm has no stable release of this package.
Package
@codespar/mcp-worldpay
Version
0.2.0-alpha.3 Β· prerelease
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
🌐 Global
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables5 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 22 tools. Try verify_account first.
terminal
# Claude Code claude mcp add worldpay -e WORLDPAY_API_VERSION=… -e WORLDPAY_ENTITY=… -e WORLDPAY_ENV=… -e WORLDPAY_PASSWORD=… -e WORLDPAY_USERNAME=… -- npx -y @codespar/mcp-worldpay@0.2.0-alpha.3 # then: /mcp to confirm the server is connected
Environment variables5 variables
WORLDPAY_API_VERSIONPayments API version for the Content-Type/Accept media-type header. Defaults to v7.optional
WORLDPAY_ENTITYMerchant entity identifier assigned during onboarding. Injected as merchant.entity into every request body.required
WORLDPAY_ENVsandbox | production. Defaults to sandbox. sandbox -> https://try.access.worldpay.com, production -> https://access.worldpay.com.optional
WORLDPAY_PASSWORDAccess Worldpay API password (Basic Auth)requiredsecret
WORLDPAY_USERNAMEAccess Worldpay API username (Basic Auth)required

Names read from the package code (@codespar/mcp-worldpay@0.2.0-alpha.3). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call demoverify_account

"Run an AVS/CVC account verification on a card without charging it. Returns the verification outcome and a card-on-file or one-time verification record. merchant.entity is injected automatically"

tools/callverify_accountresult returned

Tools

What your agent can call.

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

verify_account

Run an AVS/CVC account verification on a card without charging it. Returns the verification outcome and a card-on-file or one-time verification record. merchant.entity is injected automatically.

authorize_payment

Authorize a card payment. Returns an outcome plus HATEOAS action links (settle, cancel, refund, reverse). Extract the linkData from those links and pass it to capture_payment / cancel_payment / refund_payment / reverse_payment.

capture_payment

Capture (settle) an authorized payment. Omit amount for a full settlement; pass amount+currency for a partial settlement. Pass linkData from the authorization's action link (_links.payments:settle.href segment) for HATEOAS-correct routing.

cancel_payment

Void an authorization that has not yet been captured. Pass linkData from _links.payments:cancel.href.

refund_payment

Refund a captured payment. Omit amount for a full refund; pass amount+currency for a partial refund. Pass linkData from _links.payments:refund.href or _links.payments:partialRefund.href.

reverse_payment

Reverse a payment atomically β€” voids if not yet captured, refunds if already captured. Pass linkData from _links.payments:reverse.href.

get_payment

Retrieve the detail of a payment event by its Worldpay eventId.

create_token

Tokenize a card for reuse (card-on-file). Returns a token you can pass as the paymentInstrument on subsequent authorizations.

get_token

Retrieve a stored card token's metadata (bin, scheme, last4, cardHolderName, expiryDate, etc.). Does not return the raw PAN.

update_token

Update metadata on a stored card token (e.g. expiryDate after an account-updater refresh, cardHolderName, description).

delete_token

Delete a stored card token.

query_payment

Look up a payment by the merchant-side transactionReference you assigned on authorize_payment. Returns the matching payment event(s).

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

The CodeSpar runtime does not route this server. Mount it in your client over stdio Β· streamable-http.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Worldpay MCP server?

Run npx -y @codespar/mcp-worldpay@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.

What can my agent do with Worldpay?

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

How does Worldpay authenticate, and how are credentials stored?

Worldpay uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Worldpay 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 Worldpay open source? How do I report a bug?

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

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Worldpay β€” MCP server Β· 22 tools | CodeSpar