Open Data

Electoral Commission MCP Server

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

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

5 tools
Agent guide included
No auth required
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

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

https://mcp.mcpbundles.com/bundle/electoral-commission

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 Electoral Commission?

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

Electoral Commission MCP Server & Skill — 5 Tools