Skip to main content
Glama

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

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

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

Available Tools

5 tools
get_connectionsC
Read-onlyIdempotent

Train/bus connections between two locations

Inputs: to (required), from (required), date, time, +2 more.

get_departuresB
Read-onlyIdempotent

Live departures from a station

Inputs: station (required), limit, datetime.

swiss_call_toolB
Read-onlyIdempotent

Run one tool by name. Arguments are checked against that tool's schema before it runs.

Inputs: name (required), arguments.

swiss_list_modulesA
Read-onlyIdempotent

List Swiss open-data modules and the tool names in each.

Inputs: no named parameters.

swiss_search_toolsA
Read-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

    B3.4/5.0

    Scored across 5 tools

    Disambiguation3/5

    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.

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers