mcpField
S
Swiss Public Transport

Swiss Public Transport

Local
github.com/tpjnortonMaps & Travel1Updated 24w ago

About Swiss Public Transport

Swiss Public Transport is an MCP server for planning journeys across Switzerland’s public transport network. It helps travelers find connections and live departures, resolve ambiguous stop names, and obtain SBB ticket links, using transport.opendata.ch without an API key.

Key features

  1. 01Search stations, stops, and points of interest
  2. 02Plan journeys with route filters
  3. 03View live departures and arrivals
  4. 04Generate SBB booking links
  5. 05Disambiguate matching locations

Use cases

  1. 01Plan a trip between Swiss locations
  2. 02Check departures from a station
  3. 03Find the correct stop among similar names
  4. 04Open an SBB ticket link for a journey

MCP support

Exposes four transport tools to MCP clients: location search, journey planning, stationboards, and SBB booking links. It uses transport.opendata.ch and requires no API key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"tpjnorton-swiss-public-transport": {
"command": "uvx",
"args": [
"swiss-public-transport-mcp"
]
}
}
}
Run commanduvx swiss-public-transport-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypiswiss-public-transport-mcp0.1.10

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

swiss-public-transport-mcp

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

Why this server

  • Zero config. Install and go — no account, no token, no env vars.
  • Booking links. Returns deep links into SBB.ch so the user can buy a ticket in one click.
  • Disambiguation built in. Ambiguous station names return candidates instead of failing silently.
  • Compact, model-friendly output. Formatted text designed for LLM context windows, not raw JSON dumps.

Tools

ToolPurpose
search_locationsResolve a station/stop/POI by name or coordinates
plan_journeyPlan A → B with via, transport-type filters, arrival-time mode
get_stationboardLive departures or arrivals from any stop
get_booking_linkBuild an SBB.ch URL for a journey so the user can buy a ticket

Install

No install needed — run directly with uvx:

uvx swiss-public-transport-mcp
Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "swiss-public-transport": {
      "command": "uvx",
      "args": ["swiss-public-transport-mcp"]
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Development
git clone https://github.com/tpjnorton/swiss-public-transport-mcp.git
cd swiss-public-transport-mcp
uv sync
uv run swiss-public-transport-mcp

Related project

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 servermalkreide/swiss-transport-mcp
Data sourcetransport.opendata.chopentransportdata.swiss (official)
API keynonerequired (free signup)
Tools4 (journey planning + booking links)11 (planning + disruptions + occupancy + fares + formation)
Setupone commandper-API key configuration
Best forquick journey planning, fast LLM responses, ticket purchase flowrich operational data, official feeds

The two servers cover overlapping but distinct use cases — you can install both side by side.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.