Elections Canada MCP Server

Elections Canada MCP Server

elections-canada-mcp-server•bythreefortythree-canada

A Model Context Protocol server that provides access to Canadian federal election data, currently supporting results from the 2021 and 2025 elections.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides tools to search ridings by name, including accent-insensitive search.
  • •Reports vote share for a riding, optionally filtered by party.
  • •Summarizes election results at the province and national level.
  • •Identifies the most competitive ridings and the best or worst ridings for a given party.

BEST FOR

  • •Asking questions about 2021 federal election results in specific ridings.
  • •Analyzing which ridings were most competitive for a particular party.
  • •Reviewing the strongest and weakest results for a party in 2021.

ABOUT ELECTIONS-CANADA-MCP-SERVER

Elections Canada MCP Server is cataloged as an MCP server attributed to threefortythree-canada. A Model Context Protocol server that provides access to Canadian federal election data, currently supporting results from the 2021 and 2025 elections. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Elections Canada MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which election years are currently supported?

The server currently supports results from the 2021 and 2025 elections.

What resources does the server expose?

It exposes resources for all ridings, a single riding, and a province.

Upstream README

View this exact version on GitHub

README.md · bd90b3211789 · Fetched 2026-11-13 11:05:47 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Elections Canada MCP Server

This is a Model Context Protocol (MCP) server that provides access to Canadian federal election data. It currently supports results from the 2021 and 2025 elections. Future updates will include past elections, census demographics, and ThreeFortyThree real-time projections.

Brought to you by ThreeFortyThree, this server powers ThreeFortyThree Chat and is available for use with MCP clients such as Claude Desktop.


🛠 Setup

Installation (via PyPI)

uv pip install elections-canada-mcp-server

Usage with Claude Desktop

  1. Make sure the server is installed:
uv pip install elections-canada-mcp-server
  1. Open your claude_desktop_config.json and add the following block:

uv

{
  "mcpServers": {
    "elections_canada_data_and_predictions": {
      "command": "{PATH_TO_UVX}",  // Replace with output of: which uvx
      "args": ["elections-canada-mcp"]
    }
  }
}
  1. Restart Claude Desktop.

  2. Now you can ask Claude questions such as:

    • "What were the 2021 election results in Toronto Centre?"
    • "Which ridings were closest for the NDP?"
    • "Show me the highest-margin wins for the Conservatives in 2021."

Local Development

To test the server using MCP Inspector:

  1. Clone this repository:

    git clone https://github.com/ThreeFortyThree-Canada/elections-canada-mcp-server.git
    cd elections-canada-mcp-server
    
  2. Install MCP CLI:

    uv pip install mcp
    
  3. Test the server:

    mcp dev elections_canada_mcp/server.py
    

This opens a web UI to test the server locally.


🧰 Tools

ToolDescriptionInputReturns
search_ridingsSearch ridings by name (accent-insensitive)search_term: strList of matching ridings
get_party_votesGet vote share in a riding (optionally by party)riding_code: str, party_code: str (optional)Votes and percentage
get_winning_partyGet the winning party in a ridingriding_code: strWinning party
summarize_province_resultsProvince-wide summary of votes/seatsprovince_name_or_code: strParty results
summarize_national_resultsCanada-wide election summary—National party results
find_closest_ridingsFind most competitive ridingsnum_results: int, party: str (optional)Closest margins
best_and_worst_resultsBest/worst ridings for a partyparty: str, num_entries: int4-category performance summary

📚 Resources

ResourceURI
All ridingselections-canada://ridings
Single ridingelections-canada://riding/{riding_code}
Provinceelections-canada://province/{province_code}

📌 Province Codes

AB, BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT

📌 Party Codes

LPC, CPC, NDP, BQ, GPC, PPC


📄 License

This project is licensed under the MIT License.

© ThreeFortyThree Canada – threefortythree.ca

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Elections Canada MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/elections-canada-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research