@vn-skills/mcp
This MCP server provides offline, read-only Vietnamese utilities for payments, addresses, identities, dates, invoices, names, and formatting.
Build, parse, and decode VietQR/EMVCo payloads and QR images; search NAPAS bank lists.
Parse and convert Vietnamese addresses, including pre-2025 to 2025 34-province mappings, batch conversion, ward search, province lookup, and mapping history.
Validate Vietnamese tax IDs, CCCD/CMND citizen IDs, and phone numbers individually or in batches; compute tax ID check digits.
Split/sort Vietnamese names with collation, slugs, and initials.
Convert money/numbers to and from Vietnamese words; normalize text for TTS; format/parse Vietnamese numbers, VND amounts, and dates.
Convert solar/lunar dates, generate lunar month calendars, find Tết/Can Chi, list holidays, calculate working days, and export iCalendar files.
Validate e-invoices, compute totals/VAT, generate examples, and mock-issue invoices.
Run offline with read-only tools, optional toolset/tool filtering, and MCP transports including stdio, HTTP, and REST.
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., "@@vn-skills/mcp tạo QR chuyển 500k vào VCB số 0011001234567"
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.
vn-skills
Teach your AI agent to work with VietQR, e-invoices, the new 34-province addresses and more — with one command.
Tiếng Việt · 5-minute quickstart
Coding agents (Claude Code, Codex, Cursor, …) get Vietnam-specific tasks wrong: they invent bank BINs, use the pre-2025 provinces and districts, misread amounts in words, or confuse the Chinese and Vietnamese lunar calendars. vn-skills fixes that with three layers built on one offline core:
Layer | What | Install |
Agent Skills |
| copy a folder into your agent's skills directory |
CLI |
| nothing; the skills call it |
MCP server |
|
|
Library |
|
|
What it is: an offline toolkit. No accounts or API keys; it builds, parses and validates VietQR payloads and images. What it is not: a payment gateway. It does not collect payments or confirm transfers, and never calls bank or NAPAS APIs; pair it with a payment gateway for that.
Skills
Skill | Does | Example |
Build/parse VietQR (NAPAS 247, EMVCo) payloads, CRC16, PNG/SVG, bank BIN lookup |
| |
Parse/normalise addresses; convert 63-province + district addresses to the 34-province, 2-level structure (01/07/2025) |
| |
Validate tax IDs (10 / 13 digits, check digit, branch suffix; 12-digit personal ID) offline |
| |
Validate/decode 12-digit CCCD (province, sex, birth year) and check 9-digit CMND format offline |
| |
Normalise phone numbers (+84, old 11-digit prefixes), carrier by prefix, landline area codes |
| |
Official days off per year (announced notices, nghỉ bù, swaps), working-day check and add N working days |
| |
Amount → Vietnamese words (or English with |
| |
Solar ↔ lunar, leap months, can chi, Tết, holidays (Meeus astronomical algorithms, UTC+7) |
| |
E-invoice schema validation, VAT/totals, amount in words, mock provider; MISA/Viettel/VNPT adapter skeletons |
| |
Split họ / tên đệm / tên, compound surnames, Vietnamese collation sort (names or any list), unaccented slugs and initials |
| |
Format/parse Vietnamese numbers, ₫ amounts and dd/MM/yyyy dates; parse "1tr2", "500k", "1,5 tỷ" |
|
As a schema.org PostalAddress (JSON-LD) for a website: vn-skills address convert --schema "12 Nguyễn Huệ, P. Bến Nghé, Q.1, TP.HCM". stdout is only the JSON-LD; when the old ward was split, the candidates and a warning go to stderr.
Bulk-convert stored addresses (one per line → NDJSON, or a CSV column; exit code 2 if some rows fail):
vn-skills address convert-file addresses.txt
vn-skills address convert-file customers.csv --csv --column address > converted.csv
vn-skills address convert-file customers.csv --csv --province-column province --district-column district --ward-column ward > converted.csv
vn-skills address convert-file addresses.txt --encoding windows-1258UTF-8/UTF-16 byte-order marks are detected automatically; use --encoding <label> (e.g. windows-1258, utf-16le) for files saved by Vietnamese Windows/Excel. einvoice file commands and money speak - accept it too.
Export the bundled catalogue for seeding a database or dropdown: vn-skills address export <provinces|wards|mapping|legacy-provinces|legacy-districts|legacy-wards> [--format json|csv|sql] [--out <file>]. CSV and SQL start with a comment naming the dataset version, the decree and SOURCES.md.
Bulk-check tax IDs, CCCD numbers or phones (one per line → NDJSON, or a CSV column with valid and result columns appended; exit code 2 if some rows are invalid; --encoding <label> works as above):
vn-skills taxid validate-file suppliers.csv --csv --column mst > checked.csv
vn-skills id parse-file ids.txt
vn-skills phone parse-file phones.txtRelated MCP server: cn-dev-mcp
Install the skills
Claude Code plugin (all skills + the MCP server, one command):
/plugin marketplace add beiryu/vn-skills
/plugin install vn-skills@vn-skillsClaude Code (project or user scope):
git clone https://github.com/beiryu/vn-skills
cp -r vn-skills/skills/vietqr ~/.claude/skills/ # or .claude/skills/ inside your projectThen ask: "tạo QR chuyển 500k vào VCB số tài khoản 0011001234567" → Claude runs the skill and returns qr.png.
Or use the CLI (skills are bundled in the package):
npx -y @vn-skills/cli install vietqr --agent claude # .claude/skills/vietqr (project)
npx -y @vn-skills/cli install all --agent cursor --global # ~/.cursor/skills/*--agent is claude, cursor, codex, agents or copilot (.github/skills/, or ~/.copilot/skills/ with --global). Existing folders are not overwritten without --force; --dry-run prints
the actions only.
Cursor / Codex / other agents: copy the same folders into the agent's skills directory
(.cursor/skills/, .codex/skills/, or wherever your agent discovers SKILL.md). The skills only need Node.js 22+ because
they call npx -y @vn-skills/cli. .agents/skills/ is read by Codex (docs), Cursor (docs), Gemini CLI (docs) and GitHub Copilot in VS Code, Copilot CLI and the cloud agent (docs); install there with --agent agents. For the Copilot cloud agent, install in project scope (--agent agents without --global), because the cloud agent does not load personal skills.
Inside this repository run node packages/cli/dist/index.js … instead of npx -y @vn-skills/cli … to get clean JSON. pnpm vn-skills … also works but adds wrapper output (the echoed command and [ELIFECYCLE] on failures).
claude.ai and the Claude API
npx -y @vn-skills/cli install all --zip skills-zip # writes skills-zip/<skill>.zipUpload the zips in claude.ai under Customize > Skills, or through the Claude API Skills endpoint. On claude.ai each user uploads their own copy. Only vietqr, vn-money-words and vn-tax-id bundle Python scripts that work there without npx or network; the other skills need Node.js and network (npx), so they may not work on the Claude API. Existing zips are kept without --force; --dry-run writes nothing.
MCP server
claude mcp add vn-skills -- npx -y @vn-skills/mcpThe server sends usage instructions to the client when it connects (the initialize result), so installs without the skills/ folders still get the key rules.
Setup for other clients is in MCP client setup. Or in any MCP client config:
{ "mcpServers": { "vn-skills": { "command": "npx", "args": ["-y", "@vn-skills/mcp"] } } }The server exposes 41 tools, grouped by skill. All tools are declared read-only and offline (readOnlyHint: true, openWorldHint: false).
Skill | Tools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To save context tokens, load only some groups: --toolsets <groups> (the skill names above, or all, the default) and --tools <names> (single tools added on top). Prompts and resources whose group has no enabled tool are hidden. Env fallbacks: VN_SKILLS_TOOLSETS and VN_SKILLS_TOOLS (the flag wins). Unknown names stop the server at startup. Works with stdio, --http and --rest (/openapi.json lists only enabled tools).
npx -y @vn-skills/mcp --toolsets vietqr,vn-address
npx -y @vn-skills/mcp --toolsets vn-lunar --tools vietqr_parsePrintable card (bank, account, amount in words) as SVG: vn-skills vietqr build --bank VCB --account 0011001234567 --amount 500000 --template card -o card.svg
Shop logo in the middle of the QR (PNG, needs -o): vn-skills vietqr build --bank VCB --account 0011001234567 --amount 500000 --logo logo.png -o qr.png
MCP Apps hosts (Claude, ChatGPT, VS Code, …) show VietQR results (built with image: true) as an inline VietQR card with bank, account, amount and copy buttons; other clients see the usual JSON and image.
When a client declares the MCP elicitation capability, the address converter asks the user to pick the new ward if the old ward was split, and reports chosenBy (user or default).
Custom banks: pass --banks <file.json> (a JSON array of Bank entries) to vn-skills-mcp (stdio or --http), or to vn-skills vietqr build|parse|decode|banks, to add or override banks at runtime; in core use registerBanks() / resetBanks() / listBanks(). vn-skills does not verify user-supplied entries.
Prompts
The server also offers prompt templates, shown as / commands in clients that support MCP prompts: tao-vietqr, doi-dia-chi-moi, kiem-tra-mst, doc-cccd, so-tien-bang-chu, ngay-lam-viec, doi-am-duong, kiem-tra-hoa-don.
Resources
Read-only data that clients can attach without a tool call (all application/json):
MCP client setup
Requires Node.js 22+. Each client has its own file and shape; check the linked docs for the exact location.
claude mcp add vn-skills -- npx -y @vn-skills/mcpClaude Desktop — claude_desktop_config.json:
{ "mcpServers": { "vn-skills": { "command": "npx", "args": ["-y", "@vn-skills/mcp"] } } }Cursor — .cursor/mcp.json (project) or ~/.cursor/mcp.json (global), same mcpServers shape:
{ "mcpServers": { "vn-skills": { "command": "npx", "args": ["-y", "@vn-skills/mcp"] } } }VS Code — .vscode/mcp.json (top-level servers, not mcpServers):
{
"servers": {
"vn-skills": { "type": "stdio", "command": "npx", "args": ["-y", "@vn-skills/mcp"] }
}
}Codex — ~/.codex/config.toml:
[mcp_servers.vn-skills]
command = "npx"
args = ["-y", "@vn-skills/mcp"]Docker
Build the image from this repository (the server is offline and needs no env vars):
docker build -t vn-skills-mcp .Then point your client at it (it runs docker run -i --rm vn-skills-mcp):
{
"mcpServers": {
"vn-skills": { "command": "docker", "args": ["run", "-i", "--rm", "vn-skills-mcp"] }
}
}With Docker, pass the env vars: docker run -i --rm -e VN_SKILLS_TOOLSETS=vietqr,vn-address vn-skills-mcp.
Other clients: use the generic mcpServers block above. AI agents (e.g. Cline) can follow llms-install.md.
HTTP mode
For a shared or remote server, run the opt-in Streamable HTTP transport (stateless, POST /mcp):
npx -y @vn-skills/mcp --http --port 3000 # http://127.0.0.1:3000/mcpIt binds to 127.0.0.1 by default; use --host 0.0.0.0 to expose it (e.g. docker run -p 3000:3000 vn-skills-mcp --http --host 0.0.0.0). Requests with a non-localhost Origin header get 403 unless you pass --allow-origin <origin> (repeatable). Without --http the server uses stdio.
REST / GPT Actions: add --rest (ignored without --http) to also serve GET /openapi.json (an OpenAPI 3.1.0 document built from the tool list) and POST /tools/{name} (JSON body in, the tool's JSON result out; 400 with { "ok": false, ... } on tool errors, invalid JSON or invalid input, 404 for an unknown tool, errors use { "ok": false, "error": { "code", "message" } }). vietqr_decode takes either path (a file on the server) or data (base64 PNG or a data:image/png;base64, URL, max 5 MB decoded and 20 megapixels), so remote clients can send the image itself. Image content is not returned. Use --public-url https://your.host so servers[0].url points at your public HTTPS URL. For Power Automate / Power Apps custom connectors, GET /swagger.json serves a Swagger 2.0 document; they need a public HTTPS URL (e.g. via --public-url). To use it as a GPT Action, in the GPT editor choose Actions → Import from URL and enter https://your.host/openapi.json.
Or deploy it to a public HTTPS URL; add the resulting https://<name>.workers.dev/mcp to any client that supports Streamable HTTP.
Library
import {
buildVietQR,
convertAddress,
validateTaxId,
moneyToWords,
lunarInfo,
computeTotals,
maskVndInput,
} from '@vn-skills/core';
buildVietQR({ bank: 'VCB', account: '0011001234567', amount: 500000, note: 'don 123' }).payload;
convertAddress('12 Nguyễn Huệ, P. Bến Nghé, Q.1, TP.HCM').new.formatted; // "12 Nguyễn Huệ, Phường Sài Gòn, Thành phố Hồ Chí Minh"
validateTaxId('0100233488-001').kind; // "branch"
moneyToWords(1_200_000).words; // "một triệu hai trăm nghìn đồng"
lunarInfo(29, 1, 2025).text; // "Mùng 1 tháng Giêng năm Ất Tỵ"
maskVndInput('1234', 4); // { text: "1.234", caret: 5, value: 1234, digits: "1234" } — format VND while typingEvery function returns { ok: true, ... } or { ok: false, error: { code, message, hint } } — no exceptions for bad input.
Standard Schema validators
@vn-skills/core/schema exports vnPhone(), vnTaxId() and vnCitizenId() as Standard Schema v1 validators, so Standard Schema consumers such as react-hook-form's resolver accept them without an adapter.
import { vnPhone, vnTaxId, vnCitizenId } from '@vn-skills/core/schema';
vnPhone()['~standard'].validate('0912345678'); // { value: { e164: '+84912345678', ... } }
vnTaxId()['~standard'].validate('0100233480'); // { issues: [{ message, code: 'INVALID_CHECKSUM' }] }
// e.g. react-hook-form
import { standardSchemaResolver } from '@hookform/resolvers/standard-schema';
const resolver = standardSchemaResolver(vnCitizenId());Google Sheets
packages/sheets (private, not on npm) builds Apps Script custom functions from @vn-skills/core:
pnpm --filter ./packages/sheets build writes packages/sheets/dist/vn-skills.gs, vn-skills-lite.gs and appsscript.json.
In a Google Sheet open Extensions → Apps Script and paste the contents of one
.gsfile.Set the time zone to
Asia/Ho_Chi_Minh(Project Settings, or use thetimeZoneinappsscript.json).Save and use the functions in cells. Each accepts one value or a range and returns the same shape; a bad cell returns the error text.
Function | Example |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bundle sizes (as measured by the build): vn-skills.gs ≈ 2533 KiB (includes the address data and VN_CCCD), vn-skills-lite.gs ≈ 49 KiB (no address data or address functions). If the full bundle is too large for your project, use the lite bundle.
Excel
packages/excel (private, not on npm) builds an Excel custom-functions add-in from the same wrappers as Google Sheets:
pnpm --filter ./packages/excel build writes packages/excel/dist/functions.js, functions.json, functions.html and manifest.xml.
Host
dist/over HTTPS (the manifest points tohttps://localhost:3000; setVN_EXCEL_BASE_URLbefore the build to use another base URL).Sideload
dist/manifest.xmlas described in Microsoft's sideloading docs.Use the functions in cells. Each accepts one value or a range and returns the same shape; a bad cell returns the error text. Dates may be date cells (serial numbers) or
dd/mm/yyyytext.
Function | Example |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bundle size (as measured by the build): functions.js ≈ 2531 KiB, including the address data, so VN.DIA_CHI_MOI is included.
Development
pnpm install && pnpm build && pnpm test
pnpm build-data # refresh bundled datasets from pinned upstream commits (network)Data sources, licenses and dates are listed in packages/core/data/SOURCES.md. See CONTRIBUTING.md.
Roadmap
Next up: a Python port and real e-invoice sandbox adapters. Full list with acceptance criteria: ROADMAP.md.
Community
Contributing · Governance · Code of Conduct · Security · Name & brand policy · Sponsor
Disclaimer
This project provides technical tooling only. It is not tax, legal or accounting advice, does not query or scrape any government system, and does not guarantee that a tax ID is registered or that an address is accepted by a carrier. Verify with the competent authority where it matters.
VietQR and NAPAS are trademarks of the National Payment Corporation of Vietnam (NAPAS); bank names belong to their owners. vn-skills is not affiliated with, endorsed by or certified by NAPAS, any bank or any Vietnamese authority.
License
MIT. Bundled data is derived from MIT-licensed community datasets (see SOURCES.md and their licences in THIRD_PARTY_NOTICES.md); the lunar calendar is an independent implementation of the formulas in Jean Meeus, Astronomical Algorithms.
Available Tools
40 toolsvietqr_banksSearch banksARead-onlyIdempotent
Search the NAPAS bank list by BIN, code, short name, full name or SWIFT/BIC code. Empty query lists all banks.
Inputs: query.
vietqr_buildBuild VietQRARead-onlyIdempotent
Create a VietQR (NAPAS 247) bank-transfer QR payload. Returns the EMVCo string, CRC and optionally a PNG image. Bank accepts BIN (970436), code (VCB) or name (Vietcombank). Amount is integer VND; note is sanitized (no diacritics, max 25 chars).
Inputs: bank (required), account (required), note, image, +2 more.
vietqr_decodeDecode VietQR imageARead-onlyIdempotent
Read the QR code in a PNG image file and decode it like vietqr_parse: bank, account, amount, note, CRC validity. Returns READ_ERROR for an unreadable/non-PNG file and NO_QR when no QR code is found.
Inputs: path (required).
vietqr_parseParse VietQRARead-onlyIdempotent
Decode a VietQR / EMVCo QR payload string: bank, account, amount, note, and whether the CRC is valid.
Inputs: payload (required).
vn_address_convertConvert old address to new (2025)ARead-onlyIdempotent
Convert a pre-July-2025 Vietnamese address (63 provinces, districts, wards) into the new 2-level structure (34 provinces, wards). Returns the new ward/province, mapping type (unchanged/merged/divided) and all candidates when the old ward was split. When the client supports elicitation, the server may ask the user to pick the new ward for a split old ward (chosenBy: user|default).
Inputs: text, ward, street, district, +1 more.
vn_address_convert_batchConvert many old addresses to new (2025)ARead-onlyIdempotent
Convert up to 1000 pre-July-2025 Vietnamese free-text addresses (63 provinces, districts, wards) into the new 2-level structure (34 provinces, wards) in one call. Returns per-row results plus a summary of converted and failed rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false with an error code) and are counted in summary.failed.
Inputs: addresses (required).
vn_address_historyFormer wards of a current wardARead-onlyIdempotent
List the pre-01/07/2025 wards (with district and province) that became a current ward, by ward code or name.
Inputs: ward (required), province.
vn_address_parseParse Vietnamese addressARead-onlyIdempotent
Parse a free-text Vietnamese address into province / ward / street using the post-01/07/2025 catalogue (34 provinces, no districts). Handles missing diacritics and abbreviations (TP.HCM, Q.1, P. Bến Nghé). Set mode "legacy" for pre-2025 addresses with districts.
Inputs: text (required), mode.
vn_address_provinceLook up a provinceARead-onlyIdempotent
Look up one current province by name, alias (e.g. "TP.HCM") or 2-digit code.
Inputs: query (required).
vn_address_provincesList provincesARead-onlyIdempotent
List the 34 current Vietnamese provinces (since 01/07/2025) with ward counts.
Inputs: no named parameters.
vn_address_search_wardsSearch wardsBRead-onlyIdempotent
Find current (post-2025) wards by name, optionally within a province.
Inputs: query (required), limit, province.
vn_einvoice_exampleExample e-invoiceARead-onlyIdempotent
Return a valid example invoice object to start from.
Inputs: no named parameters.
vn_einvoice_mock_issueIssue invoice (mock)ARead-onlyIdempotent
Issue an invoice through the in-memory MOCK provider (no real API, nothing persisted). Useful for testing integrations before wiring MISA/Viettel/VNPT sandbox adapters.
Inputs: invoice (required).
vn_einvoice_totalsCompute e-invoice totalsBRead-onlyIdempotent
Validate an invoice and compute line amounts, VAT per rate, grand total and the total in Vietnamese words.
Inputs: invoice (required), thousand.
vn_einvoice_validateValidate e-invoiceARead-onlyIdempotent
Validate an e-invoice (hóa đơn điện tử) object against the mandatory contents of Decree 123/2020 (series, date, seller tax ID, lines, VAT rates 0/5/8/10/KCT/KKKNT).
Inputs: invoice (required).
vn_einvoice_vatApply or split VATARead-onlyIdempotent
Apply VAT to a net amount, or with inclusive=true split a VAT-inclusive price (giá đã gồm VAT) into net (tiền hàng) and VAT. Rates 0/5/8/10/KCT/KKKNT. Net is rounded half away from zero and the leftover đồng goes to VAT (library convention).
Inputs: rate (required), amount (required), inclusive.
vn_holidays_add_working_daysAdd Vietnamese working daysBRead-onlyIdempotent
The date n working days after (or before, n < 0) a date, skipping weekends, holidays and nghỉ bù; the start date is not counted. certain: false if unannounced days were crossed.
Inputs: n (required), day (required), year (required), month (required).
vn_holidays_count_working_daysCount Vietnamese working daysARead-onlyIdempotent
Number of working days in (from, to]: the start date is not counted, the end date is; negative if to is before from. Skips weekends, holidays and nghỉ bù. certain: false if unannounced Tết or National Day days were crossed.
Inputs: to (required), from (required).
vn_holidays_icsExport Vietnam days off as an iCalendar fileARead-onlyIdempotent
Export the official days off of a year (2023-2199) as iCalendar (RFC 5545) text for Google Calendar, Outlook or Apple Calendar: holidays, nghỉ bù, swapped days and (optionally) working Saturdays. Unannounced years omit pending days and list them in warnings.
Inputs: year (required), includeWorkingSaturdays.
vn_holidays_is_working_dayIs it a working day in Vietnam?BRead-onlyIdempotent
Whether a date is a working day for public-sector staff (Monday-Friday minus holidays and nghỉ bù, plus swapped Saturdays). certain: false when the year is not announced and the date may still become a Tết or National Day day off.
Inputs: day (required), year (required), month (required).
vn_holidays_yearVietnam official days off for a yearARead-onlyIdempotent
Official days off for public-sector staff in a year (2023-2199): Tết Dương lịch, Tết Âm lịch, Giỗ Tổ Hùng Vương, 30/4, 1/5, Quốc khánh, Ngày Văn hóa Việt Nam 24/11 (from 2026), with nghỉ bù and swapped working Saturdays from the Government notice. Unannounced years return the statutory days, announced: false and the pending Tết / National Day days.
Inputs: year (required).
vn_id_parseParse citizen IDARead-onlyIdempotent
Offline validation and decoding of a 12-digit CCCD (province, sex, birth year; legacy province mapped to 2025 province) or format check of a 9-digit CMND. Format validity does not prove the identity exists.
Inputs: id (required).
vn_id_parse_batchParse many citizen IDsARead-onlyIdempotent
Check up to 1000 Vietnamese CCCD/CMND numbers in one call. Returns per-row results (same fields as the single-value tool) plus a summary of total, valid and invalid rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false, error code EMPTY) and are counted in summary.invalid.
Inputs: ids (required).
vn_lunar_canchiCan chi of a yearBRead-onlyIdempotent
Can chi (e.g. Giáp Thìn) of a lunar year, with its leap month if any.
Inputs: year (required).
vn_lunar_from_solarSolar to lunar dateARead-onlyIdempotent
Convert a Gregorian date (dd/mm/yyyy or yyyy-mm-dd) to the Vietnamese lunar date with can chi (e.g. Ất Tỵ), zodiac, leap-month flag and solar term. Optional hour (0-23) adds hourCanChi, hourBranch, hourRange (giờ sinh).
Inputs: date (required), hour.
vn_lunar_holidaysVietnamese holidaysARead-onlyIdempotent
List Vietnamese holidays for a solar year (Tết, Giỗ Tổ Hùng Vương, 30/4, 1/5, 2/9, Trung thu...). Lunar holidays are resolved to solar dates. publicOnly limits to official days off.
Inputs: year (required), publicOnly.
vn_lunar_monthLunar month calendarBRead-onlyIdempotent
Calendar of a Gregorian month: each day with lunar date (leap flag, mùng 1, rằm), day can chi, solar term starts and holidays/days off.
Inputs: year (required), month (required).
vn_lunar_parse_dateParse Vietnamese date phraseARead-onlyIdempotent
Turn a Vietnamese date phrase into a solar date: lunar ("rằm tháng Giêng năm sau", "mùng 1 Tết", "23 tháng Chạp"), relative ("ngày mai", "3 ngày nữa", "thứ Sáu tuần sau") or Gregorian. ref (yyyy-mm-dd) defaults to today in UTC+7.
Inputs: text (required), ref.
vn_lunar_tetDate of TếtARead-onlyIdempotent
Solar date of Tết (lunar new year) for a year, with can chi and leap month.
Inputs: year (required).
vn_lunar_to_solarLunar to solar dateARead-onlyIdempotent
Convert a Vietnamese lunar date to the Gregorian date. Set leap=true for the leap (nhuận) month.
Inputs: day (required), year (required), month (required), leap.
vn_money_parseVietnamese number words to digitsARead-onlyIdempotent
Parse an amount written in Vietnamese words back to digits, e.g. "một triệu hai trăm nghìn đồng" -> "1200000". Returns value (digit string), negative, unit, chan.
Inputs: text (required).
vn_money_to_wordsAmount in Vietnamese wordsARead-onlyIdempotent
Read an integer VND amount in Vietnamese words, e.g. 1200000 -> "một triệu hai trăm nghìn đồng". Also reads plain numbers without a unit with plain: true, e.g. 30 -> "ba mươi". Options: thousand "nghìn"/"ngàn", odd "lẻ"/"linh", capitalize, unit.
Inputs: amount (required), odd, chan, unit, +3 more.
vn_nameVietnamese name toolsARead-onlyIdempotent
Split a Vietnamese full name into họ / tên đệm / tên (handles Tôn Thất, Nguyễn Phúc), plus slug and initials; or sort a list of names by tên with Vietnamese collation.
Inputs: name, ascii, names.
vn_number_formatVietnamese number formatting and parsingARead-onlyIdempotent
Format numbers/VND/dates the Vietnamese way (1.234.567,89; 1.200.000 ₫; 1,2 triệu; dd/MM/yyyy) or parse typed amounts ("1tr2", "500k", "1,5 tỷ"; "1.500" = 1500).
Inputs: mode (required), value (required).
vn_phoneVietnamese phone numberARead-onlyIdempotent
Normalise a Vietnamese phone number (0/84/+84, old 11-digit 01xx mobile prefixes) to national and E.164 forms and classify it: mobile (original carrier) or landline (area code, province). Offline.
Inputs: phone (required).
vn_phone_parse_batchParse many phone numbersARead-onlyIdempotent
Check up to 1000 Vietnamese phone numbers in one call. Returns per-row results (same fields as the single-value tool) plus a summary of total, valid and invalid rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false, error code EMPTY) and are counted in summary.invalid.
Inputs: phones (required).
vn_tax_id_check_digitTax ID check digitARead-onlyIdempotent
Compute the 10th check digit of a Vietnamese tax ID from its first 9 digits.
Inputs: first9 (required).
vn_tax_id_validateValidate tax IDARead-onlyIdempotent
Offline validation of a Vietnamese tax ID (mã số thuế): 10 digits (enterprise), 13 digits (branch, e.g. 0100233488-001) with check-digit verification, or 12-digit personal ID (format only). Does not query the tax authority.
Inputs: taxId (required).
vn_tax_id_validate_batchValidate many tax IDsARead-onlyIdempotent
Check up to 1000 Vietnamese tax IDs (mã số thuế) in one call. Returns per-row results (same fields as the single-value tool) plus a summary of total, valid and invalid rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false, error code EMPTY) and are counted in summary.invalid.
Inputs: taxIds (required).
vn_text_speech_normalizeRewrite text as spoken Vietnamese for TTSARead-onlyIdempotent
Rewrite numbers, VND amounts (1.250.000đ, 500k), percentages, phone numbers and dd/mm/yyyy dates in text as spoken Vietnamese for text-to-speech. Decimals and partial dates are left unchanged and listed in skipped. Returns text, changes, skipped.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Most tools have clearly distinct purposes across domains, such as lunar conversion directions, address parsing versus legacy conversion, and VietQR build/parse/decode. Some clusters require reading descriptions to separate them, especially vn_lunar_holidays vs vn_holidays_year vs vn_holidays_ics and single versus batch validators, but the boundaries are generally workable.
All names are snake_case and mostly domain-prefixed, but conventions are mixed: some use vn_<domain>_<action>, some use vietqr_*, and several tools are noun-like without a clear action (vn_phone, vn_name, vn_number_format). Batch suffixes are consistent, but overall the naming is readable rather than fully predictable.
With 40 tools, the server is very large for a single MCP surface and imposes a heavy tool-selection burden. The breadth across calendar, address, payments, e-invoice, validation, and text utilities explains the count, but it would be better split into domain-focused servers or groups.
Coverage is broad and mostly complete across the advertised Vietnamese utility domains: lunar/calendar conversion, holidays and working days, address parsing/conversion, VietQR, e-invoice validation/calculation, and common validators. Minor gaps remain, such as e-invoice issuance being mock-only and no obvious direct current-ward lookup by code, but most likely workflows are covered.
Maintenance
Related MCP Connectors
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Japan data tools for AI agents: calendar (rokuyo), address, name splitting, corporate number lookup
China-focused validation tools: ID card, bank card, phone, plate, USCC, VIN, lunar calendar & more
15 deterministic validation tools for AI agents: tax IDs (15 countries), VAT, IBAN, LEI, HS codes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to convert old Vietnamese addresses (63 provinces with district level) into post-2025 addresses (34 provinces, ward/province only), returning new ward codes, postal codes, confidence and all candidates when a unit was split or ambiguous. Also exposes tools to parse free-form addresses, search old/new administrative units, list provinces and wards, and trace which old units formed a new ward.MIT
- AlicenseAqualityCmaintenanceEnables offline, fully local lookups and validations tuned for Chinese development work: statutory holiday and adjusted-workday checks, workday arithmetic, ID card/USCC/mobile format validation, Chinese-to-pinyin conversion, lunar-solar date conversion, and administrative region queries. It also provides searchable summaries of common uni-app, mini program, Element Plus, and Vant APIs, so assistants can answer these questions without any network calls or third-party services.131MIT
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to Vietnam's culture map public data, letting agents search and retrieve cultural events, festivals, exhibitions, performances, sports and community activities, deals, places and provinces, including geographic proximity searches. Ships ten schema-validated tools backed by a locally cached snapshot, so results stay fast and keep every record's source link.24 npmMIT
- AlicenseAqualityBmaintenanceEnables AI assistants to normalize and convert old three-level Vietnamese addresses into the current 34-province, district-free structure using offline bundled data, with each response reporting confidence. Lookups can search both legacy and current units, and divided wards are flagged with alternatives rather than silently guessed.4MIT