A Model Context Protocol (MCP) compatible server that integrates Ant International’s AlipayPlus payment APIs, enabling AI assistants to handle payment and refund operations seamlessly.
Overview
The AlipayPlus MCP Server wraps Ant International’s AlipayPlus payment APIs into standardized MCP tools, allowing AI assistants to securely process payment-related operations during conversations. With this server, you can create payments, query transaction status, handle refunds, and more directly through AI interactions.
Features
💳 Payment Operations
Create Payment (create_payment): Generate payment requests for processing transactions
Query Payment (query_payment): Retrieve transaction status and information for submitted payment requests
Cancel Payment (cancel_payment): Cancel payments when results are not returned within expected timeframes
💰 Refund Operations
Create Refund (create_refund): Initiate full or partial refunds against successful payments
🛃 Customs Operations
Customs Declare (customs_declare): Declare a payment to customs or update an existing declaration
Query Customs Declaration (query_customs_declare): Inquire about the status of declared payments
Prerequisites
Before using the AlipayPlus MCP Server, ensure you have:
AlipayPlus MCP Server
A Model Context Protocol (MCP) compatible server that integrates Ant International’s AlipayPlus payment APIs, enabling AI assistants to handle payment and refund operations seamlessly.
Overview
The AlipayPlus MCP Server wraps Ant International’s AlipayPlus payment APIs into standardized MCP tools, allowing AI assistants to securely process payment-related operations during conversations. With this server, you can create payments, query transaction status, handle refunds, and more directly through AI interactions.
Features
💳 Payment Operations
create_payment): Generate payment requests for processing transactionsquery_payment): Retrieve transaction status and information for submitted payment requestscancel_payment): Cancel payments when results are not returned within expected timeframes💰 Refund Operations
create_refund): Initiate full or partial refunds against successful payments🛃 Customs Operations
customs_declare): Declare a payment to customs or update an existing declarationquery_customs_declare): Inquire about the status of declared paymentsPrerequisites
Before using the AlipayPlus MCP Server, ensure you have:
Quick Start
1. Installation
Direct Usage with uvx (Recommended)
Install with pip
Install with uv
Install from Source
Requirements
2. MCP Client Configuration
Add the following configuration to your MCP client:
3. Environment Variables
GATEWAY_URLCLIENT_IDMERCHANT_PRIVATE_KEYALIPAY_PUBLIC_KEYPAYMENT_REDIRECT_URLPAYMENT_NOTIFY_URLSETTLEMENT_CURRENCYMERCHANT_NAMEMERCHANT_IDMERCHANT_MCCMERCHANT_REGIONIntegration Example
Here’s how you can integrate the AlipayPlus MCP Server with your AI agent (using QwenAgent as an example):
Changelog
See CHANGELOG.md for a detailed history of changes.
License
This project is licensed under the MIT License.
Acknowledgments