Open Data

UK Constituencies MCP Server

Chat with AI and run tools instantly.

UK parliamentary constituency boundaries and metadata from the ONS Open Geography Portal. Search constituencies by name, get boundary details including area, centroid coordinates, and ONS codes for all 650 Westminster constituencies.

Managed
2 tools
Agent guide included

Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for UK Constituencies — workflow patterns, data models, and gotchas for your AI agent.

UK Parliamentary Constituencies

ONS Open Geography Portal — ArcGIS FeatureServer for Westminster parliamentary constituency boundaries (July 2024, 650 constituencies).

Data Model

  • Constituency — A Westminster parliamentary constituency with boundary geometry and metadata.
  • PCON24CD — ONS constituency code (e.g. "E14001063" for Aldershot). Prefix: E=England, W=Wales, S=Scotland, N=Northern Ireland.
  • PCON24NM — Constituency name in English.
  • PCON24NMW — Constituency name in Welsh (blank for non-Welsh constituencies).
  • BNG_E / BNG_N — British National Grid easting/northing of the centroid.
  • LONG / LAT — WGS84 longitude/latitude of the centroid.
  • Shape__Area — Boundary area in square metres.
  • Shape__Length — Boundary perimeter in metres.

Key Patterns

  • ArcGIS FeatureServer query endpoint with where, outFields, f=json parameters.
  • Name search uses SQL LIKE: PCON24NM LIKE '%Oxford%' (case-insensitive on server).
  • Code lookup uses exact match: PCON24CD='E14001063'.
  • returnGeometry=false omits polygon coordinates (much smaller response).
  • resultRecordCount limits results (max 2000 per request).

Gotchas

  • No pagination token: Use resultOffset for pagination.
  • Geometry is large: Always set returnGeometry=false unless polygon data is specifically needed.
  • Welsh names: PCON24NMW is blank (single space) for non-Welsh constituencies.
  • July 2024 boundaries: These are the current boundaries after the 2023 boundary review.

Tools in this Server (2)

Constituencies Search

Search UK parliamentary constituencies by name. Returns constituency codes, names, centroid coordinates (lat/lon), boundary area, and perimeter for al...

Constituency Get

Get full details of a UK parliamentary constituency by its ONS code. Returns the constituency name, centroid coordinates, boundary area in square metr...

Frequently Asked Questions

What is the UK Constituencies MCP server?

UK parliamentary constituency boundaries and metadata from the ONS Open Geography Portal. Search constituencies by name, get boundary details including area, centroid coordinates, and ONS codes for all 650 Westminster constituencies. It provides 2 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect UK Constituencies 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/uk-constituencies. Authentication is handled automatically.

How many tools does UK Constituencies provide?

UK Constituencies provides 2 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 UK Constituencies require?

UK Constituencies uses open data APIs — no authentication required.

Setup Instructions

Connect UK Constituencies to any MCP client in minutes

MCP URLhttps://mcp.mcpbundles.com/bundle/uk-constituencies

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

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

Try UK Constituencies now

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

UK Constituencies MCP Server & Skill — 2 Tools