Skip to main content
Glama
VietQR MCP Toolkit

VietQR MCP Toolkit

VietQR MCP Toolkit (vietqr-mcp-toolkit)

Zero-dependency Python 3.10+ Model Context Protocol (MCP) Server & CLI for generating Vietnam Napas247 VietQR payment links and print-ready A4 HTML freelance/agency invoices directly from AI agents (Claude Desktop, Cursor, Windsurf, Antigravity) or terminal scripts.


Features / Tính năng nổi bật

  • 0 External Dependencies: Pure Python 3.10+ standard library (json, urllib, argparse, html). Runs instantly with python vietqr_mcp.py.

  • 20+ Supported Napas247 Banks: VCB, MB, TCB, ACB, CTG (VietinBank), BIDV, VPB, TPB, STB, HDB, VIB, SHB, MSB, OCB, SEAB, VBA, and more.

  • MCP JSON-RPC 2.0 Stdio Server: Exposes 3 tools to AI coding assistants & agent workflows:

    1. generate_vietqr_payment_url — Creates Napas247 VietQR image URL + Markdown checkout snippet.

    2. generate_freelance_invoice_html — Produces print-to-PDF A4 HTML invoices with auto-calculated totals and an embedded VietQR payment block.

    3. list_supported_vietnam_banks — Lists bank shorthands and 6-digit Napas BINs.


Related MCP server: app.wishpool/vietnam-payments-mcp

Quick Start (CLI & MCP)

1. Verify Locally (--self-test)

git clone https://github.com/tranhoangtu-it/vietqr-mcp-toolkit.git
cd vietqr-mcp-toolkit
python vietqr_mcp.py --self-test

2. Run as CLI

# Generate a VietQR payment link
python vietqr_mcp.py qr --bank VCB --account 9946611993 --amount 484500 --memo "KT247 PRO"

# Generate a printable A4 HTML invoice with embedded VietQR
python vietqr_mcp.py invoice --client "Acme Studio" --items "[{\"description\":\"AI Workflow Setup\",\"qty\":1,\"unit_price_usd\":49}]" --bank VCB --account 9946611993 --out invoice.html

3. Connect to Claude Desktop / Cursor / Windsurf (mcpServers)

Add this block to your MCP client configuration file:

{
  "mcpServers": {
    "vietqr-toolkit": {
      "command": "python",
      "args": ["/path/to/vietqr-mcp-toolkit/vietqr_mcp.py"]
    }
  }
}

Commercial Pro License, Custom Setup & Sponsorship

The core CLI and MCP server are MIT-licensed. For founders, agencies, and solopreneurs who want ready-to-sell commercial systems:

Package

Price

Includes

Instant Access

AI Solo Starter Vault

$19

50+ Mega-Prompts + 5 Web Tools Pack

View Offer

Turnkey Passive Income OS (White-Label)

$49

Complete Commercial License + 9-Archetype Storefront + Auto Email Funnel

View Offer

Done-For-You 2-Hour Setup

$99

1-on-1 Installation, Custom Bank VietQR + Cloud Tunnel + Live Launch

View Offer

Sponsor via VietQR (Vietnam Napas247)

Available Tools

3 tools
generate_freelance_invoice_htmlB

Generate a standalone print-ready A4 HTML freelance/agency invoice with auto-calculated totals and an embedded VietQR payment block.

Inputs: items_json (required), client_name (required), bank_id, account_no, +4 more.

generate_vietqr_payment_urlB

Generate an official Napas247 VietQR payment QR image URL and Markdown block for Vietnamese bank transfers.

Inputs: bank_id (required), account_no (required), memo, template, +2 more.

list_supported_vietnam_banksA

List supported Vietnam Napas247 VietQR bank codes, 6-digit BIN numbers, and full bank names.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools target clearly different outputs: a VietQR payment URL/Markdown block, an invoice HTML document, and a bank reference list. Although the invoice tool embeds a VietQR block, its purpose and output format are distinct enough that an agent can select correctly.

    Naming Consistency5/5

    All tool names use consistent snake_case and follow a predictable verb-first pattern: generate_* and list_*. The naming clearly indicates both the action and the resource being produced or retrieved.

    Tool Count5/5

    Three tools are well matched to this narrow VietQR/invoice domain. Each tool has a clear, non-redundant role, and there are no excessive or filler operations.

    Completeness4/5

    The surface covers the core workflows: bank discovery, VietQR payment URL generation, and invoice generation with an embedded payment block. Minor gaps exist around validation or verification of bank/account inputs and possibly richer invoice customization, but core usage is covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      AgentPay VN — an MCP server that lets your AI agent collect real (fiat) payments over VietQR
      4
      67 PyPI
      1
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI coding agents to integrate MONA Pay payments directly from the IDE, including creating VietQR codes, checking transactions, configuring and testing webhooks, verifying HMAC signatures, and generating webhook sample code.
      17
      113 npm
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Lets coding agents like Claude Code, Cursor, and Codex call MONA Pay directly while developing, so they can create VietQR codes and checkout links, look up incoming transactions, link bank accounts via OTP, and configure or test webhooks (plus email and Zalo notifications) without leaving the editor. It also verifies HMAC-SHA256 webhook signatures offline and generates ready-to-use webhook handler snippets and sandbox transactions for end-to-end payment testing.
      50
      113 npm
      MIT