介绍
这是 Worldpay API 的简单 MCP 服务器。
它实现了模型上下文协议来进行和查询付款。
该服务器有两个版本:
server-stdio.js
一个使用stdio
传输的简单服务器。server-sse.js
- 使用SSE
传输的服务器。
stdio 版本已经使用 Claude Desktop 进行了测试。
sse 版本已经使用 Cursor 进行了测试。
工具
付款
查询付款
生成结帐表格
generateCheckoutForm
工具可创建自定义结账表单代码,用于将 Worldpay 支付处理集成到您的应用程序中。它支持 Web 和 React 框架。
参数:
checkoutId
:您的 Worldpay 结账 IDframework
:您正在使用的框架(web
或react
)
回复:
该工具返回多个内容项:
- HTML/React 组件代码
- CSS 样式
- JavaScript 初始化代码(用于 Web 框架)
这提供了在您的应用程序中快速实现 Worldpay 结帐表单所需的一切。
生成支付服务器代码
generatePaymentServerCode
工具提供通过 Worldpay API 处理付款的服务器端代码。它会根据您的具体付款方式、付款工具类型和编程语言生成代码。
参数:
method
:付款方式(card
,paypal
)instrument
:仪器类型(plain
、session
)language
:编程语言(node
,java
)
回复:
该工具返回:
- 服务端实现代码
- 示例 API 响应(供参考)
目前支持 Node.js 中使用会话令牌的卡支付。
生成付款查询
generatePaymentQuery
工具提供了查询 Worldpay 支付查询 API 的文档和示例。它可以帮助您了解如何使用各种参数筛选和检索支付数据。
参数:
startDate
:查询范围的开始日期(ISO 8601 格式)endDate
:查询范围的结束日期(ISO 8601 格式)pageSize
:返回的最大结果数(可选,默认值:20)currency
:按货币代码过滤(可选)minAmount
:最低付款金额(可选)maxAmount
:最高付款金额(可选)last4Digits
:卡号后4位数字(可选)entityReferences
:商户实体引用(可选)receivedEvents
:付款事件类型(可选)
回复:
该工具返回:
- 有关查询参数的全面文档
- 具有不同参数组合的示例 API 请求
- 供参考的 API 响应示例
安装
用法
构建服务器分布。
配置
标准输入输出
MCP stdio 服务器使用claude_desktop_config.json
文件进行配置。
这是一个包含 MCP 服务器配置的 JSON 文件。
上证所
sse 服务器使用环境变量进行配置。
运行服务器
标准输入输出
Claude 将自动启动 stdio 服务器。
上证所
启动服务器,默认端口3001。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
实现模型上下文协议的服务器通过 Worldpay API 进行付款和查询付款,从而实现付款处理、付款查询和结账表单生成。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA server that integrates with Stripe for handling payments, customers, and refunds through the Model Context Protocol, providing a secure API to manage financial transactions.Last updated -13PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides comprehensive integration with PayPal's APIs, enabling seamless interaction with payment processing, invoicing, subscription management, and business operations through a standardized interface.Last updated -TypeScriptApache 2.0
- -securityFlicense-qualityA Model Context Protocol server that enables Claude AI to interact with Paybyrd's payment processing API, allowing for creating payment links, processing refunds, and retrieving order information.Last updated -5TypeScript
Paddle MCP Serverofficial
AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for interacting with the Paddle Billing API, enabling users to manage products, prices, customers, transactions, subscriptions, and create custom financial reports.Last updated -84820TypeScriptApache 2.0