Overview
The Antom MCP Server is a Model Context Protocol (MCP) compatible server that wraps Ant International's Antom payment APIs into standardized MCP tools. It enables AI assistants to securely perform payment-related operations within conversations, including creating payment sessions for client-side SDK integration, querying transaction status, cancelling payments when responses are delayed, initiating refunds, and checking refund details. By exposing these capabilities as MCP tools, developers can orchestrate complex payment flows in a natural language interface while maintaining security through merchant credentials (CLIENT_ID, MERCHANT_PRIVATE_KEY, ALIPAY_PUBLIC_KEY) and configured callbacks (PAYMENT_REDIRECT_URL, PAYMENT_NOTIFY_URL). The server is designed to be used with a MCP client, typically via uvx, and can be configured with gateway endpoints such as GATEWAY_URL (defaulting to the Antom gateway). It supports installation from source or using the uvx package, and includes an example of integrating as a tool in an AI agent (e.g., QwenAgent). Prerequisites include Python 3.11+, a valid Antom Merchant Account, and the required credentials. This setup enables secure, end-to-end payment and refund processing during AI conversations.
Features
Create Payment Session
Generate payment sessions for client-side SDK integration
Query Payment Details
Retrieve transaction status and information for submitted payment requests
Cancel Payment
Cancel payments when results are not returned within expected timeframes
Create Refund
Initiate full or partial refunds against successful payments
Query Refund Details
Check refund status for previously submitted refund requests
Who Is This For?
- AI Developers:Integrate MCP into AI assistants to perform payments and refunds.




