Open Data

Postcodes.io MCP Server

Chat with AI and run tools instantly — no API key or third-party login needed.

Free, open-source UK postcode and geolocation API. Lookup postcodes, reverse geocode coordinates, validate postcodes, find nearest postcodes, and query outcodes.

Managed
7 tools
Agent guide included

No API key or third-party login needed. Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Postcodes.io — workflow patterns, data models, and gotchas for your AI agent.

Postcodes.io

Open-source UK postcode and geolocation API powered by Ordnance Survey and ONS data. Read access does not use a vendor credential flow.

Data Model

  • Postcode — Full UK postcode (e.g. "SW1A 1AA"). Returns coordinates, admin geography, parliamentary constituencies, NHS regions, and statistical geography codes.
  • Outcode — First part of a postcode (e.g. "SW1A"). Returns averaged coordinates and lists of associated admin districts, parishes, and wards.
  • Quality — Integer 1-9 indicating positional quality (1 = within building, 9 = no coordinates).

Key Fields in Postcode Results

  • admin_district — Local authority (e.g. "Westminster")
  • parliamentary_constituency — Current constituency name
  • region — English region (null for Scotland, Wales, NI)
  • lsoa / msoa — Lower/Middle Super Output Areas (statistical geography)
  • ccg / icb — NHS Clinical Commissioning Group / Integrated Care Board
  • pfa — Police Force Area

Gotchas

  • Spaces in postcodes: The API handles both "SW1A 1AA" and "SW1A1AA" — spaces are optional.
  • Terminated postcodes: Some postcodes are no longer in use. The lookup endpoint returns null for these; use the terminated postcodes endpoint if needed.
  • Bulk limit: Bulk lookup accepts up to 100 postcodes per request.
  • Reverse geocode: Returns up to 10 nearest postcodes within a configurable radius (default 100m, max 2000m).
  • Nearest: Returns postcodes near a given postcode within a configurable radius.

Tools in this Server (7)

Postcode Bulk Lookup

Look up multiple UK postcodes in a single request (up to 100). Returns full geographic and administrative data for each postcode. Postcodes not found ...

Postcode Lookup

Look up a UK postcode and return geographic coordinates, administrative district, parliamentary constituency, NHS region, police force area, and stati...

Postcode Nearest

Find the nearest postcodes to a given UK postcode. Returns up to 10 nearest postcodes by default within 100m radius. Both limit and radius can be conf...

Postcode Outcode Lookup

Look up an outcode (first part of a UK postcode, e.g. 'SW1A'). Returns averaged coordinates, and lists of admin districts, parishes, wards, and countr...

Postcode Random

Get a random UK postcode with full geographic and administrative data. Optionally restrict to a specific outcode area (e.g. 'SW1A').

Postcode Reverse Geocode

Reverse geocode: find UK postcodes nearest to a given longitude/latitude coordinate. Returns up to 10 nearest postcodes by default within 100m radius.

Postcode Validate

Validate whether a UK postcode is a real, active postcode. Returns true if the postcode exists in the Royal Mail PAF database, false otherwise.

Frequently Asked Questions

What is the Postcodes.io MCP server?

Free, open-source UK postcode and geolocation API. Lookup postcodes, reverse geocode coordinates, validate postcodes, find nearest postcodes, and query outcodes. It provides 7 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Postcodes.io to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/postcodes-io. Authentication is handled automatically.

How many tools does Postcodes.io provide?

Postcodes.io provides 7 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Postcodes.io require?

Postcodes.io uses open data APIs — no authentication required.

Setup Instructions

Connect Postcodes.io to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/postcodes-io

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to Postcodes.io and paste the MCP URL into Remote MCP server URL.
  4. Click Add. Postcodes.io will appear under Not connected — select it and click Connect to complete OAuth.
Name: Postcodes.io
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/postcodes-io
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Try Postcodes.io now

No API key or third-party login required. Chat with AI and run tools instantly.

Postcodes.io MCP Server & Skill — 7 Tools