Open Data

Open Geography Portal MCP Server

Chat with AI and run tools instantly — no account needed.

Access the ONS Open Geography Portal for UK geographic boundaries and lookups. Look up postcodes to find their local authority, region, constituency, and census geographies. Search and list local authority districts. Query any ArcGIS boundary service for wards, parishes, counties, health areas, and more.

3 tools
Agent guide included
Try it Free

No account needed. Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Open Geography Portal — workflow patterns, data models, and gotchas for your AI agent.

ONS Open Geography Portal

The ONS Open Geography Portal provides UK geographic boundaries, lookups, and postcode data via ArcGIS REST services hosted by the Office for National Statistics.

Data Model

  • ONSPD — ONS Postcode Directory. Maps postcodes to every geographic classification (LAD, LSOA, MSOA, region, constituency, health area, etc.). Updated quarterly.
  • LAD — Local Authority Districts. Administrative boundaries with codes, names, and centroids. Multiple vintages available (e.g. LAD_MAY_2025_UK_BFC_V2).
  • Boundary services — Hundreds of services covering wards, parishes, counties, regions, constituencies, health areas, census output areas, built-up areas, and more.
  • Lookup tables — Cross-reference between geographies (e.g. OA to LSOA to MSOA to LAD).

Key Patterns

  • All services use ArcGIS REST query syntax: where, outFields, f=json, resultRecordCount.
  • Use SQL-like where clauses: LAD25NM LIKE '%Manchester%', pcds='SW1A 1AA'.
  • Set returnGeometry=false for attribute-only queries (much faster, smaller response).
  • Service names follow ONS conventions: {TYPE}_{DATE}_{COVERAGE}_{BOUNDARY_TYPE}.
  • Boundary types: BFC (Full Clipped), BFE (Full Extent), BGC (Generalised Clipped), BSC (Super Generalised), BUC (Ultra Generalised).
  • NC = Names and Codes (no geometry, just reference data).

Field Naming

  • Postcode fields: pcds (display format, e.g. "SW1A 1AA"), PCD7/PCD8 (fixed-width).
  • LAD fields: LAD25CD (code), LAD25NM (name), LAD25NMW (Welsh name). Year suffix matches the vintage.
  • Geographic codes: Follow pattern {TYPE}{YY}CD for code, {TYPE}{YY}NM for name.

Gotchas

  • No auth: Completely open API. Be respectful of rate limits.
  • Service names change: New vintages are published periodically with updated year suffixes. The tools use the latest known working names.
  • Large responses: Boundary geometry can be very large. Use returnGeometry=false when you only need attributes.
  • Result limits: ArcGIS caps results at 2000 per query by default. Use resultRecordCount and resultOffset for pagination.
  • URL encoding: Service names with parentheses and spaces must be URL-encoded.

Tools in this Server (3)

Geo Local Authorities

List and search UK local authority districts from the ONS Open Geography Portal. Search by name or look up by GSS code. Returns the authority code, na...

Geo Postcode Lookup

Look up geographic details for a UK postcode using the ONS Postcode Directory. Returns the local authority district, ward, parish, region, country, co...

Geo Query Boundaries

Query any boundary or lookup service on the ONS Open Geography Portal using ArcGIS REST syntax. Supports wards, parishes, counties, regions, constitue...

Frequently Asked Questions

What is the Open Geography Portal MCP server?

Access the ONS Open Geography Portal for UK geographic boundaries and lookups. Look up postcodes to find their local authority, region, constituency, and census geographies. Search and list local authority districts. Query any ArcGIS boundary service for wards, parishes, counties, health areas, and more. It provides 3 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Open Geography Portal 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/open-geography. Authentication is handled automatically.

How many tools does Open Geography Portal provide?

Open Geography Portal provides 3 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 Open Geography Portal require?

Open Geography Portal uses open data APIs — no authentication required.

Setup Instructions

Connect Open Geography Portal to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/open-geography

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.

Try Open Geography Portal now

No sign-up required. Chat with AI and run tools instantly.

Open Geography Portal MCP Server & Skill — 3 Tools