AgentPay brings VietQR payments to AI agents via MCP
AgentPay is an open-source Python SDK and MCP server that lets Claude, local LLMs, and custom agents generate VietQR payment requests that settle directly into a merchant's bank account—no Stripe, no intermediaries.
Score breakdown
AgentPay removes the need for Stripe or intermediary payment infrastructure for AI agents operating in Vietnam's VietQR ecosystem, enabling direct bank-to-merchant settlement triggered and monitored by the agent itself.
- 01AgentPay is an MIT-licensed Python SDK and MCP server for collecting VietQR payments inside AI agents.
- 02QR codes point directly to the merchant's bank account—no intermediary holds or routes funds.
- 03Settlement confirmation is read from the bank's SePay feed API; the SDK does not touch the money.
AgentPay, published by ServicesAI VN, is an open-source (MIT) Python SDK and MCP server that addresses a gap for AI agent developers in Vietnam: Stripe does not support VietQR, and traditional payment gateways require managing API keys, webhooks, and fund settlement delays. AgentPay sidesteps this by generating VietQR QR codes that point directly to the merchant's bank account. The SDK handles three steps—creating a payment request, delivering a checkout URL to the customer, and polling for settlement confirmation via the bank's SePay feed. The library never touches the money; it only watches for settlement and then allows the agent to trigger downstream workflows such as sending invoices or unlocking features.
The post illustrates use cases including AI consulting chatbots that collect per-session fees, autonomous trading bots that settle fees directly to an ops account, and AI content marketplaces handling micro-payments.
Integration with Claude Desktop and Claude Code is done by adding an `agentpay` entry to `claude_desktop_config.json`, pointing to the `agentpay_mcp.server` module with API key and merchant ID supplied as environment variables. The post illustrates use cases including AI consulting chatbots that collect per-session fees, autonomous trading bots that settle fees directly to an ops account, and AI content marketplaces handling micro-payments. The project carries several noted limitations: it is Vietnam-only, requires a VietQR-compatible bank account, depends on the bank's SePay feed API (not universally supported), uses a polling model rather than real-time webhooks, and is described as early-stage, with the authors recommending additional monitoring for production use. The SDK is installable via `pip install agentpay-vn`, with the MCP server available as `pip install agentpay-mcp`.
Key facts
- 01AgentPay is an MIT-licensed Python SDK and MCP server for collecting VietQR payments inside AI agents.
- 02QR codes point directly to the merchant's bank account—no intermediary holds or routes funds.
- 03Settlement confirmation is read from the bank's SePay feed API; the SDK does not touch the money.
- 04Installable via `pip install agentpay-vn`; MCP server via `pip install agentpay-mcp`.
- 05Integrates with Claude Desktop and Claude Code via `claude_desktop_config.json`.
- 06Uses a polling model for settlement status—no real-time webhooks are available.
- 07Currently Vietnam-only; requires a VietQR-compatible bank account and SePay feed support, which not all banks provide.
Topics
Summary and scoring are generated automatically from the original article. We always link back to the publisher and never republish images or paywalled content. Last processed Jun 14, 2026 · 09:08 UTC. How this works →