PostCode Check
Validate and normalize postal codes offline for 252 countries and territories. Format check only.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"postcodecheck": {
"url": "https://postcodecheck.mike-tusa.workers.dev/mcp"
}
}
}Puntos de conexión remotos
https://postcodecheck.mike-tusa.workers.dev/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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.
Esquema de entrada
{
"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
}Esquema de salida
{
"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.
Esquema de entrada
{
"type": "object",
"properties": {},
"additionalProperties": false
}Esquema de salida
{
"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"
]
}Comunidad
Evidencia