VIES VAT Validator 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., "@VIES VAT Validator MCPvalidate VAT number FR123456789"
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.
VIES VAT Validator MCP 🇪🇺
VIES VAT Validator MCP validates EU VAT numbers through the official free VIES SOAP API, wrapped with a local format pre-check + free TTL cache and bilingual (中文 / English) error codes. A "regulatory must-have" compliance tool for cross-border e-commerce and trade sellers.
It lives at | Link |
MCP endpoint |
|
Apify Store | |
Source |
English
Why this exists
Regulatory must-have — EU B2B transactions require verifying the counterparty's VAT number (reverse charge / compliance proof).
VIES is slow and flaky — the official SOAP endpoint rate-limits and goes down often, so a cache + graceful degradation are mandatory.
Zero cold-start cost — a free official data source wrapped with a thin layer + bilingual, explainable output, sold per-event.
Related MCP server: goodvat
What you get
Capability | Notes | Pricing |
| free local format check, then optional live VIES verification; structured + bilingual errors | $0.0005 / event |
| pure local regex format check — no network, free | free |
| supported countries (bilingual) | free |
| full bilingual error-code table | free |
resources |
| free |
prompts |
| free |
Covers EU 27 + GB + XI (Northern Ireland).
Quick start (local)
npm install
npm run build
npm start # stdio transport, connects to any MCP client
npm test # vitest, all green
npm run verify # generate verify-report.html with real payloadsConnect with an MCP client (stdio)
{
"mcpServers": {
"vat-validator": {
"command": "node",
"args": ["/abs/path/vies-vat-validator-mcp/dist/index.js"]
}
}
}Connect over HTTP (remote / Apify)
Point your MCP client at the Streamable HTTP endpoint:
https://neeenja--vies-vat-validator-mcp.apify.actor/mcpwith the header Authorization: Bearer <APIFY_TOKEN>.
Example calls
Format pre-check (free)
{ "name": "check_vat_format", "arguments": { "vat": "FR123456789" } }→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
Live verification (paid event)
{ "name": "validate_vat", "arguments": { "vat": "FR123456789", "useCache": true, "live": true } }→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
Error codes (excerpt)
Code | 中文 | EN |
| 格式不符 | format mismatch |
| VIES 判定无效 | VIES says invalid |
| 成员国系统不可用 | member state down |
| 超时 | timeout |
| 网络错误 | network error |
Full table via get_error_codes or vat://error-codes.
Deploy (Apify Pay-Per-Event)
npm run apify:login # complete KYC yourself first (one-time)
npm run apify:validate # validate actor.json
npm run apify:push # publish to Apify StorePricing lives in .actor/actor.json → pricingEvents: format / error / country queries are free; only mcp-validate-vat is billed.
Design red lines
No
express/soap/fast-xml-parser: the SOAP envelope is hand-built and the response parsed with namespace-agnostic regex.Never crash: VIES faults / network errors map to bilingual error codes.
Free layer (format check + cache) guarantees zero cold-start cost.
See SPEC.md for the full contract.
简体中文
为什么做这个
监管刚需 —— 欧盟 B2B 交易要求核验对方 VAT 税号(逆向征收 / 合规凭证)。
VIES 又慢又抖 —— 官方 SOAP 接口频繁限流、偶发停机,缓存 + 优雅降级是必选项。
零冷启动成本 —— 免费官方数据源,叠加一层封装 + 可解释的双语输出,按事件计费。
你能拿到什么
能力 | 说明 | 计费 |
| 先做免费本地格式校验,再按需调用欧盟官方 VIES 接口核验真实性;结构化 + 双语错误 | $0.0005 / 次 |
| 纯本地正则格式校验,零网络、零成本 | 免费 |
| 返回支持国家(中/英双语) | 免费 |
| 返回完整中英双语错误码表 | 免费 |
resources |
| 免费 |
prompts |
| 免费 |
覆盖 EU 27 + GB + XI(北爱尔兰)。
快速开始(本地)
npm install
npm run build
npm start # stdio 传输,接任意 MCP 客户端
npm test # vitest 全绿
npm run verify # 生成真实 payload 验证报告 verify-report.html与 MCP 客户端对接(stdio)
{
"mcpServers": {
"vat-validator": {
"command": "node",
"args": ["/abs/path/vies-vat-validator-mcp/dist/index.js"]
}
}
}通过 HTTP 对接(远程 / Apify)
把你的 MCP 客户端指向 Streamable HTTP 端点:
https://neeenja--vies-vat-validator-mcp.apify.actor/mcp并带上请求头 Authorization: Bearer <APIFY_TOKEN>。
调用示例
格式预校验(免费)
{ "name": "check_vat_format", "arguments": { "vat": "FR123456789" } }→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
实查(付费事件)
{ "name": "validate_vat", "arguments": { "vat": "FR123456789", "useCache": true, "live": true } }→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
错误码(节选)
代码 | 中文 | EN |
| 格式不符 | format mismatch |
| VIES 判定无效 | VIES says invalid |
| 成员国系统不可用 | member state down |
| 超时 | timeout |
| 网络错误 | network error |
完整表见 get_error_codes 或 vat://error-codes。
部署(Apify Pay-Per-Event)
npm run apify:login # 本人先完成 KYC(一次性)
npm run apify:validate # 校验 actor.json
npm run apify:push # 上架计费见 .actor/actor.json 的 pricingEvents:格式 / 错误 / 国家查询免费,仅 mcp-validate-vat 计费。
设计红线
不引入
express/soap/fast-xml-parser:SOAP 信封手写、响应用命名空间无关的正则提取。永不崩溃:VIES 故障 / 网络错误全部映射为双语错误码。
免费层(格式校验 + 缓存)保证冷启动零成本。
完整契约见 SPEC.md。
繁體中文
為什麼做這個
監管剛需 —— 歐盟 B2B 交易要求核驗對方 VAT 稅號(逆向徵收 / 合規憑證)。
VIES 又慢又抖 —— 官方 SOAP 介面頻繁限流、偶發停機,快取 + 優雅降級是必選項。
零冷啟動成本 —— 免費官方資料源,疊加一層封裝 + 可解釋的雙語輸出,按事件計費。
你能拿到什麼
能力 | 說明 | 計費 |
| 先做免費本地格式校驗,再依需求呼叫歐盟官方 VIES 介面核驗真實性;結構化 + 雙語錯誤 | $0.0005 / 次 |
| 純本地正則格式校驗,零網路、零成本 | 免費 |
| 回傳支援國家(中/英雙語) | 免費 |
| 回傳完整中英雙語錯誤碼表 | 免費 |
resources |
| 免費 |
prompts |
| 免費 |
涵蓋 EU 27 + GB + XI(北愛爾蘭)。
快速開始(本地)
npm install
npm run build
npm start # stdio 傳輸,接任意 MCP 用戶端
npm test # vitest 全綠
npm run verify # 產生真實 payload 驗證報告 verify-report.html與 MCP 用戶端對接(stdio)
{
"mcpServers": {
"vat-validator": {
"command": "node",
"args": ["/abs/path/vies-vat-validator-mcp/dist/index.js"]
}
}
}透過 HTTP 對接(遠端 / Apify)
將你的 MCP 用戶端指向 Streamable HTTP 端點:
https://neeenja--vies-vat-validator-mcp.apify.actor/mcp並帶上請求標頭 Authorization: Bearer <APIFY_TOKEN>。
呼叫範例
格式預校驗(免費)
{ "name": "check_vat_format", "arguments": { "vat": "FR123456789" } }→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
實查(付費事件)
{ "name": "validate_vat", "arguments": { "vat": "FR123456789", "useCache": true, "live": true } }→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
錯誤碼(節選)
代碼 | 中文 | EN |
| 格式不符 | format mismatch |
| VIES 判定無效 | VIES says invalid |
| 成員國系統不可用 | member state down |
| 逾時 | timeout |
| 網路錯誤 | network error |
完整表見 get_error_codes 或 vat://error-codes。
部署(Apify Pay-Per-Event)
npm run apify:login # 本人先完成 KYC(一次性)
npm run apify:validate # 校驗 actor.json
npm run apify:push # 上架計費見 .actor/actor.json 的 pricingEvents:格式 / 錯誤 / 國家查詢免費,僅 mcp-validate-vat 計費。
設計紅線
不引入
express/soap/fast-xml-parser:SOAP 信封手寫、回應用命名空間無關的正則提取。永不崩潰:VIES 故障 / 網路錯誤全部映射為雙語錯誤碼。
免費層(格式校驗 + 快取)保證冷啟動零成本。
完整契約見 SPEC.md。
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
SLA'd EU VAT validation on VIES. Honest 3-state result, never guesses. 100 free lookups.
Validate EU, UK, AU VAT numbers for AI agents. EU ViDA e-invoicing compliance.
EU/UK VAT compliance for AI agents: number validation, rate lookups, reverse-charge checks.
Commerce validators: live EU VAT (VIES), EORI, email/MX lookups; IBAN/ABA/GTIN checksums; VAT rates.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables real-time validation of EU VAT numbers using the official VIES service. Supports all 27 EU member states with automatic country code detection and provides company information for valid VAT numbers.41MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to answer tax compliance questions (VAT, sales tax, GST) and validate EU VAT numbers in real time via the VIES registry.29 npmMIT
- AlicenseNot gradedqualityCmaintenanceSLA'd EU VAT number validation for AI agents via VIES, with caching and circuit-breaking to handle flaky upstream, returning valid/invalid/unavailable responses.MIT
- AlicenseAqualityCmaintenanceValidates EU VAT IDs using VIES and Germany's BZSt with automatic failover and legally binding qualified confirmations per §18e UStG, ensuring reliability even when VIES is down.24 npmMIT