Hooks Claude directly into Zurich's open data infrastructure across six different APIs. You get 24 tools covering everything from real-time parking occupancy and air quality readings to parliamentary proceedings and 900+ CKAN datasets. The geoportal integration exposes 14 WFS layers as GeoJSON, the Paris API surfaces city council members and motions, and the DataStore tools let you run SQL queries on tabular data without downloading files. No authentication required. Useful when you need Swiss municipal data for location-aware applications, civic tech projects, or environmental monitoring dashboards. The tourism endpoint returns Schema.org structured data in four languages, and the pedestrian traffic tool pulls hourly counts from Bahnhofstrasse sensors.
🇨🇭 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. 24 Tools, 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 5 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 (currently disabled — endpoint not productive yet)search_stadtratsbeschluesse – 📜 Full-text search of public council resolutions (title, department, date range)get_beschluesse_by_departement – 📜 List all resolutions of a department (e.g. SSD, FD, PRD)get_stadtratsbeschluss_detail – 📜 Single resolution by NNNN/YYYY numberzurich_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 categories# Clone
git clone https://github.com/malkreide/zurich-opendata-mcp.git
cd zurich-opendata-mcp
# Install
pip install -e .
# Or with uv
uv pip install -e .
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"zurich-opendata": {
"command": "python",
"args": ["-m", "zurich_opendata_mcp.server"],
"env": {}
}
}
}
Alternatively, using the installed command:
{
"mcpServers": {
"zurich-opendata": {
"command": "zurich-opendata-mcp"
}
}
}
claude mcp add zurich-opendata -- python -m zurich_opendata_mcp.server
Add to .vscode/settings.json:
{
"mcpServers": {
"zurich-opendata": {
"command": "python",
"args": ["-m", "zurich_opendata_mcp.server"]
}
}
}
Once configured, you can ask Claude:
zurich_weather_livezurich_air_qualityzurich_water_weatherzurich_parking_livezurich_pedestrian_trafficzurich_geo_featureszurich_geo_layerszurich_parliament_searchzurich_parliament_memberssearch_stadtratsbeschluesseget_beschluesse_by_departementget_stadtratsbeschluss_detailzurich_tourismzurich_sparql| 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 |
zurich-opendata-mcp/
├── src/zurich_opendata_mcp/
│ ├── __init__.py
│ ├── app.py # Shared FastMCP instance
│ ├── server.py # Console entry + back-compat re-exports
│ ├── config.py # Endpoints, layer maps, resource IDs
│ ├── http_client.py # Shared httpx client + CKAN wrapper
│ ├── formatters.py # Markdown + error formatting
│ ├── clients/ # API clients: paris, sparql, tourism, wfs
│ └── tools/ # @mcp.tool implementations:
│ # catalog, datastore, geo, parliament,
│ # realtime, sparql, strb, tourism,
│ # resources (zurich:// URIs)
├── tests/
│ └── test_server.py # Pydantic + integration tests (live-marked)
├── audits/ # Code-audit reports
├── .github/workflows/ # ci.yml + publish.yml (Trusted Publisher)
├── pyproject.toml
├── README.md / README.de.md
├── CONTRIBUTING.md / .de.md
├── SECURITY.md / .de.md
├── CHANGELOG.md
├── CLAUDE.md # Project conventions for Claude
├── LICENSE
└── claude_desktop_config.json
# Install dev dependencies
pip install -e ".[dev]"
# Unit + validation tests (no network)
pytest tests/ -m "not live"
# Live integration tests (against live APIs — opt-in)
pytest tests/ -m live
# Linting
ruff check src/ tests/
rows and limit parameters conservatively. The server enforces a 30s timeout per request.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 • 24 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):
{
"mcpServers": {
"zurich-opendata-mcp": {
"command": "uvx",
"args": [
"zurich-opendata-mcp"
]
}
}
}