This is a simple MCP server for Worldpay APIs.
It implements the Model Context Protocol to make and query payments.
There are two versions of the server:
server-stdio.js
- a simple server that uses the stdio
transport.server-sse.js
- a server that uses the SSE
transport.The stdio version has been tested using Claude Desktop.
The sse version has been tested using Cursor.
The generateCheckoutForm
tool creates customized checkout form code for integrating Worldpay payment processing into your application. It supports both web and React frameworks.
checkoutId
: Your Worldpay checkout IDframework
: The framework you're using (web
or react
)The tool returns multiple content items:
This provides everything needed to quickly implement a Worldpay checkout form in your application.
The generatePaymentServerCode
tool provides server-side code for processing payments through the Worldpay API. It generates code based on your specific payment method, instrument type, and programming language.
method
: Payment method (card
, paypal
)instrument
: Instrument type (plain
, session
)language
: Programming language (node
, java
)The tool returns:
Currently supports card payments with session tokens in Node.js.
The generatePaymentQuery
tool provides documentation and examples for querying the Worldpay Payment Queries API. It helps you understand how to filter and retrieve payment data using various parameters.
startDate
: Start date for the query range (ISO 8601 format)endDate
: End date for the query range (ISO 8601 format)pageSize
: Maximum number of results to return (optional, default: 20)currency
: Filter by currency code (optional)minAmount
: Minimum payment amount (optional)maxAmount
: Maximum payment amount (optional)last4Digits
: Last 4 digits of card number (optional)entityReferences
: Merchant entity references (optional)receivedEvents
: Payment event types (optional)The tool returns:
npm install
Build the server distributions.
npm run build
The MCP stdio server is configured using a claude_desktop_config.json
file.
This is a JSON file that contains the configuration for the MCP server.
{
"mcpServers": {
"worldpay": {
"name": "worldpay-server",
"command": "node",
"args": ["PATH TO server-stdio.js"],
"env": {
"WORLDPAY_USERNAME": "USERNAME",
"WORLDPAY_PASSWORD": "PASSWORD"
}
}
The sse server is configured using environment variables.
export WORLDPAY_USERNAME=USERNAME
export WORLDPAY_PASSWORD=PASSWORD
Claude will start the stdio server automatically.
Start server, defaults to port 3001.
node dist/server-sse.js
Seamless access to top MCP servers powering the future of AI integration.