プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Parlament MCP

作者:malkreideバージョン 0.4.1i★ –iパソコンで動く
レジストリ名io.github.malkreide/parlament-mcp

インストール

概要

作者による説明(英語の原文)

Swiss Federal Parliament Curia Vista OData API

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 法律・行政データ

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "parlament": {
      "command": "uvx",
      "args": [
        "parlament-mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add parlament -- uvx parlament-mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "parlament": {
      "command": "uvx",
      "args": [
        "parlament-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "parlament": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "parlament-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント malkreide で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

法律・行政データのほかのサーバーとの比較i

  • このカテゴリのほかの1748件のうち0%よりスターが多い
  • このカテゴリのほかの1748件のうち44%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1748件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Parlament MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.4.1)がレジストリに届いたのは42 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Korean Government Documents (HWPX), Censible, Private Law Wiki

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Censible

The Australian Census (2011, 2016, 2021) for any suburb, postcode or council, with projections.

作者:Censible-AU初期今日更新

クラウドで動く✓ censible.com.au

Private Law Wiki

Sourced answers, search and bank-case assessment for wiki.private.law by the Mothership runtime.

作者:privatelawattorneysとても新しい今日更新

クラウドで動く

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

🇩🇪 Deutsche Version

🏛️ parlament-mcp

Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide) –

connecting AI models to Swiss public data sources.

Note: This server covers the federal level (Curia Vista). This repo

additionally hosts a self-contained subproject under

openparldata-mcp/ — the subnational

counterpart for the 26 cantons and ~70 municipal parliaments

(OpenParlData.ch). The two are independent servers.

An MCP server that connects AI models to the Swiss Federal Parliament via the Curia Vista OData API (ws.parlament.ch). Access motions, interpellations, votes, members, sessions, and the verbatim debate transcripts of the Amtliches Bulletin – with no API key required (Phase 1 – No-Auth-First).


🎯 Anchor Demo Queries

Metadata layer:

*"Welche Vorstösse zu KI in der Schule sind hängig?"*

→ parlament_search_business(keyword="KI", keyword2="Schule", status="Eingereicht")

Verbatim transcripts (Amtliches Bulletin):

*"What did National Councillor Munz say in the 2024 spring session about the

Volksschule? Give me the exact wording with a correct AB citation."*

→ parlament_search_transcripts(speaker_name="Munz", session_id=5202, keyword="Volksschule")

→ then parlament_get_transcript(transcript_id=…) for the full wording.

Returns short, citable excerpts (AB 2024 N, 2024-03-13, Munz Martina) with

a stable source URL; the verbatim text is fetched on demand, never in bulk.

→ More use cases by audience →

Perfect for the KI-Fachgruppe Stadtverwaltung Zürich: find pending motions on AI in education, or quote what was actually said in the chamber – instantly.


🔧 Tools

ToolDescription
parlament_search_businessSearch Vorstösse by keyword, type, status, council, date
parlament_get_businessFull details of a single business (texts, FC response)
parlament_search_membersFind councillors by canton (e.g. ZH), party, council
parlament_get_votesParliamentary votes with Ja/Nein meaning
parlament_get_sessionsList recent sessions with IDs for follow-up queries
parlament_search_transcriptsSearch debate transcripts → citable excerpts with AB citation + source URL (speaker / session / business / date filters)
parlament_get_transcriptFetch the verbatim full text of a single speech by ID (capped, paginated, is_excerpt flagged)

🏗️ Architecture

┌──────────────────────────────────┐

│ MCP Host (Claude Desktop / │ │ Claude API / IDE) │ └─────────────┬─────────────────────┘ │ MCP Protocol (JSON-RPC 2.0) │ Transport: stdio (local) / SSE (cloud) ┌─────────────▼─────────────────────┐ │ parlament-mcp │ │ FastMCP · Python · Pydantic v2 │ │ │ │ ┌── metadata layer (server.py) ──┐ │ │ search_business · get_business │ │ │ search_members · get_votes │ │ │ get_sessions │ │ └─────────────────────────────────┘ │ ┌── transcript layer ────────────┐ ← separate module (transcripts.py) │ │ search_transcripts (excerpts) │ · Language='DE' dedups editions │ │ get_transcript (verbatim) │ · Type=1 = real speeches only │ └─────────────────────────────────┘ · retry + 45s read timeout └─────────────┬─────────────────────┘ │ HTTPS / OData v3 ┌─────────────▼─────────────────────┐ │ ws.parlament.ch / odata.svc │ │ Curia Vista – No Auth Required │ │ │ │ Business · Vote · MemberCouncil │ metadata path │ Session ─< Meeting ─< Subject ─< Transcript transcript path └───────────────────────────────────┘


🚀 Installation

Claude Desktop (stdio)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{

"mcpServers": { "parlament": { "command": "uvx", "args": ["parlament-mcp"] } } }

Local development
git clone https://github.com/malkreide/parlament-mcp

cd parlament-mcp pip install -e . python -m parlament_mcp.server

Cloud / Railway (SSE)
MCP_TRANSPORT=sse MCP_HOST=0.0.0.0 PORT=8080 python -m parlament_mcp.server

SSE endpoint: http://your-host:8080/sse

Network binding

By default the server binds to 127.0.0.1 (localhost only). Set MCP_HOST=0.0.0.0 only inside a container/cloud context (Docker, Railway, Render, Kubernetes). Never bind to 0.0.0.0 on a local dev machine – it exposes the server to your local network (NeighborJack risk); the server logs a warning if you do so outside a detected container.

Transport is selected via MCP_TRANSPORT (stdio default, or sse / streamable-http); --http is kept as an alias for streamable-http.

Authentication (optional)

The HTTP transport is open by default (public read-only data). To require a bearer token, serve via the CORS/auth app factory and set MCP_BEARER_TOKENS:

MCP_BEARER_TOKENS="alice:tok_abc,bob:tok_def" MCP_ALLOWED_ORIGINS="https://claude.ai" \

uvicorn parlament_mcp.server:create_http_app --factory --host 0.0.0.0 --port 8080

Each request then needs Authorization: Bearer ; identity comes from the validated token, not a session header (see docs/security.md).

Docker
docker compose up --build          # binds 127.0.0.1:8080 only

or build the hardened image directly (non-root, read-only FS):

docker build -t parlament-mcp .

Kubernetes manifests (hardened securityContext, resource limits, egress NetworkPolicy, Mcp-Session-Id sticky routing) live in deploy/k8s/; an HAProxy stick-table example is in deploy/haproxy.cfg.


🔗 Synergies

Partner ServerCombination
openparldata-mcpFederal ↔ subnational — same question across cantons & municipalities
fedlex-mcpLaw text ↔ parliamentary debate that created it
zurich-opendata-mcpCity policy ↔ cantonal/federal motions
swiss-statistics-mcpData backing ↔ motions citing statistics

Power query example:

"Zeige mir alle Zürcher Motionen zu KI in der Bildung

und verlinke die relevanten Bundesgesetze aus fedlex-mcp."


📊 Data Source

  • API: ws.parlament.ch/odata.svc
  • Authentication: None (Phase 1 – No-Auth-First)
  • Protocol: OData v3 / JSON
  • Coverage: All parliamentary businesses since 1978; votes since ~2000. Structured verbatim transcripts (Amtliches Bulletin) from 1999-12-06 onward (earlier years 1891–1999 exist only as archive scans — see Known Limitations).
  • Update cycle: Real-time (official government data)
Copyright — verbatim quotation is allowed

Official proceedings of Swiss authorities are excluded from copyright under Art. 5 para. 1 lit. a URG (Swiss Copyright Act). The verbatim wording of parliamentary debates in the Amtliches Bulletin may therefore be reproduced and quoted freely — which is exactly what the transcript tools return: the wording itself, never a summary standing in for it.


📜 Data sources & licenses

SourceLicenseAttribution
Curia Vista (ws.parlament.ch)CC BY 4.0© Schweizer Parlament, CC BY 4.0

Every tool returns a typed structured response (FastMCP exposes the output schema) carrying source, license, provenance, match_type and count alongside typed results. Data is passed through unmodified.

🧭 Phase

This server is in Phase 1 — Read-only Wrapper (all tools readOnlyHint: true, no writes). The full phase model and transition criteria are in docs/roadmap.md.

🔖 MCP Protocol Version

This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.

EraRevisionWho reaches it
initialize handshake2024-11-05 … `2025-11-25`What today's clients speak. The server answers with the revision asked for, or with the 2025-11-25 ceiling when the request asks for something newer.
Per-request envelope`2026-07-28`A request carrying the 2026-07-28 _meta envelope opens a modern connection.

Both revisions are pinned in tests/test_protocol_version.py and asserted against the installed SDK, so a Dependabot bump of mcp cannot move either one silently. The same file also measures the negotiation: one real client connection per era against the registered server, reading the revision off the connection instead of inferring it from a constant.

In the 2026-07-28 era there is no handshake to carry the server's identity; the SDK stamps io.modelcontextprotocol/serverInfo into the result _meta instead. The server passes its package version there (tests/test_server_info.py), so both eras report the same version.

Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern era, not for the handshake era — pinning against it alone would leave the era that current clients actually negotiate free to drift.

Update policy. When the gate fails, do not edit the constant blindly: read the spec changelog between the two revisions, verify the server still behaves, then move the constant, this section, README.de.md and CHANGELOG.md together.

🧱 MCP primitives

Phase 1 uses Tools only — rationale and the Phase-2 Resources plan are in docs/adr/ADR-003-mcp-primitives.md.

🏷️ Tool annotations

All tools declare explicit annotations consistent with their behaviour:

ToolreadOnlydestructiveidempotentopenWorld
parlament_search_business✅—✅✅
parlament_get_business✅—✅✅
parlament_search_members✅—✅✅
parlament_get_votes✅—✅✅
parlament_get_sessions✅—✅✅
parlament_search_transcripts✅—✅✅
parlament_get_transcript✅—✅✅

📈 Observability

Structured JSON logs go to stderr (stdout stays reserved for the stdio protocol). OpenTelemetry tracing wraps each tool call and auto-instruments outgoing HTTP; set OTEL_EXPORTER_OTLP_ENDPOINT (with the otel-export extra) to ship spans. See docs/security.md for the full security posture (Lethal-Trifecta assessment, egress allow-list, gateway hardening).


🛡️ Safety & Limits

AspectDetails
AccessRead-only (readOnlyHint: true) — the server cannot modify or delete any data
Personal dataParliamentary businesses are public record by law (BGÖ). No private data is accessed or stored.

| Rate limits | Built-in per-query caps: max. 100 results (businesses/members), 50 (votes), 30 (transcript sear

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く