# CheckDigit > Offline format and check-digit validation for IBANs, BICs (SWIFT codes), EU VAT numbers, GTIN/EAN/UPC barcodes and ISBNs, with auto-detection. Public JSON API plus a remote MCP server for AI agents. This is a format check, not a compliance check: a valid result does not prove that an account, VAT registration, bank or product exists. Codes are checked in memory and not stored or logged. ## For AI agents - [MCP server](https://checkdigit.mike-tusa.workers.dev/mcp): remote MCP over Streamable HTTP (POST only, stateless, JSON responses). Protocol versions: 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. Tools: `validate_code` (code, type), `get_meta`. Read-only. Client config (most MCP clients accept this; some use a different format, for example VS Code uses a `servers` key): `{"mcpServers":{"checkdigit":{"type":"http","url":"https://checkdigit.mike-tusa.workers.dev/mcp"}}}` - [OpenAPI 3.1 spec](https://checkdigit.mike-tusa.workers.dev/openapi.json): machine-readable description of the JSON API - [Docs](https://checkdigit.mike-tusa.workers.dev/docs): human-readable API docs ## JSON API - `POST https://checkdigit.mike-tusa.workers.dev/v1/{type}` with JSON `{"code": "DE89370400440532013000"}`, type = iban, bic, vat, gtin, isbn, detect (recommended: keeps the code out of URLs). `GET /v1/{type}/{code}` also works but puts the code in a URL. - `POST https://checkdigit.mike-tusa.workers.dev/v1/batch` with `{"codes": [...]}`: up to 500 codes, Pro keys only (paid plans are not on sale yet). - `GET https://checkdigit.mike-tusa.workers.dev/v1/meta`: version, supported countries and formats, limits. - Results: type, input, normalized, valid, reason (when invalid), plus type-specific fields (country, formatted, check digits, ean13, isbn13 ...). - Errors: { "error": { "code", "message" } } with 400 (missing_code, input_too_long, invalid_json, code_in_url, bad_encoding, invalid_batch, empty_batch, batch_too_large), 401 (invalid_api_key, api_key_required), 403 (paid_plan_required), 404 (not_found), 405 (method_not_allowed), 413 (payload_too_large), 429 (rate_limited, daily_capacity_reached, monthly_quota_exceeded), 500 (internal_error), 503 (storage_unavailable). Max code length 64 characters; max POST body 32768 bytes. ## Limits and keys - Anonymous: about 20 checks/min per IP. API key (`Authorization: Bearer cd_live_...` or `X-Api-Key`, issued by request during early access): about 300/min; free plan 1000 calls per month. A shared daily capacity applies. The MCP endpoint uses the same keys and counters: each `validate_code` call is one check; `get_meta` and non-call messages don't count as checks, but are capped at about 120/min per IP (HTTP 429 + Retry-After). ## Optional - [Privacy](https://checkdigit.mike-tusa.workers.dev/docs#privacy): codes are not stored or logged. A salted, daily-rotating hash of the visitor IP is kept for up to 9 days to count unique visitors per day; no IP address is stored. - Contact: digitalpromohub.support@gmail.com