A Model Context Protocol (MCP) compatible server that integrates Ant International’s Antom payment APIs, enabling AI assistants to handle payment and refund operations seamlessly.
Overview
The Antom MCP Server wraps Ant International’s Antom payment APIs into standardized MCP tools, allowing AI assistants to securely process payment-related operations during conversations. With this server, you can create payment sessions, query transaction status, handle refunds, and more directly through AI interactions.
Antom MCP Server
A Model Context Protocol (MCP) compatible server that integrates Ant International’s Antom payment APIs, enabling AI assistants to handle payment and refund operations seamlessly.
Overview
The Antom MCP Server wraps Ant International’s Antom payment APIs into standardized MCP tools, allowing AI assistants to securely process payment-related operations during conversations. With this server, you can create payment sessions, query transaction status, handle refunds, and more directly through AI interactions.
Features
💳 Payment Operations
create_payment_session): Generate payment sessions for client-side SDK integrationquery_payment_detail): 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 paymentsquery_refund_detail): Check refund status for previously submitted refund requestsPrerequisites
Before using the Antom MCP Server, ensure you have:
Quick Start
1. Installation
Direct Usage with uvx (Recommended)
Install from Source
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_URLIntegration Example
Here’s how you can integrate the Antom 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