sbb-mcp
This server connects AI assistants to Swiss Federal Railways (SBB) data, enabling train schedule lookups, ticket pricing, and direct ticket purchasing.
search_stations: Find Swiss train stations, addresses, or points of interest by name.search_connections: Look up train connections between two stations, returning schedules with departure/arrival times, duration, and transfers.get_trip_details: Retrieve detailed info about a specific connection, including intermediate stops, platforms, and occupancy.get_more_connections: Load earlier or later trains for a previously searched route.get_prices: Fetch ticket prices with Half-Fare (Halbtax) and GA travelcard discounts, supporting multi-traveler/family pricing.get_ticket_link: Generate a direct purchase link to SBB.ch (or the SBB app on mobile), with reduction cards and family travelers applied automatically.save_profile/get_profile: Store and retrieve a user's local travel profile (name, date of birth, reduction card) for personalization.list_travelers: List travelers in a SwissTrip account for family pricing (requires aSWISSTRIP_TOKEN).
sbb-mcp
This package is now an alias for
swisstrip-mcp. New users should installswisstrip-mcpdirectly: it is the canonical SwissTrip MCP client. Thesbb-mcpname continues to work — it spawnsswisstrip-mcpas a child process — so existing integrations don't break.
Independent MCP client by SwissTrip — connects AI assistants to Swiss Federal Railways (SBB / CFF / FFS) data: train schedules, station search, ticket prices, and direct ticket purchase links via SBB's SMAPI.
Thin client. All SBB API access, ticketing, and profile sync run on the hosted SwissTrip server at https://mcp.swisstrip.app/mcp.
Install (recommended: use the canonical name)
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"swisstrip": {
"command": "npx",
"args": ["-y", "swisstrip-mcp"]
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"swisstrip": {
"command": "npx",
"args": ["-y", "swisstrip-mcp"]
}
}
}ChatGPT (Plus / Pro / Business / Enterprise with Developer Mode)
No install required. Add a custom connector pointing at:
https://mcp.swisstrip.app/mcpExisting sbb-mcp configurations
Already running npx -y sbb-mcp? Nothing changes — it still works and forwards to the same hosted service. To migrate to the canonical name, swap sbb-mcp → swisstrip-mcp in your client config when convenient.
Tools
search_stations— find Swiss stations, addresses, and points of interestsearch_connections— train schedules between two stationsget_trip_details— detailed trip with all intermediate stopsget_more_connections— earlier or later trains for a previous searchget_prices— ticket prices with Halbtax / GA discountsget_ticket_link— direct purchase link to SBB.chsave_profile/get_profile— save your travel profile locallylist_travelers— multi-traveler family pricing (requiresSWISSTRIP_TOKEN)
Optional configuration
Environment variable | Purpose |
| Sync your traveler profile from your SwissTrip account. Mint at https://swisstrip.app/settings/developer. |
| Override the hosted server URL. Default: |
| Same as above (legacy name, still supported). |
Why was this renamed?
sbb-mcp started as the canonical npm package. To protect against future trademark conflicts (the SBB acronym belongs to Schweizerische Bundesbahnen) the canonical implementation now lives at swisstrip-mcp, which is registered under the SwissTrip™ trademark. sbb-mcp and 8 other npm names (sbb-mcp-official, sbb-cff-ffs-mcp, swiss-rail-mcp, swiss-railways-mcp, swiss-train-mcp, swisstrip, swisstrip-ai, swisstrip-server) are 1-line spawners that depend on swisstrip-mcp.
This means: if any one of the SBB-themed names ever needs to be transferred or removed, every existing integration keeps running unchanged because they all forward to the canonical swisstrip-mcp.
License
Proprietary. See LICENSE. © 2026 SwissTrip.
For commercial licensing inquiries: fabsforward2@gmail.com.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fabsbags/sbb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server