vnpay-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vnpay-mcp Create a VNPay payment URL for 100,000 VND"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vnpay-mcp
MCP server for VNPay payment gateway (Vietnam). Supports payment URL generation, transaction queries, refunds, tokenized payments, and IPN verification with HMAC-SHA512 signing.
Tools (8)
Tool | Description |
| Generate a VNPay payment URL |
| Query transaction status |
| Refund a transaction |
| Get supported bank list |
| Create a card token |
| Pay using stored token |
| Query token information |
| Verify IPN callback signature |
Related MCP server: jazzcash-mcp
Quick Start
{
"mcpServers": {
"vnpay": {
"command": "npx",
"args": ["-y", "@theyahia/vnpay-mcp"],
"env": {
"VNPAY_TMN_CODE": "<YOUR_TMN_CODE>",
"VNPAY_HASH_SECRET": "<YOUR_HASH_SECRET>"
}
}
}
}Environment Variables
Variable | Required | Description |
| Yes | Terminal code from VNPay |
| Yes | Hash secret for HMAC-SHA512 signing |
| No | Set to "true" for production |
Demo Prompts
"Create a VNPay payment URL for 100,000 VND"
"Query transaction status for order vnp-123"
"Get list of supported Vietnamese banks"
"Verify this IPN callback: vnp_TxnRef=..."
License
MIT
Available Tools
8 toolscreate_payment_urlC
Generate a VNPay payment URL.
Inputs: order_id (required), amount (required), order_info (required), return_url (required), +3 more.
create_tokenB
Create a card token for recurring payments.
Inputs: order_id (required), amount (required), return_url (required), ip_addr.
get_bank_listA
Get list of supported banks.
Inputs: no named parameters.
pay_with_tokenC
Pay using a stored card token.
Inputs: order_id (required), amount (required), token (required), order_info (required), +1 more.
query_tokenB
Query card token information.
Inputs: token (required), ip_addr.
query_transactionC
Query transaction status.
Inputs: order_id (required), trans_date (required), ip_addr.
refundC
Refund a VNPay transaction.
Inputs: order_id (required), amount (required), trans_date (required), trans_type, +2 more.
verify_ipnA
Verify a VNPay IPN callback signature.
Inputs: query_string (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation: payment URL creation, token creation, bank list retrieval, token payment, token query, transaction query, refund, and IPN verification. No overlapping purposes; an agent can clearly differentiate them.
All tool names follow a consistent verb_noun pattern using lowercase with underscores (e.g., create_payment_url, get_bank_list, verify_ipn). The only exception is 'refund', which is a single-word verb but still aligns with the verb-first convention.
With 8 tools, the server is well-scoped for a VNPay integration. It covers essential payment operations without being overly large or too minimal, making it manageable for agents.
The tool set covers the core payment lifecycle: creating payments, recurring payments via tokens, querying transactions, refunds, and IPN verification. Minor gaps like token update/delete or transaction cancellation are absent but likely not needed for the domain.
Related MCP Connectors
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
MCP server for Lemon Squeezy — stores, products, orders, subscriptions, license keys.
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
Official BlindPay MCP server: stablecoin payouts, payins, quotes and customers for global payments.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for PayMongo payment gateway (Philippines). Supports payment intents, sources, payments, refunds, and checkout sessions via Basic Auth.2460 npm2MIT
- AlicenseAqualityCmaintenanceMCP server for JazzCash mobile wallet and payments (Pakistan). Supports wallet payments, mobile account payments, vouchers, refunds, and balance inquiries.513 npm1MIT
- AlicenseAqualityDmaintenanceMCP server for MAIB e-commerce payments (Moldova). Supports payments, refunds, recurring billing, one-click payments, and transaction status via OAuth 2.0.813 npmMIT
- AlicenseBqualityFmaintenanceMCP server for Payme payment system (Uzbekistan). Supports transactions, statements, payment links, and balance queries via JSON-RPC 2.0.8MIT