Repository avatar
Other Tools
v0.1.1
active

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.

7 Tools

Version License npm Install in Claude Desktop


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

ToolDescription
bundestag_search_proceedingsFind legislation and other parliamentary business by title, subject, status, term, or reference
bundestag_get_proceedingRead a proceeding and its chronological steps with decisions and document citations
bundestag_search_documentsFind printed papers or plenary protocols, including documents cited by a proceeding's steps
bundestag_get_documentRead document text or printed pages, or list the document's linked proceedings
bundestag_search_activitiesFind speeches, questions, and other activities by person or proceeding
bundestag_search_personsResolve names to DIP person IDs and inspect roles by term
bundestag_list_referenceLook 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 kind and documentId, or the kind and a chamber-qualified documentNumber such as BR-PlPr. 1099. A bare number requires chamber. Use term to disambiguate a number when needed.
  • Omit page selectors for whole-document DIP text. For a step citation, pass its positionId with 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, set startPage and optionally endPage for an inclusive printed range.
  • Try {"kind":"protocol","documentId":"5693","positionId":"665933"} for a step in proceeding 318941. The text begins on printed page 27001, physical PDF page 93. For a Bundesrat example, position 666674 in proceeding 319454 cites protocol 5694 starting 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 nextOffsetChars as offsetChars and include the returned textRevision. 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 follow nextCursor to 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 nextCursor as cursor until 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

VariableDescriptionDefault
BUNDESTAG_API_KEYRequired DIP API key—
MCP_TRANSPORT_TYPEstdio or httpstdio
MCP_HTTP_HOSTHTTP bind address127.0.0.1
MCP_HTTP_PORTHTTP listen port3010
MCP_HTTP_ENDPOINT_PATHStreamable HTTP endpoint path/mcp
MCP_USAGE_REPORTINGOpt in to sending aggregate tool-call counts to the maintainerfalse

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

DirectoryPurpose
src/mcp-server/toolsTool definitions and document selectors
src/services/dipDIP client, filters, joins, and pagination
src/services/pdfPrinted-page mapping and PDF text extraction
src/dip-recordsDIP record schemas and normalized citations
src/referenceParliamentary 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.

NPM
@cyanheads/germany-parliament-mcp-server
Install Command
npm install @cyanheads/germany-parliament-mcp-server
Runtime: npx
NPM
@cyanheads/germany-parliament-mcp-server
Install Command
npm install @cyanheads/germany-parliament-mcp-server
Runtime: npx