# ClearPostcode

> Live UK postcode data for AI: look up, validate, find nearest, council, ward, constituency. Free.

- name: uk.co.clearpostcode/postcodes
- version: 1.0.2
- connection class: R0 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 94/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/uk.co.clearpostcode%2Fpostcodes
- tools: https://api.protogrid.dev/v1/servers/uk.co.clearpostcode%2Fpostcodes/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "postcodes": {
      "type": "http",
      "url": "https://api.clearpostcode.co.uk/mcp",
      "headers": {
        "Authorization": "Bearer ${POSTCODES_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${POSTCODES_TOKEN}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-1d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 94/100 (new)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list carries no ttlMs, so clients re-fetch it

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 8 of 8 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 996 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 5 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 8, about 996 tokens to load them all
- tool set hash: c660cc5467deaf78fb976d7765673517
- tools last changed: 2026-11-24T16:00:23.238Z
- badge: [![protogrid quality](https://protogrid.dev/badge/uk.co.clearpostcode/postcodes.svg)](https://protogrid.dev/servers/uk.co.clearpostcode/postcodes)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-24 `search` changed (title, annotations) no new version (still 1.0.0)

Full history: https://api.protogrid.dev/v1/servers/uk.co.clearpostcode%2Fpostcodes/changes

## Remotes

- https://api.clearpostcode.co.uk/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (8)

- `area_info`: 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.
- `fetch`: Fetch the full record for an id returned by search.
- `find_place`: Finds UK cities, towns, villages and neighbourhoods by name and returns each one's postcode district, council and coordinates (OS Open Names).
- `lookup_postcode`: 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.
- `nearest_postcodes`: 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.
- `postcode_distance`: Straight-line distance between two UK postcodes in kilometres and miles, with the compass direction.
- `search`: Search UK postcodes, districts and places. Returns ids to pass to fetch.
- `validate_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.
