PostCode Check

Validate and normalize postal codes offline for 252 countries and territories. Format check only.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
65%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~630Token(工具定義)
~2.2 KB典型回應大小
極小的注意力影響(128k 上下文的 0.49%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 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"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本2 個工具