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

austria-parliament-mcp-server

by cyanheads
README.md
<div align="center">
  <h1>@cyanheads/austria-parliament-mcp-server</h1>
  <p><b>Trace Austrian bills, club votes and debates, read plenary records, and look up members via MCP. STDIO or Streamable HTTP.</b><br><sub>8 read-only tools</sub></p>
</div>

<div align="center">

[![Version](https://img.shields.io/badge/Version-0.1.0-blue.svg?style=flat-square)](./package.json) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![npm](https://img.shields.io/npm/v/@cyanheads/austria-parliament-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/austria-parliament-mcp-server)

[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/austria-parliament-mcp-server/releases/latest/download/austria-parliament-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=austria-parliament-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvYXVzdHJpYS1wYXJsaWFtZW50LW1jcC1zZXJ2ZXIiXX0=) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22austria-parliament-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Faustria-parliament-mcp-server%22%5D%7D)

</div>

## Overview

Research Austria’s National Council (Nationalrat, `NR`) and Federal Council (Bundesrat, `BR`) using records from Parlament Österreich. Search with German terms and follow official citations and links between items, sittings, documents, and people. No API key is required.

### Tools

| Tool | Description |
|:---|:---|
| `atparl_search_items` | Find parliamentary business by chamber, period, item type, entry date, or subject. |
| `atparl_get_item` | Read an item’s history, club votes, documents, and gazette citations. |
| `atparl_search_sittings` | Find plenary sittings and published protocols. |
| `atparl_get_sitting` | Read a sitting’s agenda and speaker turns. |
| `atparl_get_document` | Read eligible HTML as Markdown or check that an eligible PDF exists. |
| `atparl_search_members` | Find members by name or mandate. |
| `atparl_get_member` | Read a member’s mandates, biography, and optional plenary speech index. |
| `atparl_list_reference` | Look up Parliament’s periods, codes, labels, and committees. |

### Follow a bill to the debate

1. Call `atparl_search_items` with `{"period":"XXVIII","type":"government_bill","title_contains":"GewO-EU-Finanzberufsverordnungen"}` to find the [GewO-EU-Finanzberufsverordnungen Novelle 2025](https://www.parlament.gv.at/gegenstand/XXVIII/I/203).
2. Call `atparl_get_item` with `{"id":"XXVIII/I/203","fields":["stages","votes","gazette"]}` for the chamber stages, club votes, and [BGBl. I Nr. 66/2025](https://www.ris.bka.gv.at/Dokument.wxe?Abfrage=BgblAuth&Dokumentnummer=BGBLA_2025_I_66).
3. Follow the [44th Nationalrat sitting](https://www.parlament.gv.at/gegenstand/XXVIII/NRSITZ/44) in the stages. Call `atparl_get_sitting` with `{"url":"/gegenstand/XXVIII/NRSITZ/44","agenda_item":"7:1"}`, then pass Barbara Kolm’s [protocol URL](https://www.parlament.gv.at/dokument/XXVIII/NRSITZ/44/A_-_16_48_23_00846734.html) as `url` to `atparl_get_document` to read the speech.

## Capability reference

### `atparl_search_items` <sub>tool</sub>

- Filter by item type, subtype, topic, keyword, EuroVoc, German title fragment, item number, club, or person. Use `atparl_list_reference` for exact source values. Broad title searches may require a narrower scope.
- Returns canonical IDs and citations, newest entries first. Without a period or date bound, searches the current Nationalrat period. For BR, `period` refers to the concurrent Nationalrat period.

### `atparl_get_item` <sub>tool</sub>

- Pass one of `id`, `url`, or `citation`. Add `period` for a Nationalrat citation such as `203 d.B.`. Bundesrat forms include `438/A(E)-BR/2026` and `11711/BR d.B.`.
- Read the full history or use `fields` for selected parts such as `["gazette","votes"]` alongside item identity and attribution.
- Written questions expose published roles, stages, deadlines, and answer links and citations where available. Question titles and question and answer texts are excluded.

### `atparl_search_sittings` <sub>tool</sub>

- Filter by chamber, period, and inclusive dates. With neither a period nor a date bound, searches the current Nationalrat period.
- Each match carries the sitting URL and published HTML and PDF protocol links when available.

### `atparl_get_sitting` <sub>tool</sub>

- Use a sitting URL or the chamber and sitting number. Supply the period for a Nationalrat number.
- Pass an `agenda_item` ID from the returned agenda to select one debate and its speaker turns, with protocol and video links where published.

### `atparl_get_document` <sub>tool</sub>

- Follow an eligible Parliament document URL or `/dokument/` path. A body larger than 40,000 UTF-8 bytes returns an outline. Read one part with its `section` ID or a protocol Randnummer anchor such as `#130`. Continue with `next_section` when present.
- An existing eligible PDF returns its URL with `found: true` and `reason: "format_unavailable"`. The tool does not extract PDF text or perform OCR.

### `atparl_search_members` <sub>tool</sub>

- Filter by name fragment, chamber or historical assembly, period or era, club, electoral party, province, constituency, gender, or presidency. Use `atparl_list_reference` for filter vocabularies.
- Returns a Parliament person ID (`pad`) for each match.

### `atparl_get_member` <sub>tool</sub>

- Use `pad` to retrieve public mandate and function history and biographical details. Contact information and disclosures are excluded.
- Set `include_speeches: true` to page through a member’s plenary speech index. Follow an eligible protocol link with `atparl_get_document` for the speech itself.

### `atparl_list_reference` <sub>tool</sub>

- Select `periods`, `item_types`, `topics`, `clubs`, `status_and_phases`, `speech_kinds`, or `committees` as the `topic`.
- `clubs` also returns member-search vocabularies. `committees` links to committee records, sitting overviews, and the latest published agendas where available.

## Features

Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core), with stdio and Streamable HTTP, optional JWT or OAuth authentication, structured logging, and optional OpenTelemetry.

- Date filters use inclusive Austrian calendar dates in `YYYY-MM-DD` format. The item, sitting, and protocol indexes start with the XX. legislative period (January 15, 1996), press links with the XXI. period, resolutions with the XXII., and individual speech protocols with the XXVI. Member records go back to 1918.
- Search pagination uses one-based `page` and `limit` (default 25, maximum 100). Match counts precede delisting, so follow `next_page` even if the current page is empty.
- Scope excludes Bundesrat bill proposals, citizens’ initiatives, EU-scrutiny collections, calendar and press-service searches, committee memberships, review-draft text, and media retrieval.

### Data and reuse

- For covered open-data records, credit **Parlament Österreich, CC BY 4.0** with the returned source URL and indicate normalization or excerpts. The dataset pages specify which fields the licence covers. [Daten und Lizenz](https://www.parlament.gv.at/recherchieren/open-data/daten-und-lizenz/index.html)
- Eligible legislative documents and stenographic protocols are parliamentary free works. Cite the original document and identify any excerpt or Markdown conversion. [Daten und Lizenz](https://www.parlament.gv.at/recherchieren/open-data/daten-und-lizenz/index.html)
- The member speech index (filter 251) is a website feature governed by Parliament’s terms for political reporting, political education, and private non-commercial use. Follow the terms’ credit requirements for public use. [Nutzungsbedingungen](https://www.parlament.gv.at/services/hilfe/nutzungsbedingungen/index.html)

## Getting started

Run locally in Claude Code:

```sh
claude mcp add austria-parliament-mcp-server -- npx -y @cyanheads/austria-parliament-mcp-server
```

For clients that use an MCP config file:

```json
{
  "mcpServers": {
    "austria-parliament-mcp-server": {
      "command": "npx",
      "args": ["-y", "@cyanheads/austria-parliament-mcp-server"]
    }
  }
}
```

For Claude Desktop, open the downloaded `.mcpb` bundle. The npm package and bundle use Node.js v24 or newer.

## Configuration

| Variable | Description | Default |
|:---|:---|:---|
| `MCP_TRANSPORT_TYPE` | Transport, `stdio` or `http`. | `stdio` |
| `MCP_HTTP_HOST` | HTTP bind address. | `127.0.0.1` |
| `MCP_HTTP_PORT` | HTTP server port. | `3010` |
| `MCP_HTTP_ENDPOINT_PATH` | Streamable HTTP endpoint path. | `/mcp` |
| `MCP_SESSION_MODE` | HTTP session mode, `stateless`, `stateful`, or `auto`. | `stateless` |
| `MCP_AUTH_MODE` | Authentication, `none`, `jwt`, or `oauth`. | `none` |
| `MCP_LOG_LEVEL` | Minimum log level. | `info` |
| `OTEL_ENABLED` | Enable OpenTelemetry. | `false` |
| `MCP_USAGE_REPORTING` | Opt in to tool-call summaries sent daily and at shutdown. | `false` |

See [`.env.example`](./.env.example) for more framework settings.

## Running the server

### Local development

Requires [Bun v1.4.4](https://bun.sh/) or higher and Node.js v24+ for the launch scripts.

```sh
git clone https://github.com/cyanheads/austria-parliament-mcp-server.git
cd austria-parliament-mcp-server
bun install
bun run rebuild
bun run start:stdio
# Or start HTTP on http://127.0.0.1:3010/mcp
bun run start:http
```

### Docker

```sh
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/austria-parliament-mcp-server:latest
```

The image defaults to stateless HTTP at `/mcp` and logs to `/var/log/austria-parliament-mcp-server`. For stdio, use `-i -e MCP_TRANSPORT_TYPE=stdio` in place of the port mapping. Build locally with `docker build -t austria-parliament-mcp-server .`.

## Project structure

| Directory | Purpose |
|:---|:---|
| `src/mcp-server/tools/definitions` | Eight MCP tool contracts and handlers. |
| `src/services/parliament` | Parliament request boundary, record parsing, document conversion, and reference data. |
| `tests/` | Tool and source tests with upstream fixtures. |
| `docs/` | [Server design](./docs/design.md) and [directory tree](./docs/tree.md). |

## Development guide

See [`CLAUDE.md`](./CLAUDE.md) for development guidelines. Register tools in `src/index.ts`, validate upstream data before projecting licensed fields, and keep rendered output and `structuredContent` in sync.

## Contributing

Issues are welcome. Run checks and tests before submitting:

```sh
bun run devcheck
bun run test
```

## License

[Apache-2.0](./LICENSE) for the server code. Parliamentary records retain their source terms.