
Localecheck
io.github.qinisolabs由 GitHub 账号 qinisolabs 发布v0.1.1更新于 Oct 24, 2026
Verified locale data for AI agents: dates, phone, currency, tax, holidays, addresses (UK/US)
概览
本地 MCP 服务器,为助手提供经过核实的英国和美国地区数据:日期解析、电话校验、货币格式化、税率、节假日和地址。
- 可以做什么
- 按英美日月顺序解析日期,遇到不可能输入时给出提示而不是猜测格式。校验电话号码并解析地址,提取有效的英国邮编或美国 ZIP。按读者所在地区格式化货币金额。按日期查询增值税或美国州销售税率,判断某天是否为节假日或查找下一个节假日。
- 适用场景
- 适合助手处理英国或美国的发票、交付日期、联系方式和价格时使用,尤其是它容易误读日月顺序日期、把当前税率套用到旧单据或漏掉银行假日的情况。
- 运行要求
- 通过 stdio 在本机运行,通常用 npx 从 npm 包 localecheck 启动,因此需要 Node.js。未声明需要 API 密钥或环境变量。当前版本仅覆盖英国和美国。
安装
在 SourceWeft 中
- 打开 控制台中的 Localecheck,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
localecheck
Locale-correctness tools for AI agents. Agents are systematically wrong about
everyday non-US data — they read 03/04 as March 4 in the UK, apply today's VAT
rate to a historical invoice, format €1,234.50 for a German reader, and miss
bank holidays in delivery dates. localecheck gives them verified answers and
flags impossible inputs instead of guessing.
Coverage: UK + USA (v1), expanding. Free, no API key.
Packages
Both wrap the same authoritative libraries (libphonenumber, CLDR/Intl, date-holidays) and share the same hand-curated tax data.
What it does
parse_date · validate_phone · format_currency · tax_rate (VAT/sales-tax
by date) · is_holiday / next_holiday · parse_address
Quick start (in an AI app)
Then ask naturally — the agent picks the tool: "A UK invoice dated 1 June 2009 — what VAT rate?" → 15%.
Repo map
packages/localecheck-ts— primary TypeScript package (MCP + library)packages/localecheck-python— Python package + FastAPI REST APIeval/— benchmark harness: how often raw LLMs get this wrongbenchmark.html— shareable results page ·BUSINESS_MODEL.md— strategy ·PUBLISH.md— release steps ·LOCAL_TEST.md— test before publishing
Status & caveats
UK VAT history is reliable for the modern era (standard rate). US state sales-tax values are 2025 state base rates (local taxes add on top) — verify against an authoritative feed before live invoicing. Addresses parse + extract a valid postcode/ZIP but don't verify deliverability.
Code: Apache-2.0. Curated tax data: see BUSINESS_MODEL.md.
来源:README.md,提交 e36fdbc
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分