SweKit - Swedish validators
Swedish personnummer/orgnr/bankgiro/OCR validation, kontonummer to IBAN, bankdagar.
Should I use this
Quality & Safety
Findings (1)
- LOWin swedish_date_info
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"swekit": {
"url": "https://swekit-api.erikssonanton2001.workers.dev/mcp"
}
}
}Remote endpoints
https://swekit-api.erikssonanton2001.workers.dev/mcpstreamable-httpWhat it can do
Tool inventory
Tools (13)
π’validate_personnummer(value)
Validate a Swedish personnummer or samordningsnummer (format, Luhn checksum, birth date, age, gender). Checks format only; does not prove the person exists.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 811218-9876 or 198112189876"
}
},
"required": [
"value"
]
}π’validate_orgnr(value)
Validate a Swedish organisationsnummer (or SE...01 VAT number); returns legal form hint and the derived Swedish VAT number.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 556036-0793"
}
},
"required": [
"value"
]
}π’validate_bankgiro(value)
Validate and format a Swedish bankgiro number.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 5402-9681"
}
},
"required": [
"value"
]
}π’validate_plusgiro(value)
Validate and format a Swedish plusgiro number.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 123456-6"
}
},
"required": [
"value"
]
}π’validate_ocr(value)
Validate a Swedish OCR payment reference (Luhn check digit, optional length digit).
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "OCR digits"
}
},
"required": [
"value"
]
}π’generate_ocr(base, length_digit)
Generate a Swedish OCR reference (check digit, optional length digit) from a base number such as an invoice number.
Input Schema
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "digits"
},
"length_digit": {
"type": "string",
"description": "\"true\" to add length digit",
"enum": [
"true",
"false"
]
}
},
"required": [
"base"
]
}π’swedish_account_to_iban(number, clearing, account)
Validate 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.
Input Schema
{
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "full account digits, clearing first (optional if clearing+account given)"
},
"clearing": {
"type": "string",
"description": "clearing number (4 digits; 5 for Swedbank 8xxx)"
},
"account": {
"type": "string",
"description": "account number without clearing"
}
}
}π’validate_iban(value)
Validate any IBAN (ISO 13616 mod-97 + country length) and identify the bank for Swedish IBANs.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "IBAN, spaces allowed"
}
},
"required": [
"value"
]
}π’lookup_clearing_number(value)
Look up bank name, BIC, IBAN id and account type for a Swedish clearing number.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "first 4 digits of the account number"
}
},
"required": [
"value"
]
}π’swedish_holidays(year)
List Swedish public holidays, eves and observances for a year (computed).
Input Schema
{
"type": "object",
"properties": {
"year": {
"type": "string",
"description": "1900-2200"
}
}
}π’swedish_date_info(date, mode)
Weekday (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.
Input Schema
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD"
},
"mode": {
"type": "string",
"description": "bank or work",
"enum": [
"bank",
"work"
]
}
},
"required": [
"date"
]
}π’add_business_days(date, days, mode)
Add (or subtract) business days to a date using Swedish holidays (e.g. payment due dates).
Input Schema
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD"
},
"days": {
"type": "string",
"description": "integer, may be negative"
},
"mode": {
"type": "string",
"description": "bank or work",
"enum": [
"bank",
"work"
]
}
},
"required": [
"date",
"days"
]
}π’count_business_days(from, to, mode)
Count Swedish business days after "from" up to and including "to".
Input Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "YYYY-MM-DD"
},
"to": {
"type": "string",
"description": "YYYY-MM-DD"
},
"mode": {
"type": "string",
"description": "bank or work",
"enum": [
"bank",
"work"
]
}
},
"required": [
"from",
"to"
]
}Community
Evidence