Switzerland MCP 🇨🇭

v0.13.0
io.github.vikramgorla/swiss Checked 4 hours ago Published 1 day ago

Swiss open data MCP server.

An MCP server that gives Claude, Copilot, Cursor and other assistants 96 tools across 27 modules for Swiss public data: Every tool reads official or long-running public sources. Nothing needs an account. Requires Node.js 20 or later. Per-app steps, Docker images and the Streamable HTTP mode are on the install page.

Summary extracted from the README.

mcp-swiss

Swiss public data for AI assistants. No API keys.

npm CI Downloads MCP Registry License

Documentation and tool catalogue

An MCP server that gives Claude, Copilot, Cursor and other assistants 96 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 daily and hourly 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, national popular votes since 1848 by canton and municipality (live on voting Sundays), 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-swiss

Cursor, 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.

How tools are listed

You don't need to configure anything. Out of the box, mcp-swiss lists five tools instead of 96 and tells the model how to reach the rest. That costs about 1,200 tokens per conversation instead of about 12,300.

Listed by default What it does
swiss_search_tools 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
swiss_call_tool Runs any tool by name after checking its arguments
swiss_list_modules The full catalogue, module by module
get_connections, get_departures 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 args What you get
(nothing) Search mode, as above
--modules transport,weather Only those modules, listed directly (--list-modules shows all 27)
--preset commuter A ready-made set: commuter, outdoor, business, citizen, minimal (--list-presets)
--mode full or MCP_SWISS_MODE=full All 96 tools listed directly. Fine in apps that already load tools on demand, such as Claude Code
--discovery Search mode even when modules are chosen
--pin get_weather,geocode / --pin none 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/dist

AGENTS.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.