
VIES VAT Validator MCP
io.github.PanStories由 GitHub 帳號 PanStories 發布v1.0.1更新於 Oct 24, 2026
Validate EU VAT numbers against the official VIES service with a local pre-check.
概覽
透過歐盟官方 VIES 服務驗證歐盟 VAT 稅號,並提供免費的本機格式預檢與中英雙語錯誤碼。
- 可以做什麼
- 在本機檢查 VAT 稅號格式,不需連網
- 呼叫歐盟官方 VIES 服務核驗稅號真實性,可選擇使用快取
- 列出支援的國家及其母語名稱與當地 VAT 稱呼
- 查詢中英雙語錯誤碼表
- 讀取內建資源與提示詞,取得 VAT 合規指引與結果說明
- 適用情境
- 適用於跨境歐盟/英國 B2B 貿易與電商情境,需要為逆向徵收或合規憑證核驗對方 VAT 稅號,並希望在實查前先做一次離線格式檢查時。
- 執行需求
- 遠端 Streamable HTTP 端點託管於 Apify,需以 Authorization Bearer 標頭攜帶 Apify 權杖;README 亦說明了從原始碼本機安裝的 Node.js 方式。實查 VIES 需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 VIES VAT Validator MCP,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.PanStories%2Fvies-vat-validator-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"vies-vat-validator": {
"type": "http",
"url": "https://neeenja--vies-vat-validator-mcp.apify.actor/mcp"
}
}
}README
VIES VAT Validator MCP 🇪🇺
[M8ven Verified] [M8ven Score]
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.
Current version: 1.0.3 · License: MIT · Trust: built read-only, no secret exfiltration, self-healing bilingual errors.
EN — Two-stage EU VAT validation: free offline format pre-check, then live VIES, with bilingual error codes. 简体中文 — 两段式欧盟 VAT 校验:本地免费格式预检 + 官方 VIES 实查,中英双语错误码。 繁體中文 — 兩段式歐盟 VAT 校驗:本地免費格式預檢 + 官方 VIES 實查,中英雙語錯誤碼。
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.
What you get
Covers EU 27 + GB + XI (Northern Ireland). Every country also carries its native name and — far more useful — the local term for the VAT number, which is what people actually search for:
叫法取当地商务常用写法;部分国家有不止一种官方接受的写法,表中列最主要的那种。 Terms follow common local business usage — some countries accept more than one form; the main one is shown.
Quick start (local)
Connect with an MCP client (stdio)
Connect over HTTP (remote / Apify)
Point your MCP client at the Streamable HTTP endpoint:
with the header Authorization: Bearer <APIFY_TOKEN>.
Example calls
Format pre-check (free)
→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
Live verification (paid event)
→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
Error codes (excerpt)
Full table via get_error_codes or vat://error-codes.
Deploy (Apify Pay-Per-Event)
Pricing 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 接口频繁限流、偶发停机,缓存 + 优雅降级是必选项。
- 零冷启动成本 —— 免费官方数据源,叠加一层封装 + 可解释的双语输出,按事件计费。
你能拿到什么
覆盖 EU 27 + GB + XI(北爱尔兰)。每个国家还带母语名,以及更实用的当地对 VAT 号的叫法——这才是当地人真正会搜的词:
叫法取当地商务常用写法;部分国家有不止一种官方接受的写法,表中列最主要的那种。 Terms follow common local business usage — some countries accept more than one form; the main one is shown.
快速开始(本地)
与 MCP 客户端对接(stdio)
通过 HTTP 对接(远程 / Apify)
把你的 MCP 客户端指向 Streamable HTTP 端点:
并带上请求头 Authorization: Bearer <APIFY_TOKEN>。
调用示例
格式预校验(免费)
→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
实查(付费事件)
→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
错误码(节选)
完整表见 get_error_codes 或 vat://error-codes。
部署(Apify Pay-Per-Event)
计费见 .actor/actor.json 的 pricingEvents:格式 / 错误 / 国家查询免费,仅 mcp-validate-vat 计费。
设计红线
- 不引入
express/soap/fast-xml-parser:SOAP 信封手写、响应用命名空间无关的正则提取。 - 永不崩溃:VIES 故障 / 网络错误全部映射为双语错误码。
- 免费层(格式校验 + 缓存)保证冷启动零成本。
完整契约见 SPEC.md。
繁體中文
為什麼做這個
- 監管剛需 —— 歐盟 B2B 交易要求核驗對方 VAT 稅號(逆向徵收 / 合規憑證)。
- VIES 又慢又抖 —— 官方 SOAP 介面頻繁限流、偶發停機,快取 + 優雅降級是必選項。
- 零冷啟動成本 —— 免費官方資料源,疊加一層封裝 + 可解釋的雙語輸出,按事件計費。
你能拿到什麼
涵蓋 EU 27 + GB + XI(北愛爾蘭)。每個國家還帶母語名,以及更實用的當地對 VAT 號的叫法——這才是當地人真正會搜的詞:
叫法取当地商务常用写法;部分国家有不止一种官方接受的写法,表中列最主要的那种。 Terms follow common local business usage — some countries accept more than one form; the main one is shown.
快速開始(本地)
與 MCP 用戶端對接(stdio)
透過 HTTP 對接(遠端 / Apify)
將你的 MCP 用戶端指向 Streamable HTTP 端點:
並帶上請求標頭 Authorization: Bearer <APIFY_TOKEN>。
呼叫範例
格式預校驗(免費)
→ { "formatValid": true, "normalized": "FR123456789", "pattern": "^([A-Z]{2})?\\d{9}$" }
實查(付費事件)
→ { "valid": true, "formatValid": true, "viesValid": true, "source": "vies", "name": "...", "address": "..." }
錯誤碼(節選)
完整表見 get_error_codes 或 vat://error-codes。
部署(Apify Pay-Per-Event)
計費見 .actor/actor.json 的 pricingEvents:格式 / 錯誤 / 國家查詢免費,僅 mcp-validate-vat 計費。
設計紅線
- 不引入
express/soap/fast-xml-parser:SOAP 信封手寫、回應用命名空間無關的正則提取。 - 永不崩潰:VIES 故障 / 網路錯誤全部映射為雙語錯誤碼。
- 免費層(格式校驗 + 快取)保證冷啟動零成本。
完整契約見 SPEC.md。
License
MIT — see LICENSE.
Privacy
Read-only and stateless — no accounts, no personal data collected. Submitted VAT numbers are forwarded to the official EU VIES service and may be held in a memory-only cache. See PRIVACY.md.
Support · 赞助 · 贊助
EN — VIES VAT Validator MCP is open source (MIT), ad-free. It is funded by the community, not by ads. If it powers your agents or workflow, please support it:
- ☕ Ko-fi (the Sponsor ❤️ button on this repo routes here): https://ko-fi.com/panstories
简体中文 — VIES VAT Validator MCP 开源(MIT)、无广告,由社区资助而非广告。若它支撑了你的智能体或工作流,欢迎赞助:点本仓库的 Sponsor 按钮(跳转 Ko-fi)或前往 https://ko-fi.com/panstories
繁體中文 — VIES VAT Validator MCP 開源(MIT)、無廣告,由社群資助而非廣告。若它支撐了你的智能體或工作流,歡迎贊助:點本倉庫的 Sponsor 按鈕(導向 Ko-fi)或前往 https://ko-fi.com/panstories
Thank you! · 谢谢 · 謝謝 💙
來源:README.md,提交 e70b23c
工具
0版本歷史
1- v1.0.1最新Oct 9, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分