Swiss Public Transport MCP Server
Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.
Swiss Public Transport scores 28 (Limited), licensed MIT and written in Python. It installs as a local process. It declares 4 tools. Filed under Uncategorized. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
28 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 28 comes from
0 + 10 + 1 + 10 + 4 + 3 = 28. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "tpjnorton-swiss-public-transport-mcp": { "command": "uvx", "args": [ "swiss-public-transport-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools4Tool docs quality grade C
All capabilitiesget_booking_linktoolBuild an SBB.ch URL for a journey so the user can buy a ticket
get_stationboardtoolLive departures or arrivals from any stop
plan_journeytoolPlan A → B with via, transport-type filters, arrival-time mode
search_locationstoolResolve a station/stop/POI by name or coordinates
About
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
| 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 |
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 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.
Frequently asked questions
What is Swiss Public Transport MCP Server?
Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.
How do I install Swiss Public Transport MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Swiss Public Transport MCP Server runs locally from the PyPI package swiss-public-transport-mcp with the command uvx swiss-public-transport-mcp.
Is Swiss Public Transport MCP Server free and open source?
Yes. Swiss Public Transport MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Swiss Public Transport MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Swiss Public Transport MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Swiss Public Transport MCP Server provide?
Swiss Public Transport MCP Server provides 4 tools: get_booking_link, get_stationboard, plan_journey, and search_locations. See the full tool list for descriptions and parameters.
How is Swiss Public Transport MCP Server's trust score calculated?
Swiss Public Transport MCP Server scores 28 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.