
AgentPay VN
io.github.phuocduPublished by GitHub account phuocduv1.1.0Updated Oct 24, 2026
Let AI agents collect VietQR payments — generate a QR and auto-confirm settlement.
The publisher's own server: AgentPay — Pay-per-call AI Microservices
Overview
AgentPay VN lets an AI assistant create VietQR payment requests, share checkout links, and confirm settlement for Vietnamese bank payments.
- What you can do
- Create payment requests and get a VietQR code or checkout link for a given amount
- Check the current status of a payment request
- Wait for settlement by polling until the payment arrives or a timeout is reached
- List recent settled transactions
- Self-issue a free sandbox API key when none is configured
- When to use it
- Useful when an assistant needs to collect money inside a conversation from a Vietnamese bank account — for example selling a download, a booking or a consulting session — and should only deliver the goods after payment is confirmed. Sandbox mode lets you try the flow without real money.
- Requirements
- Runs locally over stdio, installed from PyPI with uvx (Python). Needs an AgentPay API key in AGENTPAY_API_KEY (ap_test_ for sandbox, ap_live_ for real payments); a sandbox key can be self-issued through the register_sandbox tool. AGENTPAY_BASE_URL sets the API endpoint. Live payments require a registered merchant with a Vietnamese bank account, and network access to the AgentPay service.
Installation
In SourceWeft
- Open AgentPay VN in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 11c5745
Tools
0Version history
2- v1.1.0LatestOct 21, 2026
- v1.0.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Agentpay integrations
AgentPay — Pay-per-call AI Microservices
help.agentpayOfficial publisher
AgentPay offers 34 pay-per-call AI and data microservices over x402, settled in USDC on Base, with no API keys required.

AgentPay Doc Tools
Published by GitHub account noah-silver
Remote MCP server offering paid per-call document and web utilities: PDF-to-text, RSS/Atom/JSON feed parsing, and sitemap URL listing.

AgentPay Domain & Network Lookup
Published by GitHub account noah-silver
Remote MCP server for paid DNS, WHOIS/RDAP, IP ownership and combined domain reports, billed per call in USDC or prepaid credits.

AgentPay Web Extract
Published by GitHub account noah-silver
A remote pay-per-call MCP server that fetches a web page and returns clean markdown, metadata and links for an assistant.

AgentPay (all tools)
Published by GitHub account noah-silver
Remote pay-per-call MCP server offering web page extraction, DNS/WHOIS/IP lookups, and PDF, feed and sitemap tools, billed in USDC or prepaid credits.