# Clear Postcode

> Clear Postcode is a freemium MCP server for mcp data access. Live UK postcode lookup, validation and distance tools for AI assistants. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $9 a month
- **Platforms:** API, Web, VS Code, CLI
- **Website:** https://clearpostcode.co.uk/mcp
- **MCP Registry name:** uk.co.clearpostcode/postcodes
- **Categories:** [mcp data access](https://ai-powered.com/categories/mcp-data-access)
- **Listing updated:** 2026-11-27

## About

Clear Postcode is a hosted Model Context Protocol server that gives assistants such as Claude, ChatGPT, Cursor and Copilot direct access to UK postcode records. Instead of relying on a model's memory, questions about which council, ward or constituency a postcode falls in are answered from the ONS Postcode Directory and OS Open Names data.

The server exposes eight read-only tools covering lookup, validation, nearest postcodes, straight-line distances, postcode area and district summaries, and place-name search. Each answer includes a source line and a link to the full record, so an assistant can show where a figure came from. Connection is a single URL, and no key is needed to start.

It suits developers building address or delivery features in an assistant, analysts who need area context for UK postcodes, and anyone who wants to ask an AI about local government boundaries or travel distances between two places.

## Features

- **Full postcode lookup:** Returns status, coordinates and the council, ward, constituency and other areas for one or up to 50 postcodes.
- **Postcode validation:** Checks format and whether a postcode is in current official data and still in use.
- **Nearest postcodes:** Finds postcodes closest to a postcode or latitude and longitude, with distances in metres.
- **Distance between postcodes:** Gives straight-line distance in kilometres and miles with compass direction.
- **Area and place summaries:** Describes postcode areas, districts and sectors, and finds UK towns and villages by name.
- **One-URL connection:** Works with a single streamable HTTP endpoint and no key for a shared daily allowance.

## Good for

- Asking an assistant which council or constituency a postcode belongs to
- Validating customer postcodes inside a chat-based workflow
- Finding the postcode nearest to a set of coordinates
- Estimating straight-line distance between two UK postcodes
- Looking up which postcode district a town or village sits in

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http postcodes https://api.clearpostcode.co.uk/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.clearpostcode.co.uk/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.clearpostcode.co.uk/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add postcodes --url https://api.clearpostcode.co.uk/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.postcodes]
url = "https://api.clearpostcode.co.uk/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "httpUrl": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http postcodes https://api.clearpostcode.co.uk/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "serverUrl": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "type": "streamableHttp",
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "postcodes": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.clearpostcode.co.uk/mcp
```

Enter a Name (for example "Clear Postcode"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

The server marks all 8 tools read-only. From the server's own tool labels and tool names; not verified by us.

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

## FAQ

### Do I need an API key?

No. The server answers without a key within a shared daily allowance. A free key as a Bearer token gives 10,000 postcode lookups a month.

### Where does the data come from?

The ONS Postcode Directory and OS Open Names, both under the Open Government Licence. Each answer carries its source and a link to the full page.

### Which tools does Clear Postcode provide?

lookup_postcode, validate_postcode, nearest_postcodes, postcode_distance, area_info, find_place, search and fetch. All are read-only.

### Which assistants can connect?

Claude (desktop and claude.ai), ChatGPT, Claude Code, and Cursor, VS Code or Copilot via an mcp.json entry.

### Is Clear Postcode free?

Clear Postcode has a free plan, with paid plans for more usage or features. Paid plans start at $9 a month.

### How do I add Clear Postcode to Claude Code?

Run this command in your terminal: claude mcp add --transport http postcodes https://api.clearpostcode.co.uk/mcp

### What are the best alternatives to Clear Postcode?

The closest alternatives to Clear Postcode are UK Data: UK places, PostFinder post offices and parcel points, PlaceFit and SiteFlow UK.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 28 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [UK Data: UK places](https://ai-powered.com/mcp/uk-data-uk-places): UK Data: UK places is a freemium MCP server for maps and travel.
- [PostFinder post offices and parcel points](https://ai-powered.com/mcp/postfinder-post-offices-and-parcel-points): PostFinder post offices and parcel points is a free MCP server for maps and travel.
- [PlaceFit](https://ai-powered.com/mcp/placefit): PlaceFit is a freemium MCP server for mcp data access.
- [SiteFlow UK](https://ai-powered.com/mcp/siteflow-uk): SiteFlow UK is a freemium MCP server for maps and travel.

---
Source: https://ai-powered.com/mcp/clear-postcode
