mcp-sbb-transport
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sbb-transportShow me train connections from Zurich to Bern tomorrow at 8am"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-sbb-transport
MCP server for Swiss public transport queries via the opendata.ch Transport API. Covers trains, buses, trams, and boats across Switzerland — no API key required.
Status: Ready
Prerequisites
Bun runtime (
curl -fsSL https://bun.sh/install | bash)No API keys needed — uses the public opendata.ch transport API
Related MCP server: irail-mcp
Install
git clone git@github.com:McCullonas/mcp-sbb-transport.git
cd mcp-sbb-transport
bun installAvailable Tools
sbb_search_stations
Search for Swiss public transport stations by name.
Parameters:
query— Station name (e.g."Zürich HB","Bern","Luzern")limit(optional) — Max results (default 10)
Returns: station ID, name, and coordinates.
sbb_get_connections
Get train/public transport connections between two Swiss stations.
Parameters:
from— Origin station name or IDto— Destination station name or IDdate(optional) — Date asYYYY-MM-DD(default: today)time(optional) — Time asHH:MM(default: now)isArrivalTime(optional) — If true,timeis the desired arrival timelimit(optional) — Number of connections to return (default 4)
Returns: departure/arrival times, duration, number of transfers, platform numbers, journey sections.
sbb_get_stationboard
Get the departure or arrival board for a Swiss station.
Parameters:
station— Station name or IDdatetime(optional) — ISO 8601 datetime (default: now)type(optional) —"departure"or"arrival"(default: departure)limit(optional) — Number of entries (default 10)
Returns: transport category (IC, IR, S, Bus, etc.), line number, destination/origin, scheduled time, platform.
MCP Client Configuration
Add to your settings.json:
{
"mcpServers": {
"sbb-transport": {
"command": "bun",
"args": ["run", "/path/to/mcp-sbb-transport/src/index.ts"]
}
}
}No environment variables required.
Development
bun run src/index.ts
bun build src/index.ts --outdir dist --target nodeData Source
Uses the opendata.ch Swiss Transport API, a community-run open data service. Free to use, no registration required. Data comes from SBB, PostBus, cantonal operators, and other Swiss public transport providers.
Licence
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Swiss Transport MCP — wraps Transport Open Data API (free, no auth)
Read-only public transit departures, stop search, and city coverage for bus and train users.
Real-time transit stops, routes, arrivals, vehicle positions, and schedules via OneBusAway APIs.
Canonical SwissTrip MCP — independent SBB/CFF/FFS schedules, prices, and ticket links by SwissTrip.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time Dutch Railways (NS) data for journey planning, live departures, disruptions, and station search.3-
- AlicenseAqualityCmaintenanceProvides Belgian railway travel information via the iRail API, including station search, live departures/arrivals, route planning, and network disturbances.5MIT
- AlicenseNot gradedqualityBmaintenanceProvides real-time Swiss railway information including departures, connections, train composition, occupancy forecasts, disruptions, and pricing, accessible via natural language in over 100 languages.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Swiss public transport data (stations, departures, connections) from the Transport Open Data API via natural language through an MCP gateway.1 npmMIT