Back to Browse

Swiss Public Transport MCP Server

Developer ToolsLow Risk10.0Local
Free

Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.

About

Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 4 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

12 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Install

Add this to your MCP configuration file:

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

Documentation

View on GitHub

From the project's GitHub 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.chfree, 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.

Reviews

No reviews yet

Be the first to review this server!