1. Conduid
  2. Developer Tools
  3. Elections Canada MCP Server
MCP server · Developer Tools

Elections Canada MCP Server

This Model Context Protocol (MCP) server provides access to Canadian federal election data. The server exposes resources and tools to query and analyze election results by riding, province, and party.

Unclaimed MIT last commit a year ago devtools
49Fair

Scored 2 days ago · breakdown

About Elections Canada MCP Server

Elections Canada MCP Server is an MCP server published by ThreeFortyThree-Canada in the Developer Tools category: this Model Context Protocol (MCP) server provides access to Canadian federal election data. The server exposes resources and tools to query and analyze election results by riding, province, and party. It has been installed 0 times through Conduid.

The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx elections-canada-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Elections Canada MCP Server

Powered by Claude · Grounded in docs

I know everything about Elections Canada MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.3Release v0.1.3 · 7 May 2025Elections Canada MCP Server v0.1.3 New release of the Elections Canada MCP Server.

README

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

Tool Description Input Returns
search_ridings Search ridings by name (accent-insensitive) search_term: str List of matching ridings
get_party_votes Get vote share in a riding (optionally by party) riding_code: str, party_code: str (optional) Votes and percentage
get_winning_party Get the winning party in a riding riding_code: str Winning party
summarize_province_results Province-wide summary of votes/seats province_name_or_code: str Party results
summarize_national_results Canada-wide election summary National party results
find_closest_ridings Find most competitive ridings num_results: int, party: str (optional) Closest margins
best_and_worst_results Best/worst ridings for a party party: str, num_entries: int 4-category performance summary

📚 Resources

Resource URI
All ridings elections-canada://ridings
Single riding elections-canada://riding/{riding_code}
Province elections-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

README mirrored from the source repository 2 days ago. The original is authoritative.

Questions

About Elections Canada MCP Server

How do I install Elections Canada MCP Server?

Run npx elections-canada-mcp-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Elections Canada MCP Server safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Elections Canada MCP Server still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.