SweKit - Swedish validators
Measured conclusion: Deep-tested. L2 outcome: tools_ok.
Swedish personnummer/orgnr/bankgiro/OCR validation, kontonummer to IBAN, bankdagar.
| Author | dev.workers.zenith-ops.swekit-api |
|---|---|
| Access | remote |
| Publisher key required | No |
| Measured state | Deep-tested |
| L1 liveness | alive |
| L1 latency | 2305 ms |
| Last measured | 2026-10-24 |
Add to your agent
Copy this into your MCP client config:
{
"mcpServers": {
"SweKit - Swedish validators": {
"url": "https://swekit-api.zenith-ops.workers.dev/mcp",
"transport": "streamable-http"
}
}
}
Measured tools (13)
validate_personnummerread-onlyValidate a Swedish personnummer or samordningsnummer (format, Luhn checksum, birth date, age, gender). Checks format only; does not prove the person exists.
Parameters:
value(required) — string — e.g. 811218-9876 or 198112189876
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
validate_orgnrread-onlyValidate a Swedish organisationsnummer (or SE...01 VAT number); returns legal form hint and the derived Swedish VAT number.
Parameters:
value(required) — string — e.g. 556036-0793
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
validate_bankgiroread-onlyValidate and format a Swedish bankgiro number.
Parameters:
value(required) — string — e.g. 5402-9681
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
validate_plusgiroread-onlyValidate and format a Swedish plusgiro number.
Parameters:
value(required) — string — e.g. 123456-6
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
validate_ocrread-onlyValidate a Swedish OCR payment reference (Luhn check digit, optional length digit).
Parameters:
value(required) — string — OCR digits
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
generate_ocrread-onlyGenerate a Swedish OCR reference (check digit, optional length digit) from a base number such as an invoice number.
Parameters:
base(required) — string — digitslength_digit— string — "true" to add length digit
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
swedish_account_to_ibanread-onlyValidate a Swedish national bank account (clearing + account number, Bankgirot checksum rules) and convert it to IBAN using the official Bankinfrastruktur clearing table. Returns bank, BIC, account type, IBAN.
Parameters:
number— string — full account digits, clearing first (optional if clearing+account given)account— string — account number without clearingclearing— string — clearing number (4 digits; 5 for Swedbank 8xxx)
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
validate_ibanread-onlyValidate any IBAN (ISO 13616 mod-97 + country length) and identify the bank for Swedish IBANs.
Parameters:
value(required) — string — IBAN, spaces allowed
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
lookup_clearing_numberread-onlyLook up bank name, BIC, IBAN id and account type for a Swedish clearing number.
Parameters:
value(required) — string — first 4 digits of the account number
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
swedish_holidaysread-onlyList Swedish public holidays, eves and observances for a year (computed).
Parameters:
year— string — 1900-2200
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
swedish_date_inforead-onlyWeekday (sv/en), ISO week, holiday names and business-day status for a date. mode=bank treats midsommarafton, julafton and nyårsafton as non-business days.
Parameters:
date(required) — string — YYYY-MM-DDmode— string — bank or work
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
add_business_daysread-onlyAdd (or subtract) business days to a date using Swedish holidays (e.g. payment due dates).
Parameters:
date(required) — string — YYYY-MM-DDdays(required) — string — integer, may be negativemode— string — bank or work
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
count_business_daysread-onlyCount Swedish business days after "from" up to and including "to".
Parameters:
from(required) — string — YYYY-MM-DDto(required) — string — YYYY-MM-DDmode— string — bank or work
Hints: read-only yes · destructive not declared · idempotent yes · open-world no
Measured by MCPYP probing. Untested fields are omitted, never estimated. Listing is always free; MCPYP never proxies calls or stores user tokens.