ClearPostcode MCP
An official MCP server by ClearPostcode providing AI assistants with read-only access to live UK postcode data, including lookup, validation, nearest location, distance calculation, and area information.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://api.clearpostcode.co.uk/mcpWhat its tools do
8 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to clearpostcode.co.uk ·
- Passed Endpoint is on the registry namespace domain ·
- Availability 1 of 1 checks passed in 30 days
What you can do with it
- Look up council, ward, and constituency for a UK postcode
- Validate if a UK postcode is live and correctly formatted
- Find the nearest live postcodes to a given location
- Calculate straight-line distance between two postcodes
Source and maintenance
Protocol and capabilities
- Server
- clearpostcode 1.0.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 8 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
8 advertised
lookup_postcode — Look up UK postcodes
Everything about one UK postcode, or up to 100 at once (10 without an API key): 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.
{
"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": 100,
"description": "Up to 100 postcodes instead of one (10 without an API key)."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"oneOf": [
{
"type": "object",
"required": [
"postcode",
"status"
],
"properties": {
"icb": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"area": {
"type": "string"
},
"lsoa": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"msoa": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"ward": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"county": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"incode": {
"type": "string"
},
"parish": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"region": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sector": {
"type": "string"
},
"status": {
"enum": [
"live",
"terminated"
]
},
"country": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"outcode": {
"type": "string"
},
"sub_icb": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"district": {
"type": "string"
},
"location": {
"type": "object",
"required": [
"latitude",
"longitude",
"easting",
"northing",
"positional_quality",
"positional_quality_label"
],
"properties": {
"easting": {
"type": [
"integer",
"null"
]
},
"latitude": {
"type": [
"number",
"null"
]
},
"northing": {
"type": [
"integer",
"null"
]
},
"longitude": {
"type": [
"number",
"null"
]
},
"positional_quality": {
"type": [
"integer",
"null"
]
},
"positional_quality_label": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"postcode": {
"type": "string",
"description": "Canonical form, e.g. \"SW1A 1AA\"."
},
"user_type": {
"enum": [
"small",
"large"
]
},
"introduced": {
"type": [
"string",
"null"
],
"description": "YYYY-MM"
},
"nhs_region": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"terminated": {
"type": [
"string",
"null"
],
"description": "YYYY-MM"
},
"deprivation": {
"anyOf": [
{
"type": "object",
"required": [
"index",
"rank",
"of",
"decile"
],
"properties": {
"of": {
"type": "integer"
},
"rank": {
"type": "integer"
},
"index": {
"type": "string"
},
"decile": {
"type": "integer"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"output_area": {
"type": [
"string",
"null"
]
},
"replaced_by": {
"type": [
"string",
"null"
],
"description": "For a terminated postcode: the nearest live postcode."
},
"rural_urban": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name",
"urban"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"urban": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"constituency": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"police_force": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"built_up_area": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"national_park": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"local_authority": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"area_classification": {
"type": [
"string",
"null"
]
},
"travel_to_work_area": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"county_electoral_division": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"query",
"result"
],
"properties": {
"error": {
"enum": [
"invalid_postcode",
"not_covered",
"postcode_not_found"
]
},
"query": {
"type": "string"
},
"result": {
"anyOf": [
{
"type": "object",
"required": [
"postcode",
"status"
],
"properties": {
"icb": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"area": {
"type": "string"
},
"lsoa": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"msoa": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"ward": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"county": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"incode": {
"type": "string"
},
"parish": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"region": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sector": {
"type": "string"
},
"status": {
"enum": [
"live",
"terminated"
]
},
"country": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"outcode": {
"type": "string"
},
"sub_icb": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"district": {
"type": "string"
},
"location": {
"type": "object",
"required": [
"latitude",
"longitude",
"easting",
"northing",
"positional_quality",
"positional_quality_label"
],
"properties": {
"easting": {
"type": [
"integer",
"null"
]
},
"latitude": {
"type": [
"number",
"null"
]
},
"northing": {
"type": [
"integer",
"null"
]
},
"longitude": {
"type": [
"number",
"null"
]
},
"positional_quality": {
"type": [
"integer",
"null"
]
},
"positional_quality_label": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"postcode": {
"type": "string",
"description": "Canonical form, e.g. \"SW1A 1AA\"."
},
"user_type": {
"enum": [
"small",
"large"
]
},
"introduced": {
"type": [
"string",
"null"
],
"description": "YYYY-MM"
},
"nhs_region": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"terminated": {
"type": [
"string",
"null"
],
"description": "YYYY-MM"
},
"deprivation": {
"anyOf": [
{
"type": "object",
"required": [
"index",
"rank",
"of",
"decile"
],
"properties": {
"of": {
"type": "integer"
},
"rank": {
"type": "integer"
},
"index": {
"type": "string"
},
"decile": {
"type": "integer"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"output_area": {
"type": [
"string",
"null"
]
},
"replaced_by": {
"type": [
"string",
"null"
],
"description": "For a terminated postcode: the nearest live postcode."
},
"rural_urban": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name",
"urban"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"urban": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"constituency": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"police_force": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"built_up_area": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"national_park": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"local_authority": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"area_classification": {
"type": [
"string",
"null"
]
},
"travel_to_work_area": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"county_electoral_division": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
}
]
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Look up UK postcodes",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}validate_postcode — Validate a UK postcode
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.
{
"type": "object",
"required": [
"postcode"
],
"properties": {
"postcode": {
"type": "string",
"description": "The postcode to check."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"type": "object",
"required": [
"input",
"postcode",
"format_valid",
"known",
"status",
"valid",
"coverage",
"country",
"replaced_by"
],
"properties": {
"input": {
"type": "string"
},
"known": {
"type": [
"boolean",
"null"
]
},
"valid": {
"type": [
"boolean",
"null"
]
},
"status": {
"enum": [
"live",
"terminated",
null
]
},
"country": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"coverage": {
"enum": [
"covered",
"not_covered"
]
},
"postcode": {
"type": [
"string",
"null"
]
},
"replaced_by": {
"type": [
"string",
"null"
]
},
"format_valid": {
"type": "boolean"
}
},
"additionalProperties": false
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Validate a UK postcode",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}nearest_postcodes — Postcodes near a place or point
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.
{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"maximum": 20,
"description": "Default 5."
},
"latitude": {
"type": "number"
},
"postcode": {
"type": "string"
},
"radius_m": {
"type": "integer",
"maximum": 20000,
"description": "Default 500; up to 20,000 for rural and island points (then up to 10 results)."
},
"longitude": {
"type": "number"
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"type": "array",
"items": {
"type": "object",
"required": [
"postcode",
"distance_m",
"latitude",
"longitude"
],
"properties": {
"latitude": {
"type": "number"
},
"postcode": {
"type": "string"
},
"longitude": {
"type": "number"
},
"distance_m": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Postcodes near a place or point",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}postcode_distance — Distance between two postcodes
Straight-line distance between two UK postcodes in kilometres and miles, with the compass direction.
{
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"type": "object",
"required": [
"from",
"to",
"km",
"miles",
"bearing_deg",
"direction",
"method"
],
"properties": {
"km": {
"type": "number"
},
"to": {
"type": "object",
"required": [
"postcode",
"latitude",
"longitude",
"easting",
"northing",
"positional_quality",
"positional_quality_label"
],
"properties": {
"easting": {
"type": "integer"
},
"latitude": {
"type": "number"
},
"northing": {
"type": "integer"
},
"postcode": {
"type": "string"
},
"longitude": {
"type": "number"
},
"positional_quality": {
"type": "integer"
},
"positional_quality_label": {
"type": "string"
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"postcode",
"latitude",
"longitude",
"easting",
"northing",
"positional_quality",
"positional_quality_label"
],
"properties": {
"easting": {
"type": "integer"
},
"latitude": {
"type": "number"
},
"northing": {
"type": "integer"
},
"postcode": {
"type": "string"
},
"longitude": {
"type": "number"
},
"positional_quality": {
"type": "integer"
},
"positional_quality_label": {
"type": "string"
}
},
"additionalProperties": false
},
"miles": {
"type": "number"
},
"method": {
"type": "string"
},
"direction": {
"type": "string"
},
"bearing_deg": {
"type": "integer"
}
},
"additionalProperties": false
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Distance between two postcodes",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}area_info — A postcode area, district or sector
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.
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "An area, district or sector."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"oneOf": [
{
"type": "object",
"required": [
"area",
"name",
"live",
"terminated",
"districts"
],
"properties": {
"area": {
"type": "string"
},
"live": {
"type": "integer"
},
"name": {
"type": [
"string",
"null"
]
},
"districts": {
"type": "array",
"items": {
"type": "object",
"required": [
"district",
"live",
"terminated",
"local_authority"
],
"properties": {
"live": {
"type": "integer"
},
"district": {
"type": "string"
},
"terminated": {
"type": "integer"
},
"local_authority": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"terminated": {
"type": "integer"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"district",
"area",
"area_name",
"live",
"terminated",
"large_user",
"sectors",
"centre",
"country",
"regions",
"counties",
"local_authorities",
"wards",
"constituencies",
"police_forces",
"icbs",
"national_parks",
"built_up_areas",
"parishes",
"urban_share",
"deprivation",
"places",
"neighbours",
"newest",
"oldest_introduced"
],
"properties": {
"area": {
"type": "string"
},
"icbs": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"live": {
"type": "integer"
},
"wards": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"centre": {
"anyOf": [
{
"type": "object",
"required": [
"latitude",
"longitude"
],
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"newest": {
"type": "array",
"items": {
"type": "object",
"required": [
"postcode",
"introduced"
],
"properties": {
"postcode": {
"type": "string"
},
"introduced": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"places": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"additionalProperties": false
}
},
"country": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"name"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"regions": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"sectors": {
"type": "array",
"items": {
"type": "object",
"required": [
"sector",
"live",
"terminated"
],
"properties": {
"live": {
"type": "integer"
},
"sector": {
"type": "string"
},
"terminated": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"counties": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"district": {
"type": "string"
},
"parishes": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"area_name": {
"type": [
"string",
"null"
]
},
"large_user": {
"type": "integer"
},
"neighbours": {
"type": "array",
"items": {
"type": "string"
}
},
"terminated": {
"type": "integer"
},
"deprivation": {
"anyOf": [
{
"type": "object",
"required": [
"index",
"deciles"
],
"properties": {
"index": {
"type": "string"
},
"deciles": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"urban_share": {
"type": [
"integer",
"null"
]
},
"police_forces": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"built_up_areas": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"constituencies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"national_parks": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"local_authorities": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes",
"share"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"share": {
"type": "integer"
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"oldest_introduced": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"sector",
"district",
"live",
"centre",
"local_authorities",
"wards",
"constituencies",
"parishes",
"postcodes"
],
"properties": {
"live": {
"type": "integer"
},
"wards": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"centre": {
"anyOf": [
{
"type": "object",
"required": [
"latitude",
"longitude"
],
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sector": {
"type": "string"
},
"district": {
"type": "string"
},
"parishes": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"postcodes": {
"type": "array",
"items": {
"type": "object",
"required": [
"postcode",
"latitude",
"longitude",
"user_type"
],
"properties": {
"latitude": {
"type": [
"number",
"null"
]
},
"postcode": {
"type": "string"
},
"longitude": {
"type": [
"number",
"null"
]
},
"user_type": {
"enum": [
"small",
"large"
]
}
},
"additionalProperties": false
}
},
"constituencies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"local_authorities": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"postcodes"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"postcodes": {
"type": "integer"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
]
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "A postcode area, district or sector",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}find_place — Find the postcode district of a place
Finds UK cities, towns, villages and neighbourhoods by name and returns each one's postcode district, council and coordinates (OS Open Names).
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 20
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"result",
"page",
"citation"
],
"properties": {
"page": {
"type": "string",
"format": "uri"
},
"result": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"alternative_name",
"type",
"district",
"latitude",
"longitude",
"local_authority",
"county"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"county": {
"type": [
"string",
"null"
]
},
"district": {
"type": "string"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"local_authority": {
"type": [
"string",
"null"
]
},
"alternative_name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"citation": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Find the postcode district of a place",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}search — Search ClearPostcode
Search UK postcodes, districts and places. Returns ids to pass to fetch.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Search ClearPostcode",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}fetch — Fetch a postcode or district
Fetch the full record for an id returned by search.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Fetch a postcode or district",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-28: 2 of 2 checks answered
- 2026-11-29: 4 of 4 checks answered
- 2026-11-30: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 303 ms
- 95th percentile latency
- 303 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 303 ms · metadata changed · 8 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http clearpostcode-mcp https://api.clearpostcode.co.uk/mcpCodex
codex mcp add clearpostcode-mcp --url https://api.clearpostcode.co.uk/mcpCursor
{
"mcpServers": {
"clearpostcode-mcp": {
"url": "https://api.clearpostcode.co.uk/mcp"
}
}
}Cline
{
"mcpServers": {
"clearpostcode-mcp": {
"type": "streamableHttp",
"url": "https://api.clearpostcode.co.uk/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"clearpostcode-mcp": {
"type": "http",
"url": "https://api.clearpostcode.co.uk/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http clearpostcode-mcp https://api.clearpostcode.co.uk/mcpClaude Desktop
https://api.clearpostcode.co.uk/mcpWindsurf
{
"mcpServers": {
"clearpostcode-mcp": {
"serverUrl": "https://api.clearpostcode.co.uk/mcp"
}
}
}Let your agent find its tools
Find servers like ClearPostcode MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other data and analytics servers
Do you run ClearPostcode MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.