
germany-parliament-mcp-server
io.github.cyanheads/germany-parliament-mcp-server
Track German proceedings, read parliamentary documents, and find parliamentary activity via MCP.
Documentation
@cyanheads/germany-parliament-mcp-server
Track German parliamentary proceedings, read printed papers and plenary protocols, and find parliamentary activities and persons via MCP. STDIO or Streamable HTTP.
Overview
Follow business through the Bundestag and Bundesrat using DIP, Germany's parliamentary documentation system. Search for a bill or inquiry, trace its procedural steps, and read the official papers and plenary record. Look up people and find their speeches, questions, and other recorded activities.
Tools
| Tool | Description |
|---|---|
bundestag_search_proceedings | Find legislation and other parliamentary business by title, subject, status, term, or reference |
bundestag_get_proceeding | Read a proceeding and its chronological steps with decisions and document citations |
bundestag_search_documents | Find printed papers or plenary protocols, including documents cited by a proceeding's steps |
bundestag_get_document | Read document text or printed pages, or list the document's linked proceedings |
bundestag_search_activities | Find speeches, questions, and other activities by person or proceeding |
bundestag_search_persons | Resolve names to DIP person IDs and inspect roles by term |
bundestag_list_reference | Look up terms, German filter vocabulary, identifiers, and attribution |
Capability reference
bundestag_search_proceedings tool
Search by title, descriptor, legislative term, proceeding type, subject area, initiator, or consultation status. Search known references with gestaNumber, councilDocumentNumber, or promulgationCitation. Date filters apply to the latest linked document date. Use bundestag_list_reference for German filter values.
bundestag_get_proceeding tool
Pass a DIP proceedingId to read the proceeding and its chronological steps. An optional chamber filters the steps while preserving the proceeding summary. A cited document provides the kind and ID to use with the step's positionId in bundestag_get_document.
bundestag_search_documents tool
Choose kind: "paper" or kind: "protocol". Both support number, publisher, term, and date filters. Papers also support title, document type, originator, and lead ministry. A proceedingId restricts results to documents cited by that proceeding's steps. Each result's linked-proceeding preview can be expanded with bundestag_get_document in proceedings mode.
bundestag_get_document tool
- Supply the
kindanddocumentId, or the kind and a chamber-qualifieddocumentNumbersuch asBR-PlPr. 1099. A bare number requireschamber. Usetermto disambiguate a number when needed. - Omit page selectors for whole-document DIP text. For a step citation, pass its
positionIdwith the cited document. This reads the cited printed pages from the official PDF, including any other material on those pages. For a known protocol citation, setstartPageand optionallyendPagefor an inclusive printed range. - Try
{"kind":"protocol","documentId":"5693","positionId":"665933"}for a step in proceeding318941. The text begins on printed page 27001, physical PDF page 93. For a Bundesrat example, position666674in proceeding319454cites protocol5694starting on printed page 469, physical PDF page 11. - Text chunks default to 8,000 Unicode code points, with a maximum of 40,000 per call. Repeat the same selection with
nextOffsetCharsasoffsetCharsand include the returnedtextRevision. If the revision changes, restart at offset zero. - An unavailable-text result includes a reason and preserves the citation. Open the official PDF when it is linked. Image-only pages require reading the PDF directly because this server does no OCR.
- Use
mode: "proceedings"and follownextCursorto list the document's linked proceedings.
bundestag_search_activities tool
Supply personId, personName, or proceedingId. Filter by activity type, term, or date. Results carry document references and printed pages when DIP supplies them. Resolve the person first when a name is ambiguous.
bundestag_search_persons tool
Search a surname or a surname-first full name, or list people by term. The optional role filter matches German DIP values such as MdB. With a term and role, the same role record must match both.
bundestag_list_reference tool
Choose terms, proceedingTypes, consultationStatuses, subjectAreas, documentTypes, activityTypes, personRoles, identifiers, or attribution. Vocabulary lists give examples with English glosses.
Features
Built on @cyanheads/mcp-ts-core with stdio and Streamable HTTP transports, pluggable authentication, swappable storage, structured logging, and optional OpenTelemetry tracing.
- List calls default to 20 records and accept up to 100. Repeat the same filters with
nextCursorascursoruntil no continuation remains. A filtered page can be empty and still have a continuation. - Cursors are valid for up to 15 minutes on the server instance that issued them. A restart, a request routed to a different replica, or eviction of older cursors can invalidate them sooner. If you receive
invalid_cursor, restart the same search without the cursor. - Responses preserve DIP provenance, German source wording, and official citations where available. The underlying records are available free of charge from Deutscher Bundestag/Bundesrat – DIP. See the DIP reuse terms.
- Data is limited to DIP and its cited official PDFs. Roll-call ballots, consolidated statute text, audiovisual archives, separate open-data exports, and PDF OCR are outside this server's scope.
Getting started
The npm install requires Node.js 24 or later. Get a current public API key from the DIP API help page, or use your personal key. Set BUNDESTAG_API_KEY in your shell before running the command.
claude mcp add -e "BUNDESTAG_API_KEY=$BUNDESTAG_API_KEY" germany-parliament-mcp-server -- npx -y @cyanheads/germany-parliament-mcp-server
For other MCP clients, add the following configuration and replace YOUR_DIP_KEY with your key.
{
"mcpServers": {
"germany-parliament-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/germany-parliament-mcp-server"],
"env": { "BUNDESTAG_API_KEY": "YOUR_DIP_KEY" }
}
}
}
The Claude Desktop bundle prompts for the DIP key at installation.
Configuration
| Variable | Description | Default |
|---|---|---|
BUNDESTAG_API_KEY | Required DIP API key | — |
MCP_TRANSPORT_TYPE | stdio or http | stdio |
MCP_HTTP_HOST | HTTP bind address | 127.0.0.1 |
MCP_HTTP_PORT | HTTP listen port | 3010 |
MCP_HTTP_ENDPOINT_PATH | Streamable HTTP endpoint path | /mcp |
MCP_USAGE_REPORTING | Opt in to sending aggregate tool-call counts to the maintainer | false |
See .env.example for authentication, storage, and telemetry settings. If DIP rejects a stale key, replace it and restart the server.
Running the server
From source
With Bun 1.4.4+ and Node.js 24+, copy .env.example to .env and set BUNDESTAG_API_KEY.
bun install
bun run build
bun run start:stdio
Use bun run start:http to serve Streamable HTTP at http://127.0.0.1:3010/mcp with the default bind settings.
Docker
docker run --rm -p 127.0.0.1:3010:3010 -e BUNDESTAG_API_KEY ghcr.io/cyanheads/germany-parliament-mcp-server:latest
Export BUNDESTAG_API_KEY in your shell before running Docker. The image defaults to HTTP. For a local image, run docker build -t germany-parliament-mcp-server . and use that image name in the run command.
Project structure
| Directory | Purpose |
|---|---|
src/mcp-server/tools | Tool definitions and document selectors |
src/services/dip | DIP client, filters, joins, and pagination |
src/services/pdf | Printed-page mapping and PDF text extraction |
src/dip-records | DIP record schemas and normalized citations |
src/reference | Parliamentary terms, vocabulary, and citation guidance |
tests/ | Tool, DIP service, and PDF tests |
See docs/tree.md for the full tree.
Development guide
See CLAUDE.md for development guidelines and docs/design.md for domain design. Register tools in src/index.ts and validate DIP records at the service boundary. Keep missing upstream fields absent and preserve the same data in both MCP output surfaces.
Contributing
Issues are welcome. Run checks and tests before submitting.
bun run devcheck
bun run test
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
@cyanheads/germany-parliament-mcp-servernpm install @cyanheads/germany-parliament-mcp-server@cyanheads/germany-parliament-mcp-servernpm install @cyanheads/germany-parliament-mcp-serverRelated Servers
io.github.cyanheads/anime-mcp-server
Search anime/manga, franchise relations, schedule, characters, rankings, studio filmography.
io.github.cyanheads/art-institute-chicago-mcp-server
Search the Art Institute of Chicago collection: artworks, artists, exhibitions, and audio guides.
io.github.cyanheads/arxiv-mcp-server
Search arXiv, fetch paper metadata, and read full-text content.