Open Data

Open Geography Portal MCP Server

Chat with AI and run tools instantly — no API key or third-party login 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.

Managed
3 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 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

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 Open Geography Portal and paste the MCP URL into Remote MCP server URL.
  4. Click Add. Open Geography Portal will appear under Not connected — select it and click Connect to complete OAuth.
Name: Open Geography Portal
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/open-geography
Authentication: OAuth

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

Try Open Geography Portal now

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