Open Data

Postcodes.io MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

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

7 tools
Agent guide included
No auth required
Try it Free

No account 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

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with Postcodes.io?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

Postcodes.io MCP Server & Skill — 7 Tools