Skip to main content
Glama
germany-parliament-mcp-server

germany-parliament-mcp-server

by cyanheads

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

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

Related MCP server: Bundestag MCP Server

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

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and retrieving documents, activities, and plenary protocols from the German Bundestag's DIP system via MCP tools.
      75 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A production-ready MCP server that provides access to the German Bundestag's parliamentary documentation system (DIP API).
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables discovery and retrieval of European Parliament procedures, MEPs, plenary votes, documents, speeches, and questions from the Open Data API over STDIO or Streamable HTTP.
      353 npm
      1
      Apache 2.0