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 分