mv-wahl-mcp
The server lets you search and retrieve the election programmes and Wahl-O-Mat data for all 19 parties in the Mecklenburg-Vorpommern 2026 Landtagswahl, as a retrieval-only research tool.
list_parties – View all 19 parties, their indexing status, source notes, and chunk counts.
search_programmes – Run FTS5 keyword searches across party programmes or Wahl-O-Mat theses/answers, with optional party and corpus filters.
get_party_programme – Fetch sequential text chunks of a selected party's programme or Wahl-O-Mat answers for reading.
coverage_status – Get a coverage table showing which parties are indexed and their source documentation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mv-wahl-mcp What do the parties say about affordable housing in their Wahlprogramme?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mv-wahl-mcp
MCP server for searching and retrieving the Wahlprogramme (election platforms) of all 19 parties admitted to the Landtagswahl Mecklenburg-Vorpommern 2026.
This is retrieval only — not a Wahl-O-Mat clone and not a voting recommender. Do not use it to compute "closeness" scores from user positions.
Built for Martin Müller / Remington S.: let a KI browse full party programmes (primary) plus the official bpb Wahl-O-Mat MV 2026 theses & answers (secondary corpus).
Quick start
git clone https://github.com/voundbrand/mv-wahl-mcp.git
cd mv-wahl-mcp
./run.shThat's it. The script creates a virtual environment if needed, installs dependencies, and starts the MCP server. The pre-built search index is included — no rebuild required.
Requirements: Python 3.11+
Related MCP server: Bundestag MCP Server
Add to Cursor or Claude Desktop
Run ./run.sh --print-config to get a ready-to-paste MCP configuration:
./run.sh --print-configCopy the output into your MCP config file:
Cursor:
~/.cursor/mcp.jsonor.cursor/mcp.jsonin your projectClaude Desktop:
claude_desktop_config.json
If you already have other MCP servers configured, merge the mv-wahl entry into your existing mcpServers object.
Features
Tool | Purpose |
| All 19 parties + indexing status |
| FTS5 keyword search ( |
| Fetch sequential chunks for one party |
| Coverage table (source → indexed) |
Corpora:
programme— full / website-captured Wahlprogramme (primary)wahlomat— bpb Wahl-O-Mat MV 2026 dataset (theses + party answers)
Test search without MCP
./run.sh & # or skip if you just want to test the search module
cd mv-wahl-mcp
source .venv/bin/activate
python -c "
from mv_wahl_mcp.search import search_programmes
import json
print(json.dumps(search_programmes('Wohnungsbau', limit=5), ensure_ascii=False, indent=2))
"Data layout
data/
parties.json # metadata + source URLs for all 19
programmes/ # PDF sources
programmes_text/ # pdftotext extracts
wahlomat/ # bpb Datensatz zip + xlsx
index.db # SQLite + FTS5 (pre-built, ready to use)Wahl-O-Mat dataset
Downloaded from the bpb download page:
https://www.bpb.de/themen/wahl-o-mat/mecklenburg-vorpommern-2026/579912/download/
File:
Wahl-O-Mat_Mecklenburg-Vorpommern_2026_Datensatz.zip
bpb licence restricts creating Wahl-O-Mat-like recommenders from the dataset; this project only indexes text for search/retrieval (journalistic/research-style analysis).
Programme sources
Prefer official party / Landesverband PDFs where available. Many smaller parties are mirrored via the schwerin.news Aug 2026 aggregation of all admitted lists:
See data/parties.json and the coverage_status tool for per-party notes. Short / website-captured texts (e.g. Die PARTEI, WLD, Team Freiheit, Handwerker 10-Punkte) are documented honestly.
Re-extract / re-index (optional)
Only needed if you modify the source PDFs or Wahl-O-Mat data:
# Needs poppler-utils (pdftotext)
for f in data/programmes/*.pdf; do
base=$(basename "$f" .pdf)
pdftotext -layout "$f" "data/programmes_text/${base}.txt"
done
python scripts/build_index.pyLicence / ethics
Party programmes remain copyright of the respective parties.
Wahl-O-Mat dataset © Bundeszentrale für politische Bildung — see
data/wahlomat/Hinweis.txt.This tool must not be turned into a proximity/voting recommender.
Coverage (build-time snapshot)
All 19/19 admitted Landeslisten are indexed. Volume varies:
Party | Chars (approx) | Notes |
SPD, AfD, CDU, Die Linke, GRÜNE, FDP, BSW, Volt | large full programmes | Official / Landesverband PDFs |
Tierschutzpartei, FREIE WÄHLER, Bündnis C, PdF, KPD | medium | Official or aggregator PDFs |
PIRATEN, ÖDP | shorter full programmes | Official / aggregator |
Die PARTEI, Team Freiheit, WLD | website captures | No long PDF published |
Handwerker Partei Deutschland | short 10-point PDF | Intentional short programme |
Secondary corpus: 722 Wahl-O-Mat position rows (38 theses × 19 parties) from the official bpb dataset.
Available Tools
4 toolscoverage_statusA
Return coverage table: which of the 19 parties are indexed and source notes.
Inputs: no named parameters. Returns: object
get_party_programmeA
Fetch sequential text chunks from one party's programme (or Wahl-O-Mat answers).
Args: party: Party id or short name (e.g. "CDU", "Volt", "BSW"). offset: Chunk offset (0-based). limit: Number of chunks to return (1–50). corpus: "programme" (default) or "wahlomat".
Inputs: party (required), limit, corpus, offset. Returns: object
list_partiesA
List all 19 parties with indexing status, source notes, and chunk counts.
Inputs: no named parameters. Returns: result
search_programmesA
Keyword/FTS search across Wahlprogramme (and optionally Wahl-O-Mat answers).
Args: query: Search terms in German or English (e.g. "Wohnungsbau", "Energiewende"). party: Optional party filter (id or short name, e.g. "SPD", "GRÜNE", "Die Linke"). corpus: Optional "programme" (full platforms) or "wahlomat" (theses + answers). limit: Max hits (1–50, default 10).
Inputs: query (required), limit, party, corpus. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools list_parties and coverage_status both report on which of the 19 parties are indexed, with only minor differences (chunk counts vs. a coverage table). This overlap could cause misselection, while search_programmes and get_party_programme are clearly distinct.
Tool names are consistently lowercase with underscores and mostly follow a verb_noun pattern (list_parties, search_programmes, get_party_programme). The exception is coverage_status, which uses a noun phrase, but it remains readable and predictable.
With exactly 4 tools, the server is well-scoped for its purpose of listing, checking coverage, searching, and retrieving election programme content. Each tool has a clear role and the count is appropriate.
The server covers the core read-only workflows: listing parties, verifying indexing status, performing keyword search, and fetching chunked content. No obvious gaps exist for the stated domain of accessing Wahlprogramme and Wahl-O-Mat data.
Related MCP Connectors
Abgeordnetenwatch MCP — German federal & state parliament data.
German, Austrian and EU parliament sources; signed, deterministic citation checks for AI answers
Nonpartisan civic data for Germany and the EU: who decides, MPs, laws, votes, elections, petitions.
Danish parliamentary cases, votes, politicians, parties, elections, and comparison tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving documents, activities, and plenary protocols from the German Bundestag's DIP system via MCP tools.59 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides programmatic access to official German Bundestag parliamentary data, enabling LLMs to answer questions about legislation, voting records, and members.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides live, source-linked transparency data on German MPs, including roll-call voting, side jobs, committee memberships, and election programs, via the Abgeordnetenwatch API. No API key required.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceProvides access to official 2022 French presidential election programs for five parties, retrieving exact passages with full references and without synthesis.Apache 2.0