Wraps the free transport.opendata.ch API to plan journeys, check live departures, and generate SBB ticket booking links across Switzerland's entire public transport network. No API key or signup required. Four tools cover location search, A to B routing with via points and transport filters, stationboard queries, and direct deep links into SBB.ch for ticket purchase. Output is formatted as compact text rather than raw JSON to keep LLM context usage low. Station name disambiguation is built in. If you need official opentransportdata.swiss feeds for disruption alerts, occupancy forecasts, or train formation data, the related malkreide server covers those with an API key.
MCP server for Swiss public transport — connections, stationboards, real-time delays, and direct booking links for SBB.
Wraps transport.opendata.ch — free, no API key, no signup. Covers the full Swiss network (SBB, Postauto, regional, trams, buses, ships, cableways).
| Tool | Purpose |
|---|---|
search_locations | Resolve a station/stop/POI by name or coordinates |
plan_journey | Plan A → B with via, transport-type filters, arrival-time mode |
get_stationboard | Live departures or arrivals from any stop |
get_booking_link | Build an SBB.ch URL for a journey so the user can buy a ticket |
No install needed — run directly with uvx:
uvx swiss-public-transport-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"swiss-public-transport": {
"command": "uvx",
"args": ["swiss-public-transport-mcp"]
}
}
}
Config file location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsongit clone https://github.com/tpjnorton/swiss-public-transport-mcp.git
cd swiss-public-transport-mcp
uv sync
uv run swiss-public-transport-mcp
If you need official opentransportdata.swiss data — SIRI-SX disruption alerts, occupancy forecasts, OJP Fare ticket prices, train formation — see malkreide/swiss-transport-mcp. It exposes ~11 tools across the official OJP 2.0 / SIRI / CKAN APIs and requires a (free) API key from the opentransportdata.swiss API Manager.
| this server | malkreide/swiss-transport-mcp | |
|---|---|---|
| Data source | transport.opendata.ch | opentransportdata.swiss (official) |
| API key | none | required (free signup) |
| Tools | 4 (journey planning + booking links) | 11 (planning + disruptions + occupancy + fares + formation) |
| Setup | one command | per-API key configuration |
| Best for | quick journey planning, fast LLM responses, ticket purchase flow | rich operational data, official feeds |
The two servers cover overlapping but distinct use cases — you can install both side by side.