mcp-swiss
mcp-swiss is a read-only MCP server that gives AI assistants no-API-key access to Swiss public data across transport, weather/nature, places, society/economy, and government.
Look up public transport stations, connections, live departures/arrivals, nearby stops, passenger counts, punctuality, and step-free accessibility.
Retrieve MeteoSwiss weather, OGD station measurements/history, pollen, snow conditions, avalanche bulletins, air quality, river/lake levels, earthquakes, dams, and hiking trail closures.
Geocode/reverse-geocode addresses, search places and municipalities, look up postcodes, assess rooftop solar potential, identify locations, query the federal buildings register, and search/identify geo.admin map layers.
Search the ZEFIX commercial register, legal forms, cantons, companies by name/locality, and full company details.
Check public and school holidays and whether today is a holiday.
Explore federal and cantonal parliament affairs, members, recorded votes, speeches, documents, interests, committee meetings, and popular vote results.
Access population and statistics, opendata.swiss datasets/resources, property/rent/consumer price indices, SNB exchange rates, electricity tariffs, and Zurich waste collection schedules.
Search SRF news, generate Swiss Post parcel tracking URLs, and get ASTRA traffic counts.
Use search/module/preset/full tool-listing modes to expose only the tools needed for an assistant context.
mcp-swiss
Swiss public data for AI assistants. No API keys.
Documentation and tool catalogue
An MCP server that gives Claude, Copilot, Cursor and other assistants 95 tools across 27 modules for Swiss public data:
Getting around: SBB and PostBus timetables, live departures, station passengers, punctuality and step-free access, road traffic counts
Weather and nature: MeteoSwiss forecasts, current weather and measurements, river and lake levels, avalanche bulletins, snow, pollen, air quality, earthquakes, dams, hiking trail closures
Places: geocoding, places, municipalities, postcodes, rooftop solar potential, the federal buildings register, every geo.admin map layer
Society and economy: the commercial register, public and school holidays, federal and cantonal parliament, popular votes, population, property and consumer prices, SNB exchange rates, electricity tariffs, SRF news, Zurich waste collection, the opendata.swiss catalogue
Every tool reads official or long-running public sources. Nothing needs an account.
Install
Claude Desktop: download mcp-swiss.mcpb and open it.
Claude Code:
claude mcp add swiss -- npx -y mcp-swissCursor, VS Code, Windsurf, Cline and any other MCP app:
{
"mcpServers": {
"swiss": {
"command": "npx",
"args": ["-y", "mcp-swiss"]
}
}
}Requires Node.js 20 or later. Per-app steps, Docker images and the Streamable HTTP mode are on the install page.
Related MCP server: swiss-road-mobility-mcp
How tools are listed
You don't need to configure anything. Out of the box, mcp-swiss lists five tools instead of 95 and tells the model how to reach the rest. That costs about 1,200 tokens per conversation instead of about 11,700.
Listed by default | What it does |
| Finds the right tool from plain words ("train from Aigle to Geneva", "avalanche danger Verbier", "CHF to EUR"), typos included, and returns its input schema |
| Runs any tool by name after checking its arguments |
| The full catalogue, module by module |
| The two most-used tools, callable directly |
The server's instructions (which apps add to the model's context) list every module, so the model knows what exists before it searches. All tools only read public data, so apps can approve calls without asking each time. This is the search-then-execute pattern used by Atlassian's Rovo MCP server and Cloudflare, with Anthropic's advice to keep a few frequent tools loaded. A test asks more than 200 plain-language questions, at least two per tool, and fails if any tool doesn't come up in the top five results.
Add to | What you get |
(nothing) | Search mode, as above |
| Only those modules, listed directly ( |
| A ready-made set: |
| All 95 tools listed directly. Fine in apps that already load tools on demand, such as Claude Code |
| Search mode even when modules are chosen |
| Different tools next to the search tools, or only the three |
Try asking
Next trains from Aigle to Geneva airport
Do I need an umbrella in Lausanne tomorrow?
Is the Aare in Bern warm enough to swim?
What's the avalanche danger around Verbier today?
Find companies registered in Zug with "blockchain" in the name
Rooftop solar potential of Bundesplatz 3, Bern
When are the autumn school holidays in Vaud?
How much does electricity cost in Lausanne compared with Zurich?
What has parliament decided about pensions this year?
Tools and data sources
The tool catalogue lists all 94 tools with their parameters and has a search box that runs the server's own search. It's generated from the code on every release. The same information is machine-readable in docs/tools.schema.json. Sources and their licences are listed on the data sources page.
Development
git clone https://github.com/vikramgorla/mcp-swiss.git
cd mcp-swiss
npm install
npm run validate # lint, build, unit and protocol tests
npx @modelcontextprotocol/inspector node dist/index.js
npm run site # build the documentation site into site/distAGENTS.md holds the rules every change follows. CONTRIBUTING.md walks through adding a module, and RELEASING.md covers releases. Upstream calls time out after 30 seconds (MCP_SWISS_TIMEOUT_MS) and retry once on a dropped connection or rate limit.
Thanks to Pierre Christen (netadvanced/mcp-swiss-ng) for the HTTP transport, the building register and many data fixes, and to everyone who has reported issues.
License
MIT. See LICENSE. Not affiliated with the Swiss federal administration, SBB or any data provider.
Available Tools
5 toolsget_connectionsCRead-onlyIdempotent
Train/bus connections between two locations
Inputs: to (required), from (required), date, time, +2 more.
get_departuresBRead-onlyIdempotent
Live departures from a station
Inputs: station (required), limit, datetime.
swiss_call_toolBRead-onlyIdempotent
Run one tool by name. Arguments are checked against that tool's schema before it runs.
Inputs: name (required), arguments.
swiss_list_modulesARead-onlyIdempotent
List Swiss open-data modules and the tool names in each.
Inputs: no named parameters.
swiss_search_toolsARead-onlyIdempotent
Find the right Swiss public-data tool (trains, weather, companies, holidays, maps, statistics and more). Describe the task in plain words; returns the best-matching tools with their input schemas. Call them with swiss_call_tool. Modules: transport, weather, geodata, companies, holidays, parliament, avalanche, airquality, post, energy, statistics, snb, recycling, news, voting, dams, hiking, realestate, traffic, earthquakes, snow, pollen, gwr, opendata, meteoswiss, maplayers, sbbdata.
Inputs: limit, query, module.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
get_connections and get_departures are clearly distinct (route lookup vs station board), and swiss_call_tool is unambiguous, but swiss_search_tools and swiss_list_modules both serve tool discovery and an agent could easily pick the wrong one when it just wants to find a tool. The boundary between 'search by task' and 'list modules' is real but under-explained, creating moderate overlap.
All names are snake_case with a verb_noun structure, which is readable, but the convention is split: the three meta-tools carry a swiss_ namespace prefix while get_connections and get_departures do not. This makes it unclear whether the prefix denotes a tool family or is arbitrary.
Five tools is a well-scoped gateway design for a server fronting ~30 open-data modules, avoiding an explosion of per-domain tools. The surface is slightly thin on the direct side (only two transport tools are first-class), but the meta-tools earn their place.
Discovery (search, list) plus execution (call by name with schema validation) covers the lifecycle for reaching any module tool, so agents are not dead-ended. Minor gaps: there is no explicit way to fetch a single named tool's schema without a search, and no introspection/pagination beyond module listing.
Maintenance
Related MCP Connectors
Swiss Transport MCP — wraps Transport Open Data API (free, no auth)
opendata.swiss MCP — Switzerland's federal open-data portal (CKAN catalogue).
Swiss trains and public transport: live connections and departures. Official data, free, no key.
An MCP server for Georgian public data, read from the organizations that publish it.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for Swiss federal geodata -- maps, elevation, geocoding, cadastral extracts, and downloadable datasets via Swisstopo APIs.2029 PyPI12MIT
- AlicenseAqualityAmaintenanceMCP Server for Swiss road mobility — shared vehicles, EV charging, traffic alerts, Park & Rail, and multimodal trip planning.1547 PyPI1MIT
- AlicenseBqualityDmaintenanceMCP server exposing all major Swiss official public APIs as native tools for any MCP-compatible AI agent.3412 npmMIT
- AlicenseAqualityBmaintenanceMCP server for Switzerland's national metadata catalogue, enabling AI agents to discover datasets, APIs, public services, and publishers through free-text search and structured queries.1327 PyPIMIT