PostCode Check

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

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
65%
命名の品質
100%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~630トークン数(ツール定義)
~2.2 KB一般的なレスポンスサイズ
注意への影響は最小限(128k コンテキストの 0.49%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `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 件