The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Zurich Opendata MCP listing page.
🇨🇭 Part of the Swiss Public Data MCP Portfolio
🌐 English | Deutsch
An MCP (Model Context Protocol) server providing AI-powered access to Open Data from the City of Zurich, Switzerland.
Enables Claude, ChatGPT, and other MCP-compatible AI assistants to directly query 900+ datasets, geodata, parliamentary proceedings, council resolutions, tourism data, linked data, and real-time environmental and mobility information from the City of Zurich. 23 Tools (+3 deprecated aliases), 5 Resources, 6 APIs.
zurich_search_datasets – Full-text search with Solr syntax across 900+ datasetszurich_get_dataset – Complete metadata and download URLs for a datasetzurich_datastore_query – Query tabular data directly (filters, sorting)zurich_datastore_sql – SQL queries on the DataStorezurich_list_categories – Browse 19 thematic categorieszurich_list_tags – Tag-based thematic searchzurich_weather_live – 🌤️ Current weather (temperature, humidity, pressure, rain) from 4 UGZ stationszurich_air_quality – 🌬️ Live air quality (NO₂, O₃, PM10, PM2.5) with WHO thresholdszurich_water_weather – 🌊 Lake Zurich data (water temperature, level, wind) every 10 minzurich_pedestrian_traffic – 🚶 Pedestrian counts on Bahnhofstrasse (3 locations, hourly)zurich_vbz_passengers – 🚊 VBZ public transit ridership (800,000+ records, all lines/stops)zurich_parking_live – 🅿️ Real-time occupancy of 36 parking garages (ParkenDD)zurich_geo_layers – 📍 List 14 available geodata layerszurich_geo_features – 📍 Fetch GeoJSON features (schools, districts, playgrounds, climate data, etc.)zurich_parliament_search – 🏛️ Search parliamentary proceedings (interpellations, motions, postulates)zurich_parliament_members – 🏛️ Search council members (party, commissions, mandates)zurich_tourism – 🏨 Attractions, restaurants, hotels, events (Schema.org data, 4 languages)zurich_sparql – 📊 SPARQL queries on the statistical linked data endpoint (endpoint not productive yet — the tool is not registered by default; opt in with the environment variable ZURICH_OPENDATA_ENABLE_SPARQL=1)zurich_strb_search – 📜 Full-text search of public council resolutions (title, department, date range)zurich_strb_by_department – 📜 List all resolutions of a department (e.g. SSD, FD, PRD)zurich_strb_detail – 📜 Single resolution by NNNN/YYYY number(The former names search_stadtratsbeschluesse, get_beschluesse_by_departement and get_stadtratsbeschluss_detail remain available as deprecated aliases until the next major release.)
zurich_analyze_datasets – Comprehensive analysis: relevance, recency, data structurezurich_catalog_stats – Catalog overview with statisticszurich_find_school_data – Curated search for education-related datasetszurich://dataset/{name} – Dataset metadatazurich://category/{group_id} – Category detailszurich://parking – Current parking datazurich://geo/{layer_id} – GeoJSON geodata (14 layers)zurich://tourism/categories – Tourism categoriesmcp[cli] 2.x — installed automatically; the server uses the 2.x API
(mcp.server.mcpserver) and cannot run on mcp 1.xUse 0.6.0 or newer. Release
0.5.1declaredmcp[cli]>=1.28.1with no upper bound. Oncemcp2.0.0 removedmcp.server.fastmcp, every fresh install of0.5.1resolved to 2.0.0 and failed at import withModuleNotFoundError.0.6.0runs on the 2.x API and pins>=2.0.0,<3. If you are pinned to0.5.1, upgrade — there is no working configuration of that release left.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Alternatively, using the installed command:
Add to .vscode/settings.json:
Once configured, you can ask Claude:
zurich_weather_livezurich_air_qualityzurich_water_weatherzurich_parking_livezurich_pedestrian_trafficzurich_geo_featureszurich_geo_layerszurich_parliament_searchzurich_parliament_memberszurich_strb_searchzurich_strb_by_departmentzurich_strb_detailzurich_tourism| API | Endpoint | Data |
|---|---|---|
| CKAN | data.stadt-zuerich.ch/api/3/ | 900+ open datasets |
| Geoportal WFS | ogd.stadt-zuerich.ch/wfs/geoportal | 14 geodata layers (GeoJSON) |
| Paris API | gemeinderat-zuerich.ch/api | Parliamentary proceedings & members |
| Zurich Tourism | zuerich.com/en/api/v2/data | Attractions, restaurants, hotels |
| SPARQL | ld.stadt-zuerich.ch/query | Linked Open Data / statistics |
| ParkenDD | api.parkendd.de/Zuerich | Real-time parking occupancy |
| Category | ID |
|---|---|
| Employment | arbeit-und-erwerb |
| Base Maps | basiskarten |
| Construction & Housing | bauen-und-wohnen |
| Population | bevolkerung |
| Education | bildung |
| Energy | energie |
| Finance | finanzen |
| Leisure | freizeit |
| Health | gesundheit |
| Crime | kriminalitat |
| Culture | kultur |
| Mobility | mobilitat |
| Politics | politik |
| Prices | preise |
| Social Affairs | soziales |
| Tourism | tourismus |
| Environment | umwelt |
| Administration | verwaltung |
| Economy | volkswirtschaft |
Source of truth: GEOPORTAL_LAYERS in src/zurich_opendata_mcp/config.py.
| Layer ID | Description |
|---|---|
schulanlagen | School facilities (kindergartens, schools, after-school care) |
schulkreise | School district boundaries (polygons) |
schulwege | School-route crossings and hazard points |
stadtkreise | City district boundaries (polygons) |
spielplaetze | Public playgrounds |
kreisbuero | City district offices |
sammelstelle | Waste collection points |
sport | Sports facilities |
klimadaten | Climate data (raster, temperatures, heat islands) |
lehrpfade | Educational trails |
stimmlokale | Polling stations |
sozialzentrum | Social centres |
velopruefstrecken | Bicycle exam routes for schools |
familienberatung | Family-counselling meeting points |
By default the server speaks MCP over stdio. --http serves Streamable HTTP
instead:
| Option | Meaning | Default |
|---|---|---|
--http | Serve Streamable HTTP instead of stdio | (off → stdio) |
--host | Bind address | 127.0.0.1 |
--port | Bind port (1–65535) | 8000 |
MCP_ALLOWED_HOSTS | Comma-separated names this server is reachable under, port included (e.g. zurich.example.ch:8000). Requests under any other Host get 421; loopback stays allowed so container health checks keep working. | (unset) |
The loopback default is deliberate. Binding 0.0.0.0 exposes the server on
every interface, to everyone who can reach the machine — there is no
authentication in front of it.
Set MCP_ALLOWED_HOSTS whenever you bind beyond loopback. It guards against
DNS rebinding: a page on your network resolves its own hostname to this
server's address and then talks to it from the browser. From the browser's point
of view that request is same-origin, so no origin rule stops it — only the
Host check does.
Left unset on a non-loopback bind, the check stays off and a warning is
logged. That is the right default only when something in front of the server
validates Host. It is deliberately not guessed: on 0.0.0.0 the reachable
name is unknowable inside the process, and a wrong guess would answer the very
deployment it is meant to protect with 421 on every request.
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. This server builds no ASGI app to send an initialize through, so
the gate asserts the SDK constants rather than a measured response — the
weaker form, named rather than left unsaid.
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.
rows and limit parameters conservatively. The server enforces a 30s timeout per request; transient upstream errors (connect failures, HTTP 502/503/504) are retried once with a short backoff.Contributions are welcome — see CONTRIBUTING.md (Deutsch).
Read-only, no PII, no authentication, a fixed set of public-data endpoints. See SECURITY.md (Deutsch) for the full security posture and accepted-risk decisions.
MIT License — see LICENSE. All data used is published under open licenses (CC0 / Open by Default since 2021).
Hayal Oezkan · malkreide
Powered by Model Context Protocol • 6 APIs • 23 Tools • 5 Resources
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):