Lintsure
Compliance readiness checks for code: EU AI Act, GDPR, SOC 2, ISO 27001. Local. Not legal advice.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Swiss Federal Parliament Curia Vista OData API
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"parlament": {
"command": "uvx",
"args": [
"parlament-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add parlament -- uvx parlament-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"parlament": {
"command": "uvx",
"args": [
"parlament-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"parlament": {
"type": "stdio",
"command": "uvx",
"args": [
"parlament-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub malkreide ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.1) เข้า registry 41 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Lintsure, INDEC Argentina (no oficial), EcuDataMCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Compliance readiness checks for code: EU AI Act, GDPR, SOC 2, ISO 27001. Local. Not legal advice.
Argentina's official statistics (INDEC): inflation, wages, poverty, trade, population. No signup.
Ecuador's open government data for AI assistants: CKAN, SRI, BCE, INEC, Supercias, SERCOP and more.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
🇩🇪 Deutsche Version
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).
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.
| Tool | Description |
|---|---|
parlament_search_business | Search Vorstösse by keyword, type, status, council, date |
parlament_get_business | Full details of a single business (texts, FC response) |
parlament_search_members | Find councillors by canton (e.g. ZH), party, council |
parlament_get_votes | Parliamentary votes with Ja/Nein meaning |
parlament_get_sessions | List recent sessions with IDs for follow-up queries |
parlament_search_transcripts | Search debate transcripts → citable excerpts with AB citation + source URL (speaker / session / business / date filters) |
parlament_get_transcript | Fetch the verbatim full text of a single speech by ID (capped, paginated, is_excerpt flagged) |
┌──────────────────────────────────┐
│ 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 └───────────────────────────────────┘
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "parlament": { "command": "uvx", "args": ["parlament-mcp"] } } }
git clone https://github.com/malkreide/parlament-mcp
cd parlament-mcp pip install -e . python -m parlament_mcp.server
MCP_TRANSPORT=sse MCP_HOST=0.0.0.0 PORT=8080 python -m parlament_mcp.server
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.
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 compose up --build # binds 127.0.0.1:8080 only
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.
| Partner Server | Combination |
|---|---|
openparldata-mcp | Federal ↔ subnational — same question across cantons & municipalities |
fedlex-mcp | Law text ↔ parliamentary debate that created it |
zurich-opendata-mcp | City policy ↔ cantonal/federal motions |
swiss-statistics-mcp | Data 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."
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.
| Source | License | Attribution |
|---|---|---|
| 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.
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.
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.
| Era | Revision | Who reaches it |
|---|---|---|
initialize handshake | 2024-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.
Phase 1 uses Tools only — rationale and the Phase-2 Resources plan are in docs/adr/ADR-003-mcp-primitives.md.
All tools declare explicit annotations consistent with their behaviour:
| Tool | readOnly | destructive | idempotent | openWorld |
|---|---|---|---|---|
parlament_search_business | ✅ | — | ✅ | ✅ |
parlament_get_business | ✅ | — | ✅ | ✅ |
parlament_search_members | ✅ | — | ✅ | ✅ |
parlament_get_votes | ✅ | — | ✅ | ✅ |
parlament_get_sessions | ✅ | — | ✅ | ✅ |
parlament_search_transcripts | ✅ | — | ✅ | ✅ |
parlament_get_transcript | ✅ | — | ✅ | ✅ |
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).
| Aspect | Details |
|---|---|
| Access | Read-only (readOnlyHint: true) — the server cannot modify or delete any data |
| Personal data | Parliamentary 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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo