Skip to main content
MCP server CX Codex

mcp-worldpay — Claude Code MCP server: Worldpay payments

An MCP server over Access Worldpay: authorize, capture, refund, tokenize cards and handle disputes from inside an AI agent.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env WORLDPAY_USERNAME=<WORLDPAY_USERNAME> --env WORLDPAY_PASSWORD=<WORLDPAY_PASSWORD> --env WORLDPAY_ENTITY=<WORLDPAY_ENTITY> --env WORLDPAY_ENV=<WORLDPAY_ENV> --env WORLDPAY_API_VERSION=<WORLDPAY_API_VERSION> --transport stdio worldpay -- npx -y @codespar/mcp-worldpay
Open on GitHub

What mcp-worldpay does

The server exposes 22 Access Worldpay tools to the agent. Card lifecycle calls sit next to create_token, get_token and update_token, the three 3DS2 steps, and dispute handling through get_dispute, defend_dispute and submit_dispute_evidence. fraud_screen runs a FraudSight check on a payment method without any authorization, while verify_account does AVS/CVC validation before a charge.

Authentication is HTTP Basic with the username and password Worldpay issued you, plus a merchant entity id. Leave WORLDPAY_USERNAME, WORLDPAY_PASSWORD or WORLDPAY_ENTITY unset and the server has nothing to connect with. WORLDPAY_ENV picks sandbox or production and starts on sandbox. The Payments API version comes from WORLDPAY_API_VERSION, v7 unless you change it.

Access Worldpay is HATEOAS-driven, so an authorization response carries action links such as payments:settle or payments:refund. Pull the trailing linkData segment out of the href and hand it to capture_payment, refund_payment or the other lifecycle calls. Omit it and the server falls back to the bare resource path, which only works on onboardings that settle by transactionReference. The package ships as 0.1.0-alpha.1, and endpoint paths can still move.

What it helps with

  • validate a card with AVS/CVC before charging it
  • authorize a payment, then capture or void it
  • refund a payment that has already settled
  • store a card as a token for repeat purchases
  • answer a chargeback by accepting it or filing evidence

Example prompts for the agent

  • Run an AVS/CVC check on this card without charging it
  • Authorize a payment for 49.90 and capture it using its linkData
  • Refund the captured payment and include the reason

How to install mcp-worldpay

Platform CLI

claude mcp add --env WORLDPAY_USERNAME=<WORLDPAY_USERNAME> --env WORLDPAY_PASSWORD=<WORLDPAY_PASSWORD> --env WORLDPAY_ENTITY=<WORLDPAY_ENTITY> --env WORLDPAY_ENV=<WORLDPAY_ENV> --env WORLDPAY_API_VERSION=<WORLDPAY_API_VERSION> --transport stdio worldpay -- npx -y @codespar/mcp-worldpay

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-worldpay

How do I install mcp-worldpay in Claude Code?

Run `claude mcp add mcp-worldpay -e WORLDPAY_USERNAME=<WORLDPAY_USERNAME> -e WORLDPAY_PASSWORD=<WORLDPAY_PASSWORD> -e WORLDPAY_ENTITY=<WORLDPAY_ENTITY> -- npx -y @codespar/mcp-worldpay`, replacing the placeholders with your own credentials.

What does mcp-worldpay do?

It gives the agent Worldpay payment tools: authorization, capture, cancel, refund and reverse, card tokenization, 3DS2 steps, fraud screening and dispute actions.

Why does linkData matter?

Worldpay returns action links after authorization, and the trailing segment of each href addresses the operation. Without it the server targets the bare resource path, which only fits settle-by-transactionReference onboardings.

Similar MCP servers

Everything for Finance and business →

From the same set40

mcp-z-api An MCP server that lets your agent send WhatsApp messages through a Z-API instance: text, media, contacts and groups. CX Codex +1 ★ 274repo stars mcp-whatsapp-cloud An MCP server for the WhatsApp Cloud API. Your agent sends messages, media and templates through Meta's Graph API directly. CX Codex +1 ★ 274repo stars mcp-unico Adds Unico verification tools to your agent: CPF/CNPJ checks, document OCR, face matching, PEP and court-record screening. The default endpoint no longer resolves, so it only runs against your own URL. CX Codex +1 ★ 274repo stars mcp-twilio Wires Twilio into your agent: SMS and WhatsApp sending, outbound calls, Verify codes for 2FA, and phone validation through Lookups. CX Codex +1 ★ 274repo stars mcp-tiny Wires Tiny ERP into your coding agent: 21 tools for products, stock, warehouses, orders, NF-e invoices and receivables. Useful when ERP data should be reachable from chat. CX Codex +1 ★ 274repo stars mcp-stripe-acp Wires Stripe into your agent: ACP checkout, payment links, invoices, subscriptions and the product catalog. Useful when the agent has to build a cart or finish a purchase. CX Codex +1 ★ 274repo stars mcp-stone An MCP server that puts Stone Open Bank inside your coding agent: payments, Pix, transfers, receivables. Useful when the assistant has to move money, not just draft code for it. CX Codex +1 ★ 274repo stars mcp-siigo Gives your agent Siigo tools for invoices, credit notes, customers and products, with DIAN e-invoicing built in. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor