Swiss Federal Parliament Curia Vista OData API
Valid MCP server (1 strong, 4 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
4 files analyzed Β· 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-malkreide-parlament-mcp": {
"args": [
"parlament-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
Part of the Swiss Public Data MCP Portfolio β connecting AI models to Swiss public data sources.
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 debate transcripts β
with no API key required (Phase 1 β No-Auth-First).
"Welche VorstΓΆsse zu KI in der Schule sind hΓ€ngig?" β
parlament_search_business(keyword="KI", keyword2="Schule", status="Eingereicht")
Perfect for the KI-Fachgruppe Stadtverwaltung ZΓΌrich: find pending motions on AI in education, digitisation initiatives, or any policy topic β 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_get_transcripts | Debate excerpts by keyword or speaker (Amtliches Bulletin) |
ββββββββββββββββββββββββββββββββββββ
β MCP Host (Claude Desktop / β
β Claude API / IDE) β
βββββββββββββββ¬βββββββββββββββββββββ
β MCP Protocol (JSON-RPC 2.0)
β Transport: stdio (local) / SSE (cloud)
βββββββββββββββΌβββββββββββββββββββββ
β parlament-mcp β
β FastMCP Β· Python Β· Pydantic v2 β
βββββββββββββββ¬βββββββββββββββββββββ
β HTTPS / OData v3
βββββββββββββββΌβββββββββββββββββββββ
β ws.parlament.ch / odata.svc β
β Curia Vista β No Auth Required β
β β
β Business Β· Vote Β· MemberCouncil β
β Session Β· Transcript Β· ParlGroupβ
ββββββββββββββββββββββββββββββββββββ
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
# SSE endpoint: http://your-host:8080/sse
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 <token>; 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
# 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.
| Partner Server | Combination |
|---|---|
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."
| 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.
Tested/targeted against MCP spec 2025-06-18 (pinned as PROTOCOL_VERSION
in src/parlament_mcp/config.py). SDK updates are proposed monthly via
Dependabot; spec-version bumps are recorded in CHANGELOG.md.
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_get_transcripts | β | β | β | β |
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/transcripts), 10 (sessions) |
| Timeout | 20 seconds per API call |
| Authentication | No API keys required β Curia Vista is publicly accessible |
| Data source | Official Swiss federal government data (Schweizerische Parlamentsdienste) |
| Terms of Service | Subject to ToS of ws.parlament.ch β Schweizerische Parlamentsdienste |
substringof() filter is case-sensitive for some fieldslimit to control)null in the API for very recent sessions β use session IDDE is fully tested (FR, IT available)See CONTRIBUTING.md.
See SECURITY.md for the security policy and posture (vulnerability reporting, Lethal-Trifecta assessment, accepted risks).
MIT Β© Hayal Oezkan β see LICENSE
Run via uv's uvx β no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
{
"mcpServers": {
"parlament-mcp": {
"command": "uvx",
"args": [
"parlament-mcp"
]
}
}
}
Be the first to review this server!
by Modelcontextprotocol Β· Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.