Live UK postcode data for AI: look up, validate, find nearest, council, ward, constituency. Free.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Optional API key as a Bearer token (Bearer <key>) to raise rate limits. Not needed for free use.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Facts about a postcode area (e.g. "SW"), district ("SW1A") or sector ("SW1A 1"): how many postcodes, the councils, wards and constituencies it covers, its centre and places in it.
An area, district or sector.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http postcodes https://clearpostcode.co.uk/mcp
Headers
Authorization (optional, not in the config above): Optional API key as a Bearer token (Bearer <key>) to raise rate limits. Not needed for free use.Facts about a postcode area (e.g. "SW"), district ("SW1A") or sector ("SW1A 1"): how many postcodes, the councils, wards and constituencies it covers, its centre and places in it.
| Argument | Type | Description |
|---|---|---|
| code* | string | An area, district or sector. |
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "An area, district or sector."
}
},
"additionalProperties": false
}Fetch the full record for an id returned by search.
| Argument | Type | Description |
|---|---|---|
| id* | string |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"additionalProperties": false
}Finds UK cities, towns, villages and neighbourhoods by name and returns each one's postcode district, council and coordinates (OS Open Names).
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| limit | integer |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 20
}
},
"additionalProperties": false
}Everything about one UK postcode, or up to 50 at once: whether it is live or terminated, latitude and longitude, and the council, ward, parish, constituency, county, region, police force, NHS board, rural-urban class and deprivation decile it sits in. Use for any question about where a postcode is or which area it belongs to.
| Argument | Type | Description |
|---|---|---|
| fields | string | Optional comma-separated fields to keep, e.g. "location,local_authority". |
| postcode | string | A UK postcode, e.g. "SW1A 1AA" (any case, space optional). |
| postcodes | array | Up to 50 postcodes instead of one. |
{
"type": "object",
"required": [],
"properties": {
"fields": {
"type": "string",
"description": "Optional comma-separated fields to keep, e.g. \"location,local_authority\"."
},
"postcode": {
"type": "string",
"description": "A UK postcode, e.g. \"SW1A 1AA\" (any case, space optional)."
},
"postcodes": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 50,
"description": "Up to 50 postcodes instead of one."
}
},
"additionalProperties": false
}Live UK postcodes nearest a postcode or a latitude/longitude, closest first, with distances in metres. Use it to find the postcode for coordinates (reverse geocoding) or what is near an address.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Default 5. |
| latitude | number | |
| postcode | string | |
| radius_m | integer | Default 500. |
| longitude | number |
{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"maximum": 20,
"description": "Default 5."
},
"latitude": {
"type": "number"
},
"postcode": {
"type": "string"
},
"radius_m": {
"type": "integer",
"maximum": 2000,
"description": "Default 500."
},
"longitude": {
"type": "number"
}
},
"additionalProperties": false
}Straight-line distance between two UK postcodes in kilometres and miles, with the compass direction.
| Argument | Type | Description |
|---|---|---|
| to* | string | |
| from* | string |
{
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
}
},
"additionalProperties": false
}Search UK postcodes, districts and places. Returns ids to pass to fetch.
| Argument | Type | Description |
|---|---|---|
| query* | string |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
},
"additionalProperties": false
}Checks a UK postcode: is the format right, is it in the current official data, and is it still in use. Northern Ireland (BT) postcodes are checked by format only.
| Argument | Type | Description |
|---|---|---|
| postcode* | string | The postcode to check. |
{
"type": "object",
"required": [
"postcode"
],
"properties": {
"postcode": {
"type": "string",
"description": "The postcode to check."
}
},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 24, 2026.