Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Zurich Opendata MCP

by malkreideversion 0.8.0i★ 9iRuns on your computerRepository ↗
Registry nameio.github.malkreide/zurich-opendata-mcp

How to install

What it does

City of Zurich weather, air quality, parking, geodata, Gemeinderat, tourism

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Travel, maps & weather

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity12/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score24/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Zurich Opendata MCP. Follow https://mcp.popnx.com/i/malkreide-zurich-opendata-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Zurich Opendata MCP for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "zurich-opendata": { "command": "uvx", "args": [ "zurich-opendata-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Zurich Opendata MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "zurich-opendata": {
          "command": "uvx",
          "args": [
            "zurich-opendata-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Zurich Opendata MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Zurich Opendata MCP or shows a Zurich Opendata MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Zurich Opendata MCP yet

Zurich Opendata MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Zurich Opendata MCP

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Travel, maps & weather that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Zurich Opendata MCP for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user zurich-opendata -- uvx zurich-opendata-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Zurich Opendata MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user zurich-opendata -- uvx zurich-opendata-mcp
  4. Type /mcp in Claude Code

    You should see Zurich Opendata MCP listed as connected

  5. Try it

    Use Zurich Opendata MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Zurich Opendata MCP or shows a Zurich Opendata MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Zurich Opendata MCP for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "zurich-opendata": { "command": "uvx", "args": [ "zurich-opendata-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Zurich Opendata MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Zurich Opendata MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Zurich Opendata MCP or shows a Zurich Opendata MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Zurich Opendata MCP for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "zurich-opendata": { "type": "stdio", "command": "uvx", "args": [ "zurich-opendata-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Zurich Opendata MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Zurich Opendata MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Zurich Opendata MCP or shows a Zurich Opendata MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Zurich Opendata MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user zurich-opendata -- uvx zurich-opendata-mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

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

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
55/wk
Connection
Runs on your computer
Latest versioni
0.8.0
Published to registryi
Sep 20, 2026
Code last changedi
Nov 2, 2026
Maker
malkreide
Packages
pypi: zurich-opendata-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account malkreide, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 18 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for zurich-opendata-mcp@0.8.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/malkreide-zurich-opendata-mcp.svg)](https://mcp.popnx.com/en/servers/malkreide-zurich-opendata-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Travel, maps & weatheri

  • More stars than 97% of the other 2025 servers in this category
  • Published to the registry more recently than 29% of the other 2025 servers in this category
  • Basic checks equal to or better than 99% of the other 2025 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Zurich Opendata MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 18 days ago, and the latest version (0.8.0) reached the registry 2 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Mu, Award Travel Finder, Killbottleneck, Gondola Award Travel Search, Whimsical

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Mu

News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.

by microGrowing★ 440Updated 4 months ago

Runs in the cloud✓ micro.mu

Whimsical

Create and edit flowcharts, mind maps, wireframes, and docs in Whimsical, or search your workspace.

by WhimsicalCodeEarly★ 11Updated 2 months ago

Runs in the cloud✓ service owner · whimsical.com
Compared with similar ones
This one
Zurich Opendata MCP
MuAward Travel FinderKillbottleneckGondola Award Travel SearchWhimsical
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoYesNoNo
Add with + in ClaudeNoNoNoNoNoYes
Basic checks3/34/43/33/34/44/4
LicenseMITAGPL-3.0MITMITMITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide)

🏙️ Zurich Open Data MCP Server

🌐 English | [Deutsch](README.de.md)

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.

Demo

✨ Features

CKAN Open Data (data.stadt-zuerich.ch)
  • `zurich_search_datasets` – Full-text search with Solr syntax across 900+ datasets
  • `zurich_get_dataset` – Complete metadata and download URLs for a dataset
  • `zurich_datastore_query` – Query tabular data directly (filters, sorting)
  • `zurich_datastore_sql` – SQL queries on the DataStore
  • `zurich_list_categories` – Browse 19 thematic categories
  • `zurich_list_tags` – Tag-based thematic search
Real-Time Environmental Data
  • `zurich_weather_live` – 🌤️ Current weather (temperature, humidity, pressure, rain) from 4 UGZ stations
  • `zurich_air_quality` – 🌬️ Live air quality (NO₂, O₃, PM10, PM2.5) with WHO thresholds
  • `zurich_water_weather` – 🌊 Lake Zurich data (water temperature, level, wind) every 10 min
Real-Time Mobility Data
  • `zurich_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)
Geoportal (WFS Geodata)
  • `zurich_geo_layers` – 📍 List 14 available geodata layers
  • `zurich_geo_features` – 📍 Fetch GeoJSON features (schools, districts, playgrounds, climate data, etc.)
City Parliament (Paris API)
  • `zurich_parliament_search` – 🏛️ Search parliamentary proceedings (interpellations, motions, postulates)
  • `zurich_parliament_members` – 🏛️ Search council members (party, commissions, mandates)
Zurich Tourism
  • `zurich_tourism` – 🏨 Attractions, restaurants, hotels, events (Schema.org data, 4 languages)
Linked Data (SPARQL)
  • `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)*
Stadtratsbeschlüsse (Council Resolutions)
  • `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.)*

Analysis Tools
  • `zurich_analyze_datasets` – Comprehensive analysis: relevance, recency, data structure
  • `zurich_catalog_stats` – Catalog overview with statistics
  • `zurich_find_school_data` – Curated search for education-related datasets
MCP Resources
  • zurich://dataset/{name} – Dataset metadata
  • zurich://category/{group_id} – Category details
  • zurich://parking – Current parking data
  • zurich://geo/{layer_id} – GeoJSON geodata (14 layers)
  • zurich://tourism/categories – Tourism categories

🚀 Installation

Prerequisites
  • Python 3.11+
  • pip or uv
  • mcp[cli] 2.x — installed automatically; the server uses the 2.x API (mcp.server.mcpserver) and cannot run on mcp 1.x

Use 0.6.0 or newer. Release 0.5.1 declared mcp[cli]>=1.28.1 with no

upper bound. Once mcp 2.0.0 removed mcp.server.fastmcp, every fresh

install of 0.5.1 resolved to 2.0.0 and failed at import with

ModuleNotFoundError. 0.6.0 runs on the 2.x API and pins >=2.0.0,<3.

If you are pinned to 0.5.1, upgrade — there is no working configuration of

that release left.

Install
# 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 .

⚙️ Configuration

Claude Desktop

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 Code (CLI)
claude mcp add zurich-opendata -- python -m zurich_opendata_mcp.server
Cursor / VS Code

Add to .vscode/settings.json:

{

"mcpServers": { "zurich-opendata": { "command": "python", "args": ["-m", "zurich_opendata_mcp.server"] } } }

💬 Example Queries

Once configured, you can ask Claude:

Open Data
  • *"What datasets are available about schools in Zurich?"*
  • *"Show me school holidays for public schools"*
  • *"Analyze the available geodata"*
Real-Time Data
  • *"What's the current temperature in Zurich?"* → zurich_weather_live
  • *"How is the air quality today?"* → zurich_air_quality
  • *"What's the water temperature in Lake Zurich?"* → zurich_water_weather
  • *"How many parking spaces are free right now?"* → zurich_parking_live
  • *"How many people are on Bahnhofstrasse right now?"* → zurich_pedestrian_traffic
Geodata
  • *"Show me all school facilities in Zurich as GeoJSON"* → zurich_geo_features
  • *"What geodata layers are available?"* → zurich_geo_layers
  • *"Where are the playgrounds in Zurich?"*
City Parliament
  • *"What parliamentary motions about schools were filed?"* → zurich_parliament_search
  • *"Which council members belong to the SP party?"* → zurich_parliament_members
Council Resolutions (Stadtratsbeschlüsse)
  • *"Find council resolutions about Volksschule from 2025"* → zurich_strb_search
  • *"List all SSD resolutions in 2025"* → zurich_strb_by_department
  • *"Show council resolution 1203/2025"* → zurich_strb_detail
Tourism
  • *"What restaurants does Zurich Tourism recommend?"* → zurich_tourism

🔗 Data Sources

APIEndpointData
CKANdata.stadt-zuerich.ch/api/3/900+ open datasets
Geoportal WFSogd.stadt-zuerich.ch/wfs/geoportal14 geodata layers (GeoJSON)
Paris APIgemeinderat-zuerich.ch/apiParliamentary proceedings & members
Zurich Tourismzuerich.com/en/api/v2/dataAttractions, restaurants, hotels
SPARQLld.stadt-zuerich.ch/queryLinked Open Data / statistics
ParkenDDapi.parkendd.de/ZuerichReal-time parking occupancy

📊 Available Data Categories

CategoryID
Employmentarbeit-und-erwerb
Base Mapsbasiskarten
Construction & Housingbauen-und-wohnen
Populationbevolkerung
Education`bildung`
Energyenergie
Financefinanzen
Leisurefreizeit
Healthgesundheit
Crimekriminalitat
Culturekultur
Mobilitymobilitat
Politicspolitik
Pricespreise
Social Affairssoziales
Tourismtourismus
Environmentumwelt
Administrationverwaltung
Economyvolkswirtschaft

📍 Available Geo Layers

Source of truth: GEOPORTAL_LAYERS in src/zurich_opendata_mcp/config.py.

Layer IDDescription
schulanlagenSchool facilities (kindergartens, schools, after-school care)
schulkreiseSchool district boundaries (polygons)
schulwegeSchool-route crossings and hazard points
stadtkreiseCity district boundaries (polygons)
spielplaetzePublic playgrounds
kreisbueroCity district offices
sammelstelleWaste collection points
sportSports facilities
klimadatenClimate data (raster, temperatures, heat islands)
lehrpfadeEducational trails
stimmlokalePolling stations
sozialzentrumSocial centres
velopruefstreckenBicycle exam routes for schools
familienberatungFamily-counselling meeting points

🏗️ Project Structure

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 # CKAN→model mapping + Markdown rendering │ ├── models.py # Pydantic structured-output models │ ├── clients/ # API clients: paris, sparql, tourism, wfs │ └── tools/ # @mcp.tool implementations: │ # catalog, datastore, geo, parliament, │ # realtime, sparql, strb, tourism, │ # resources (zurich:// URIs) ├── tests/ # respx round-trip, unit and live-marked tests ├── 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

🧪 Development

# 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/

🌐 HTTP transport

By default the server speaks MCP over stdio. --http serves Streamable HTTP instead:

zurich-opendata-mcp --http --port 8000              # binds 127.0.0.1 (default)

zurich-opendata-mcp --http --host 0.0.0.0 --port 8000

OptionMeaningDefault
--httpServe Streamable HTTP instead of stdio_(off → stdio)_
--hostBind address127.0.0.1
--portBind port (1–65535)8000
MCP_ALLOWED_HOSTSComma-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 origi

Only the beginning is shown; read the rest in the repo