Veridigit

io.github.qinisolabs由 GitHub 账号 qinisolabs 发布v0.1.0更新于 Oct 24, 2026

Verified IBAN, card, ISBN-13 & VIN validation for AI agents — checksums, not guesses.

已验证STDIO仅桌面金融开发者工具

概览

AI 生成的概览

让助手用真实校验和算法验证 IBAN、银行卡、ISBN-13 和 VIN 标识符,而不是靠猜测。

可以做什么
提供四个工具——validate_iban、validate_card、validate_isbn 和 validate_vin——运行真实的校验和算法(ISO 7064 mod-97、Luhn/ISO 7812、ISBN-13 mod-10、ISO 3779 VIN),并返回包含解析字段和明确错误原因的结构化结果。银行卡验证还会根据 BIN 识别品牌并检查长度规则;IBAN 验证覆盖 75 个以上国家的国家特定长度。它同时以带类型的 TypeScript 库形式发布,可直接导入。
适用场景
当助手处理结构化标识符且不能接受格式错误的值时适用——在据此行动前检查 IBAN、卡号、ISBN-13 或 VIN。它用确定性的答案取代模型自信但错误的猜测。
运行要求
作为 stdio MCP 服务器在本地运行,通常用 npx 启动,因此需要 Node.js 和 npm。未声明任何账户、API 密钥、环境变量或请求头,且不进行网络调用。
安装前请注意
它只验证结构:格式和校验和。它不确认账户、银行卡、图书或车辆是否真实存在、是否有效或属于谁。不要求任何凭据,也不向第三方发送数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Veridigit,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

veridigit

Verified validation of structured identifiers for AI agents — checksums, not guesses.

LLMs cheerfully accept malformed IBANs, mistype card check digits, invent ISBN and VIN check digits, and guess a card's brand wrong. veridigit gives an agent a deterministic, authoritative answer instead: it runs the real checksum algorithms and returns structured results with the parsed parts and clear error reasons.

It ships as both an MCP server (for agents to call live) and a typed TypeScript library (for apps to import).

Supported in v1:

  • IBAN — ISO 7064 mod-97 checksum + country-specific length, for 75+ countries.
  • Payment cards — Luhn (ISO/IEC 7812) checksum, brand detection from the BIN (Visa, Mastercard, Amex, Discover, Diners, JCB, UnionPay), and length rules.
  • ISBN-13 — 978/979 prefix and mod-10 weighted check digit.
  • VIN — ISO 3779 alphabet (no I/O/Q) and the position-9 transliteration check digit.

Why

On 32 randomly generated, non-memorised identifiers, a frontier model with no tool got the check digit wrong 91% of the time — IBAN 100%, VIN 100%, ISBN-13 88%, card/Luhn 75% — versus 0% for veridigit. The failure is invisible: the model returns a confident, well-formatted answer that happens to be wrong. veridigit replaces the guess with the algorithm.

Benchmark and reproducible harness: https://qinisolabs.github.io/veridigit

The 91% figure is one frontier model, tool-free, at temperature 0. Run it on any model yourself with the harness in bench/.

Use as an MCP server

jsonc
// in your MCP client config{  "mcpServers": {    "veridigit": { "command": "npx", "args": ["-y", "veridigit"] }  }}

Tools exposed: validate_iban, validate_card, validate_isbn, validate_vin.

Use as a library

bash
npm install veridigit
ts
import { validateIban, validateCard, validateIsbn13, validateVin } from "veridigit";
validateIban("GB82 WEST 1234 5698 7654 32");// { valid: true, countryCode: "GB", country: "United Kingdom", checkDigits: "82", ... }
validateCard("4111 1111 1111 1111");// { valid: true, luhnValid: true, brand: "Visa", lengthValid: true, ... }
validateIsbn13("978-0-306-40615-7"); // { valid: true, type: "ISBN-13", checkDigit: "7", ... }validateVin("1HGCM82633A004352");    // { valid: true, checkDigit: "3", ... }

Helper exports are also available: ibanCheckDigits, luhnValid, luhnCheckDigit, detectBrand, isbn13CheckDigit, vinCheckDigit, supportedIbanCountries.

Scope

veridigit validates the structure of an identifier — its format and checksum. It does not confirm that a bank account, card, book or vehicle actually exists, is active, or belongs to anyone. It performs no network calls.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # parity/known-answer tests via tsx

The curated reference data (IBAN country specs, card BIN ranges) lives in data/.

License

Apache-2.0

来源:README.md,提交 bc7fedd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分