PostCode Check
Validate and normalize postal codes offline for 252 countries and territories. Format check only.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"postcodecheck": {
"url": "https://postcodecheck.mike-tusa.workers.dev/mcp"
}
}
}遠端端點
https://postcodecheck.mike-tusa.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(2)
🟢validate_postcode(country, code)
Check whether a postal code has a valid format for a country and return its normalized form (uppercase, official space or hyphen), a format example and the country name. Example: country "NL", code "1234ab" → valid true, normalized "1234 AB". Format check only (Google libaddressinput patterns): it does not confirm the code exists or is deliverable. Countries without postal codes return valid false with reason "no_postal_codes". Read-only. Same engine as GET /v1/validate.
輸入結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string",
"minLength": 2,
"maxLength": 2,
"description": "ISO 3166-1 alpha-2 country code, e.g. \"US\", \"GB\", \"DE\" (case-insensitive; \"UK\" accepted)."
},
"code": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "The postal code to check, e.g. \"SW1A 1AA\", \"94103\", \"10115\"."
}
},
"required": [
"country",
"code"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"valid": {
"type": "boolean"
},
"normalized": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"format_example": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"country": {
"type": "string"
},
"country_name": {
"type": "string"
},
"input": {
"type": "string"
},
"has_postal_codes": {
"type": "boolean"
},
"zip_name": {
"type": "string"
},
"reason": {
"type": "string",
"enum": [
"format_mismatch",
"no_postal_codes",
"empty"
]
},
"message": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"valid",
"normalized",
"format_example",
"country_name",
"version"
]
}🟢list_countries
List every supported country and territory with its ISO code, English name, whether it uses postal codes, a format example and the local name for the code (zip, eircode, PIN…). Read-only. Same data as GET /v1/countries.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"with_postal_codes": {
"type": "integer"
},
"countries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"has_postal_codes": {
"type": "boolean"
},
"format_example": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"zip_name": {
"type": "string"
}
},
"required": [
"code",
"name",
"has_postal_codes"
]
}
},
"version": {
"type": "string"
}
},
"required": [
"count",
"countries",
"version"
]
}社群
證據