SweKit - Swedish validators
Swedish personnummer/orgnr/bankgiro/OCR validation, kontonummer to IBAN, bankdagar.
我该使用它吗
质量与安全性
发现(1)
- LOW在 swedish_date_info 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"swekit": {
"url": "https://swekit-api.zenith-ops.workers.dev/mcp"
}
}
}远程端点
https://swekit-api.zenith-ops.workers.dev/mcpstreamable-http它能做什么
工具清单
工具(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.
输入模式
{
"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.
输入模式
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 556036-0793"
}
},
"required": [
"value"
]
}🟢validate_bankgiro(value)
Validate and format a Swedish bankgiro number.
输入模式
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "e.g. 5402-9681"
}
},
"required": [
"value"
]
}🟢validate_plusgiro(value)
Validate and format a Swedish plusgiro number.
输入模式
{
"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).
输入模式
{
"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.
输入模式
{
"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.
输入模式
{
"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.
输入模式
{
"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.
输入模式
{
"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).
输入模式
{
"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.
输入模式
{
"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).
输入模式
{
"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".
输入模式
{
"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"
]
}社区
证据