Back to Browse

Bundeswahlleiter MCP Server

Developer ToolsLow Risk8.3MCP RegistryLocal
Free

Server data from the Official MCP Registry

Unofficial read-only MCP server for German federal election results — Bundestag 2017, 2021, 2025.

About

Unofficial read-only MCP server for German federal election results — Bundestag 2017, 2021, 2025.

Security Report

8.3
Low Risk8.3Low Risk

Valid MCP server (1 strong, 4 medium validity signals). 4 known CVEs in dependencies Imported from the Official MCP Registry. Trust signals: trusted author (7/7 approved). 1 finding(s) downgraded by scanner intelligence.

9 files analyzed · 5 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

file_system

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "bundeswahlleiter-mcp": {
      "command": "uvx",
      "args": [
        "bundeswahlleiter-mcp==0.1.0"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

bundeswahlleiter-mcp 🗳️

mcp-name: io.github.mohammad-abbasi-sh/bundeswahlleiter-mcp

Unofficial read-only MCP server for bundeswahlleiterin.de — Official Bundestag election results from bundeswahlleiterin.de (free open data, no key, no login): national results, party results, constituencies and turnout for 2017, 2021 and 2025. No key, no login.

Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with bundeswahlleiterin.de.

For AI agents

Add to your MCP client config (stdio):

{
  "mcpServers": {
    "bundeswahlleiter": {
      "command": "uvx",
      "args": ["bundeswahlleiter-mcp==0.1.0"]
    }
  }
}

Or run locally: python -m bundeswahlleiter_mcp.server (needs mcp<2, httpx).

Tools

ToolDescription
bwl_national_resultsNational results of a Bundestag election: turnout, valid votes, per-party second votes with previous-election comparison — year (2017, 2021 or 2025)
bwl_party_resultsResults of one party in a Bundestag election, nationally and by Land — year, party (e.g. CDU, SPD, AfD, GRÜNE, FDP, Die Linke, BSW)
bwl_constituency_resultsResults of one constituency: winner, turnout, per-party first/second votes — year, constituency (number 1–299 or name, e.g. 1, Flensburg)
bwl_constituenciesList all 299 constituencies with winner and turnout — year, land (optional Land name or number), limit 1..299
bwl_turnoutVoter turnout by Land and nationally — year
bwl_healthReachability probe (ok / blocked / error) — one polite request

Notes

  • All data comes from the Bundeswahlleiterin's open data (free, no key, no login; Datenlizenz Deutschland – Namensnennung – Version 2.0).
  • Each call discovers the election's *_kerg2.csv link from its results page and parses the long-format file (semicolon-separated, German decimal commas).
  • Supported years: 2017, 2021, 2025 — kerg2 exists only for these (2013 has only the wide kerg.csv; 2009 has no English results page).
  • 2017/2021 files have 18 columns (no Gewählt) and call voters "Wähler" (2021/2025: "Wählende"); party names are the short names from kerg2 (CDU, CSU, AfD, GRÜNE, SPD, FDP, DIE LINKE/Die Linke, BSW …).
  • Constituency winner: 2025 reads the official Gewählt column — it names a party for 276 constituencies and shows "–" for the 23 whose direct winner was not allocated a seat under the 2025 second-vote coverage rule (there the winner is derived from the most first votes and labeled as such); 2017/2021 winners are always derived that way.

Tests: 24/24 green (19 offline + 5 live, 2026-11-10).

Development

python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
.venv/bin/pip install -e .
.venv/bin/python -m pytest tests/ -q

License

PolyForm Noncommercial 1.0.0 — free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Reviews

No reviews yet

Be the first to review this server!