ClearPostcode
Live UK postcode data for AI: look up, validate, find nearest, council, ward, constituency. Free.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (3)
- LOWin postcode_distance
- LOWin area_info
- LOWin fetch
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"postcodes": {
"url": "https://clearpostcode.co.uk/mcp"
}
}
}Remote-Endpunkte
https://clearpostcode.co.uk/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (8)
🟢lookup_postcode(postcode, postcodes, fields)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"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."
},
"fields": {
"type": "string",
"description": "Optional comma-separated fields to keep, e.g. \"location,local_authority\"."
}
},
"required": [],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢validate_postcode(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.
Eingabe-Schema
{
"type": "object",
"properties": {
"postcode": {
"type": "string",
"description": "The postcode to check."
}
},
"required": [
"postcode"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢nearest_postcodes(postcode, latitude, longitude, radius_m, limit)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"postcode": {
"type": "string"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"radius_m": {
"type": "integer",
"maximum": 2000,
"description": "Default 500."
},
"limit": {
"type": "integer",
"maximum": 20,
"description": "Default 5."
}
},
"required": [],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢postcode_distance(from, to)
Straight-line distance between two UK postcodes in kilometres and miles, with the compass direction.
Eingabe-Schema
{
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢area_info(code)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "An area, district or sector."
}
},
"required": [
"code"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢find_place(name, limit)
Finds UK cities, towns, villages and neighbourhoods by name and returns each one's postcode district, council and coordinates (OS Open Names).
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 20
}
},
"required": [
"name"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true
}🟢search(query)
Search UK postcodes, districts and places. Returns ids to pass to fetch.
Eingabe-Schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
}
},
"required": [
"query"
],
"additionalProperties": false
}🟢fetch(id)
Fetch the full record for an id returned by search.
Eingabe-Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}Community
Nachweis