Bundestag MCP Server

Bundestag MCP Server

Provides programmatic access to official German Bundestag parliamentary data, enabling LLMs to answer questions about legislation, voting records, and members.

Category
访问服务器

README

Bundestag MCP Server

⚠️ Work in Progress: This project is under active development. APIs may change. Contributions welcome!

An MCP (Model Context Protocol) server that provides programmatic access to official German Bundestag parliamentary data. This enables LLMs to answer questions about German parliament activities, legislation, voting records, and members.

Disclaimer

This project is strictly non-partisan and has no political intentions.

The sole purpose is to provide transparent, programmatic access to publicly available official data from the German parliament. All data comes from official government sources and independent transparency organizations. This tool:

  • Does not interpret, editorialize, or present any political opinions
  • Does not favor or oppose any political party
  • Simply provides factual access to public parliamentary records
  • Is intended for civic engagement, journalism, research, and education

The authors are not responsible for how this data is used or interpreted.

Data Sources

All data is retrieved from official, publicly available sources:

Source Organization Data Provided License
DIP API Deutscher Bundestag (Official) Parliamentary documents, legislative procedures, plenary protocols, MP information Public government data
AbgeordnetenWatch API AbgeordnetenWatch e.V. (Independent) Roll-call votes, individual MP voting records CC0 1.0

About the Data Sources

  • DIP (Dokumentations- und Informationssystem für Parlamentsmaterialien): The official documentation system of the German Bundestag. All parliamentary documents, procedures, and protocols are public records.

  • AbgeordnetenWatch: An independent, non-partisan transparency organization that documents how elected representatives vote. Their data is published under CC0 (public domain) license.

Both sources provide factual records of parliamentary proceedings without editorial content.

Features

Core Tools (DIP API)

  • Search Documents: Find parliamentary documents (Drucksachen) including bills, motions, and interpellations
  • Track Legislation: Follow legislative procedures (Vorgänge) and their current status
  • Access Debates: Search plenary protocol transcripts (Plenarprotokolle)
  • MP Information: Look up members of parliament, their party, constituency, and roles
  • Weekly Schedule: Get the current week's Bundestag activities

Voting Record Tools (AbgeordnetenWatch API)

  • Roll-Call Votes: Access official recorded votes (namentliche Abstimmungen)
  • Vote Details: See party-by-party breakdown of specific votes
  • Party Comparison: Compare voting patterns across parties on any topic
  • MP Voting History: Access individual MP voting records
  • Party Alignment: Calculate voting alignment between parties
  • Absence Rates: View attendance statistics
  • Party Unity: Measure internal party voting cohesion

Installation

Prerequisites

  • Python 3.11 or higher
  • pip or uv package manager

Install from source

# Clone the repository
git clone https://github.com/oguzhan/bundestag-mcp.git
cd bundestag-mcp

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install the package
pip install -e .

Usage

With Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "bundestag": {
      "command": "python",
      "args": ["-m", "bundestag_mcp.server"],
      "cwd": "/path/to/bundestag-mcp"
    }
  }
}

Running Standalone

python -m bundestag_mcp.server

Available Tools

Document & Procedure Tools

Tool Description
search_documents Search parliamentary documents by keywords, date, type
search_procedures Track legislative procedures and their status
get_plenary_protocols Access debate transcripts
get_mp_info Get MP biographical information
get_current_week Get current week's parliamentary schedule

Voting Record Tools

Tool Description
get_roll_call_votes List recorded votes with results
get_vote_details Party breakdown for a specific vote
compare_party_votes Compare party voting on a topic
get_mp_voting_history Individual MP's voting record
check_party_consistency Analyze party voting patterns on a topic
get_party_alignment_score Calculate voting alignment between two parties
get_absence_rates Party attendance statistics
get_party_unity_scores Internal party voting cohesion
find_rebel_mps Find MPs who voted differently from their party

Example Queries

"What documents about renewable energy were published this month?"
"What is the current status of the housing reform bill?"
"Show me the voting breakdown for the recent tax legislation"
"How often do the coalition parties vote together?"
"What is the attendance rate for each party?"

Caching

The server caches API responses locally (~/.bundestag_mcp/cache.db) to:

  • Improve response times
  • Reduce load on public APIs
  • Enable offline access to previously fetched data

Cache duration: 4-24 hours depending on data type.

Development

pip install -e ".[dev]"
pytest
ruff check .

Tests

The project includes unit tests and validation tests for the voting analysis:

# Run all tests
pytest

# Run voting calculation tests with verbose output
pytest tests/test_voting*.py -v

Key test coverage:

  • Alignment calculation: Tests for 0%, 50%, 100% alignment scenarios
  • Real data validation: Tests using actual Poll 6391 data to verify calculations
  • Edge cases: Missing parties, abstention handling, interpretation text

License

MIT License - see LICENSE file.

Contributing

Contributions are welcome. Please ensure any changes maintain the non-partisan nature of this project.

Acknowledgments

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选