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

Lobbywatch MCP

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

インストール

概要

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

Lobbywatch.ch transparency data on parliamentarians, interests, access badges

PopNx MCPの3つの柱

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

できること

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

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他

インストール

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

インストールの前に

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

必要なもの

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

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

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

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

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

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

claude mcp add lobbywatch -- uvx lobbywatch-mcp

Cursorで開く

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

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

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

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

VS Codeで開く

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

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

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

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

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

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

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

できること

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

基本チェックi

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

  • ✓ 合格

    作者とリポジトリが一致

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

  • … 未チェック

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

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

  • … 未チェック

    ライセンスがある

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

  • – 対象外

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

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

  • – 対象外

    OAuthでサインイン

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

  • … 未チェック

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

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

その他のほかのサーバーとの比較i

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

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

よくある質問

Lobbywatch MCPは安全ですか?

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

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

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

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

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

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

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

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

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

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Statuser

代わりの候補

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

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

Spec Driven Development

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

作者:formulahendry初期↓ 66/週★ 44014 か月前更新

パソコンで動く

Remote Desktop Commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

作者:desktop-commander成長中★ 2113 日前更新

クラウドで動く✓ desktopcommander.app

Statuser

Monitor services, manage incidents and status pages in Statuser.cloud from your AI assistant.

作者:statuser-cloud初期↓ 1033/週今日更新

パソコンでもクラウドでも

作者のREADME

READMEを開く

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

🏛️ lobbywatch-mcp

An MCP server that connects AI models to Lobbywatch.ch, the largest lobby database of the Swiss Federal Parliament — conflicts of interest, lobby groups, access badges, and transparency scores.

🇩🇪 Deutsche Version

Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide) — connecting AI models to Swiss public data sources.


🎯 Anchor Demo Query

*"Welche Mitglieder der WBK-N haben Interessenbindungen zu Bildungsverlagen oder privaten Bildungsträgern, und wie ist ihre Transparenz-Bewertung?"*

Which members of the National Council's Education Commission have declared conflicts of interest with educational publishers or private education providers, and how does their compensation transparency score compare?

→ More use cases by audience →

Demo

Overview

Lobbywatch.ch maintains the largest public database on Swiss federal parliamentarians and their connections to lobby organisations: 245 parliamentarians, ~7'800 interessenbindungen (declared mandates), 139 lobby groups, 368 access-badge holders, updated weekly, licensed CC BY-SA 4.0.

lobbywatch-mcp exposes this data to Large Language Models via the Model Context Protocol. It is designed to be used alongside parlament-mcp (the official Swiss Parliament's Curia Vista data): the pair makes it possible to ask *what* a parliamentarian did officially and *who* they are connected to — in a single conversation.

Features

  • Dump-first, API-fallback architecture. The weekly JSON dump is the primary source (stable, verified in production); the live dataIF REST API is used only where it returns reliable data (lobby groups, search).
  • Stale-cache fallback, never silent. If the dump cannot be refreshed, a cached copy up to 7 days old answers instead, and every dump-backed response then carries a stale block with its download time, age and the reason the refresh failed. The source is retried every 15 minutes; lobbywatch_refresh_dump never falls back.
  • Seven Phase 1 tools — parliamentarian lookup, conflict-of-interest listing, branche search, lobby group fetch, rankings, transparency quota, cache control.
  • CC BY-SA 4.0 attribution baked into every response via Pydantic envelopes.
  • Dual transport — stdio for Claude Desktop, streamable-http / sse for cloud deployments.
  • Fuzzy name matching via rapidfuzz for natural LLM input like "Jositsch" or "Wehrli".
  • No authentication required (Phase 1 — No-Auth-First).

Architecture

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

LLM client │ LobbywatchClient │ (Claude Desktop, │ │ Inspector, …) │ ┌───────────────────┐ │ │ │ │ Dump cache │ │ cms.lobbywatch.ch │ MCP │ │ (24 h TTL, │ │ ┌──────────────────┐ ▼ stdio / │ │ ~80 MB resident)├─────┼─────►│ weekly JSON │ ┌─────────┐ HTTP │ └───────────────────┘ │ │ export (~17 MB) │ │ FastMCP │◄────►│ │ └──────────────────┘ │ server │ │ ┌───────────────────┐ │ ┌──────────────────┐ └─────────┘ │ │ dataIF REST ├─────┼─────►│ /interface/v1/ │ │ │ (live fallback) │ │ │ json/… │ │ └───────────────────┘ │ └──────────────────┘ └─────────────────────────────┘

Outbound HTTP runs through a single httpx.AsyncClient with follow_redirects=False, an SSRF guard that blocks RFC1918 / link-local / metadata IPs, and an httpx event hook that re-resolves on every request. The dump path is the primary source of truth for parliamentarian queries; dataIF is only used for lobby group lookups and the search endpoint.

Prerequisites

  • Python 3.11 or newer
  • Internet access to download the weekly Lobbywatch JSON export (~17 MB zipped)

Installation

From PyPI (after first release):

pip install lobbywatch-mcp

From source:

git clone https://github.com/malkreide/lobbywatch-mcp.git

cd lobbywatch-mcp pip install -e ".[dev]"

Usage

Standalone
lobbywatch-mcp

This starts the server in stdio mode. For HTTP:

LOBBYWATCH_MCP_TRANSPORT=http LOBBYWATCH_MCP_PORT=8000 lobbywatch-mcp
Container

A hardened multi-stage Dockerfile ships with the repo (non-root, read-only-rootfs compatible). See docs/deployment.md and deploy/docker-compose.example.yml for resource limits, sticky-LB guidance and egress hardening.

docker build -t lobbywatch-mcp:0.2.0 .

docker run --rm -p 127.0.0.1:8000:8000 lobbywatch-mcp:0.2.0

Claude Desktop

Add to your claude_desktop_config.json:

{

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

A full example is provided in claude_desktop_config.json.

Example Queries

Once connected, try prompts such as:

  • *"Give me the top 10 parliamentarians by number of interessenbindungen in the SP party."*
  • *"Which WBK-N members have mandates in the publishing or education industry?"*
  • *"Look up the lobby group 'economiesuisse' and list its connected parliamentarians."*
  • *"What is the compensation-transparency score distribution for the finance commission (FK-N)?"*

Tools

All tool names use the lobbywatch_ namespace prefix (since 0.2.0) to avoid collisions with sibling portfolio servers.

ToolPurposeSource
lobbywatch_get_parlamentarier(name_or_id)Full profile + all conflicts of interestDump
lobbywatch_list_interessenbindungen(name_or_id, nur_hauptberuflich, nur_aktiv)Filtered mandate listDump
lobbywatch_search_parlamentarier_nach_branche(branche_query, kommission, limit)Cross-filter by industry and commissionDump
lobbywatch_get_lobbygruppe(name_or_id)Lobby group with connected MPs and organisationsLive dataIF
lobbywatch_get_ranking(kriterium, kommission, partei, limit)Top-N by criterionDump
lobbywatch_get_transparenzquote(kommission)Distribution of compensation transparency labelsDump
lobbywatch_refresh_dump() / lobbywatch_dump_status()Cache controlDump

Configuration

All behaviour is controlled via environment variables:

VariableDefaultPurpose
LOBBYWATCH_MCP_TRANSPORTstdioTransport (stdio, http, sse)
LOBBYWATCH_MCP_HOST127.0.0.1HTTP bind host (set to 0.0.0.0 only behind an auth gateway)
LOBBYWATCH_MCP_PORT8000HTTP bind port
LOBBYWATCH_MCP_CACHE_DIR~/.cache/lobbywatch-mcpDump cache location
LOBBYWATCH_MCP_CACHE_TTL86400 (24h)Cache time-to-live in seconds
LOBBYWATCH_MCP_STALE_MAX_AGE604800 (7 days)Oldest cached dump that may answer when the refresh fails, in seconds; 0 disables the fallback
LOBBYWATCH_MCP_HTTP_TIMEOUT60HTTP timeout in seconds
LOBBYWATCH_MCP_CORS_ORIGINS_(unset)_Comma-separated origin allow-list for HTTP/SSE; when set, exposes Mcp-Session-Id to browsers
LOBBYWATCH_MCP_LOG_FORMATtexttext (stdlib formatter) or json (structured via structlog)
LOBBYWATCH_MCP_LOG_LEVELINFODEBUG / INFO / WARNING / ERROR
LOBBYWATCH_MCP_OTEL_ENABLED0Set to 1 to enable OpenTelemetry tracing (requires pip install 'lobbywatch-mcp[obs]')
LOBBYWATCH_MCP_OTEL_ENDPOINT_(unset)_OTLP/HTTP collector endpoint (e.g. http://localhost:4318/v1/traces)

Project Structure

lobbywatch-mcp/

├── src/lobbywatch_mcp/ │ ├── init.py │ ├── main.py # CLI + transport selection │ ├── config.py # URLs, cache paths, attribution │ ├── client.py # Dump download + dataIF client │ ├── models.py # Pydantic v2 response envelopes │ └── server.py # FastMCP tool registrations ├── tests/ │ ├── conftest.py # Fixture parliamentarians │ ├── test_client.py # Respx-mocked unit tests │ ├── test_server.py # Tool integration tests │ └── test_live.py # @pytest.mark.live — excluded from CI ├── .github/workflows/ │ ├── ci.yml # Test matrix + ruff │ └── publish.yml # PyPI OIDC Trusted Publisher ├── claude_desktop_config.json ├── pyproject.toml └── ...

Data License & Attribution

The code is released under the MIT License.

The data served through this MCP is © Lobbywatch.ch and licensed under CC BY-SA 4.0. Every response envelope includes the attribution string. Downstream users must:

  1. Credit Lobbywatch.ch as the data source.
  2. Share derivative datasets under the same CC BY-SA 4.0 terms.
  3. Understand that Lobbywatch is a community-researched database — not an official register. It is authoritative for transparency research but should not be confused with the Federal Parliament's own declarations.

Known Limitations

  • The upstream /table/parlamentarier/... dataIF REST endpoint currently returns empty result sets. The server works around this by using the weekly JSON dump instead.
  • zutrittsberechtigungen (access badges) are not populated in the "essential" dump variant used here. A future release will add a dedicated tool using the non-essential dump.

Contributing

See CONTRIBUTING.md.

Security

See SECURITY.md for the security posture, accepted-risk decisions, and how to report a vulnerability.

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 constants alone are the weaker form, so tests/test_spec_2026_07_28.py measures both eras through the assembled ASGI app: server/discover without a session, an initialize asking for a future revision capped at 2025-11-25, and every tool called over a 2026-07-28 connection with SDK deprecations raised as errors.

Native to `2026-07-28`. lobbywatch_refresh_dump reports its progress as notifications/progress, which both eras deliver to any client that sends a progressToken. It used to log via `notifications/message

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

PopNxに聞く