
AgentPay VN
io.github.phuocdu由 GitHub 账号 phuocdu 发布v1.1.0更新于 Oct 24, 2026
Let AI agents collect VietQR payments — generate a QR and auto-confirm settlement.
概览
AgentPay VN 让 AI 助手创建 VietQR 收款请求、发送结账链接,并在越南银行转账到账后确认结算。
- 可以做什么
- 按金额创建收款请求,获取 VietQR 二维码或结账链接
- 查询某笔收款请求的当前状态
- 轮询等待付款到账,直到结算或超时
- 列出最近已结算的交易
- 在未配置密钥时自助签发免费的沙箱 API 密钥
- 适用场景
- 适合助手需要在对话中向越南银行账户收款(例如售卖下载内容、预约或咨询服务),并且只在确认付款后才交付商品或服务的场景。沙箱模式可在不动用真实资金的情况下试用整个流程。
- 运行要求
- 通过 stdio 在本机运行,使用 uvx 从 PyPI 安装(Python)。需要在 AGENTPAY_API_KEY 中提供 AgentPay API 密钥(沙箱用 ap_test_,真实收款用 ap_live_),沙箱密钥可通过 register_sandbox 工具自助签发。AGENTPAY_BASE_URL 用于指定 API 地址。真实收款需要已注册且拥有越南银行账户的商户,并需能访问 AgentPay 服务。
安装
在 SourceWeft 中
- 打开 控制台中的 AgentPay VN,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AgentPay VN
[PyPI version] [License: MIT] [MCP Registry] [phuocdu/agentpay-vn MCP server]
VietQR payment infrastructure for AI agents — collect money inside any conversation.
AgentPay VN lets AI agents (Claude, GPT, custom bots) generate payment QR codes, send them to users, and automatically confirm when the money arrives — all without ever holding or touching funds. Money flows directly from the payer's bank account into the merchant's account; AgentPay only reads the bank transaction feed to confirm settlement.
Status: Early access / self-hosted — running on the same swarm as Sổ Nợ AI.
How it works
- Create — agent calls
POST /v1/payment-requests→ gets a VietQR image URL and a checkout page. - Send — agent embeds the QR image or sends the checkout link to the user in chat.
- Await — agent calls
await_settlement()(or the MCP tool) to poll untilstatus = settled. - Deliver — only after confirmed settlement does the agent release the goods/service.
AgentPay never holds money. The QR points directly at the merchant's bank account number. The platform only monitors the bank transaction feed to detect matching transfers.
Quick start
1. Install
2. Get an API key — no account needed
A sandbox key is self-serve and instant:
From Python: register_sandbox(). From an agent: just call the register_sandbox
MCP tool — it issues the key and applies it to the session.
Sandbox keys last 7 days, move no real money, and renew by calling the same endpoint
with the same email. For real payments you need an ap_live_* key, which requires a
registered merchant with a Vietnamese bank account — sign up at
agentpay.servicesai.vn.
3. Collect a payment (3 lines)
See examples/quickstart.py for the full runnable version.
MCP server setup
AgentPay ships an MCP server so any MCP-compatible AI agent can call it as a tool — no extra code needed.
Claude Desktop / Claude Code
Add to claude_desktop_config.json (or use examples/claude_desktop_config.json):
Or use the installed console script:
Available MCP tools
Agent skill (Claude Code, Cursor, and other agents)
The MCP server gives an agent the tools. The bundled skill gives it the judgement:
when to charge, how to format a VND amount, and the rule that nothing ships before
status = settled. See skills/agentpay-vn/SKILL.md.
This repository is also a Claude Code plugin marketplace, so the skill and the MCP server install together in one step:
Claude Code prompts for your API key (stored in the OS credential store, not in
settings.json). Leave it blank to start in sandbox — the agent will call
register_sandbox on its first charge.
For other agents, copy skills/agentpay-vn/ into wherever that agent reads skills from,
and add the MCP server as shown above.
Python SDK
Synchronous
Asynchronous
Webhook verification
Register a webhook endpoint:
API reference
- OpenAPI spec:
agentpay-openapi.yaml - Base URL:
https://agentpay.servicesai.vn/v1 - Authentication:
Authorization: Bearer ap_live_xxx(orap_test_xxxfor sandbox)
Key endpoints
Self-hosting
AgentPay runs as part of the Sổ Nợ AI FastAPI backend.
Requirements
- Docker Swarm cluster (same as Sono)
- MongoDB (shared with Sono)
- SePay bank feed account (for live payments)
- Nginx with an
agentpay.servicesai.vnvhost
Environment variables
Create an API key (admin)
The response includes the full key — store it immediately; it is shown only once.
Rate limits
Design principles
-
No money held — QR codes point directly at the merchant's bank account. AgentPay only reads the transaction feed; it never touches the money.
-
Idempotency — pass an
Idempotency-Keyheader onPOST /payment-requeststo safely retry without creating duplicates (24-hour deduplication window). -
HMAC webhook verification — every outbound webhook is signed with
HMAC-SHA256(whsec_..., raw_body)in theAgentPay-Signatureheader. Always verify before processing. -
Sandbox — use
ap_test_*keys andPOST /v1/sandbox/simulate-settlementto develop and test without real transactions. -
Minimal trust surface — the MCP server is a thin REST client with no local secrets beyond the API key. Compromising an agent key only exposes one tenant's payment-request creation ability.
License
MIT © 2026 ServicesAI — see LICENSE.
来源:README.md,提交 11c5745
工具
0版本历史
2- v1.1.0最新Oct 21, 2026
- v1.0.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Agentpay 集成
AgentPay — Pay-per-call AI Microservices
help.agentpay官方发布者
AgentPay 通过 x402 提供 34 个按次付费的 AI 与数据微服务,以 Base 上的 USDC 结算,无需 API 密钥。

AgentPay Doc Tools
由 GitHub 账号 noah-silver 发布
远程 MCP 服务器,按次付费提供文档与网页小工具:PDF 转文本、RSS/Atom/JSON 订阅解析、站点地图 URL 列举。

AgentPay Domain & Network Lookup
由 GitHub 账号 noah-silver 发布
远程 MCP 服务器,按次付费提供 DNS、WHOIS/RDAP、IP 归属与综合域名报告查询。

AgentPay Web Extract
由 GitHub 账号 noah-silver 发布
远程按次付费的 MCP 服务器,抓取网页并返回干净的 Markdown、元数据和链接供助手使用。

AgentPay (all tools)
由 GitHub 账号 noah-silver 发布
远程按次付费的 MCP 服务器,提供网页抓取、DNS/WHOIS/IP 查询以及 PDF、订阅源和站点地图工具,以 USDC 或预付额度计费。