Skip to content
MCP server

Clear Postcode

Live UK postcode lookup, validation and distance tools for AI assistants

Answered our latest tool-list check 2 days ago with 8 tools. It will be marked verified after 3 successful checks in 7 days.

Clear Postcode is a freemium MCP server for mcp data access. It runs as a hosted remote server, so there is nothing to install locally.

Pricing
Freemium
Platforms
API, Web, VS Code
Runs
Remotely
What it can do
Read-only
Version
1.0.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

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.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

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.

ChatGPT setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

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.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "postcodes": {
      "type": "http",
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Clear Postcode

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.

Tools this server provides (8)

Read directly from the server.

The server marks all 8 tools read-only.

From the server's own tool labels and tool names; not verified by us.

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

What it does

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

Pricing

Freemium, from $9 a month

Free with 10,000 postcode lookups a month; Starter from £9 a month (ex VAT)

Prices change. Check clearpostcode.co.uk before you buy.

Clear Postcode 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.

How AIPoweredBot checks servers