
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 或預付額度計費。