Open Data

Electoral Commission MCP Server

Chat with AI and run tools instantly.

Access UK election data from Democracy Club and Parliament. Search elections, ballots, and parliamentary election results including candidates, vote counts, and constituencies.

Managed
5 tools
Agent guide included

Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Electoral Commission — workflow patterns, data models, and gotchas for your AI agent.

Electoral Commission / Democracy Club

Access to UK election data via the Democracy Club APIs and the Parliament Linked Data API. No authentication required.

Data Sources

  • Democracy Club Elections API — Full database of UK elections (local, parliamentary, mayoral, PCC, etc.) with metadata, dates, and organisation info.
  • Democracy Club Candidates API — Ballot-level data including candidates, wards/constituencies, and results.
  • Parliament Election Results API — Historical UK parliamentary election results with candidate vote counts, majorities, turnout, and electorate size.

Data Model

  • Election — A scheduled election event with an election_id (e.g. "local.2023-04-20"), type, date, and children (sub-elections).
  • Ballot — A specific ballot paper for a ward/constituency within an election. Contains candidates, winner count, voting system.
  • Election Result — Parliamentary result for a constituency with candidate vote totals, majority, turnout, and electorate.

Key Fields

  • election_id — Unique election identifier (e.g. "parl.2024-07-04", "local.hackney.2022-05-05")
  • poll_open_date — Date of the election
  • election_type — Type: local, parl (parliamentary), mayor, pcc, senedd, sp, etc.
  • ballot_paper_id — Unique ballot identifier within an election
  • resultOfElection — Text summary (e.g. "Lab Hold", "Con Gain from Lab")

Gotchas

  • Democracy Club pagination uses limit and offset parameters.
  • Parliament LDA API uses _pageSize and _page parameters (0-indexed pages).
  • Election IDs follow a hierarchical dot notation: type.org.ward.date.
  • The current boolean on elections indicates whether it's an upcoming/active election.

Tools in this Server (5)

Ec Get Election

Get detailed information about a specific UK election by its election ID. Returns election type, date, organisation, child elections, voting system, a...

Ec Get Parl Result

Get detailed results for a specific UK parliamentary election in a constituency. Returns full candidate list with names, parties, vote counts, plus el...

Ec Search Ballots

Search UK election ballots from the Democracy Club candidates database. Ballots represent a specific vote in a ward or constituency. Returns ballot pa...

Ec Search Elections

Search UK elections from the Democracy Club database. Filter by election type (local, parliamentary, mayoral, etc.) and whether the election is curren...

Ec Search Parl Results

Search UK parliamentary election results from the Parliament data API. Returns constituency results including electorate size, turnout, majority, and ...

Frequently Asked Questions

What is the Electoral Commission MCP server?

Access UK election data from Democracy Club and Parliament. Search elections, ballots, and parliamentary election results including candidates, vote counts, and constituencies. It provides 5 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Electoral Commission 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/electoral-commission. Authentication is handled automatically.

How many tools does Electoral Commission provide?

Electoral Commission provides 5 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 Electoral Commission require?

Electoral Commission uses open data APIs — no authentication required.

Setup Instructions

Connect Electoral Commission to any MCP client in minutes

MCP URLhttps://mcp.mcpbundles.com/bundle/electoral-commission

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

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

Try Electoral Commission now

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

Electoral Commission MCP Server & Skill — 5 Tools