Skip to main content
Glama
Fabsbags

swisstrip-mcp

by Fabsbags

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SBB_MCP_URLNoSame as SWISSTRIP_MCP_URL (legacy name, still supported). Default: https://mcp.swisstrip.app/mcp.https://mcp.swisstrip.app/mcp
SWISSTRIP_MCP_URLNoOverride the hosted server URL. Default: https://mcp.swisstrip.app/mcp.https://mcp.swisstrip.app/mcp

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}
resources
{
  "subscribe": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_stationsA

Search for Swiss train stations, addresses, or points of interest by name. Returns UIC station IDs (e.g. "8503000" for Zürich HB) used by the other tools. Note: search_connections accepts station names directly, so this tool is only needed when the user explicitly asks for station info or when you need disambiguation between multiple matches.

search_connectionsA

Find train connections between two Swiss stations. Accepts station names directly (e.g. "Zürich HB", "Bern") or UIC IDs — name resolution happens internally. Returns live schedules with departure/arrival times, duration, transfers, and trip IDs for downstream pricing/details/ticket calls. Live data: includes delays and cancellations for trains departing within 30 min.

get_trip_detailsA

Get detailed information about a specific train connection including all intermediate stops, platforms, and occupancy. Use a trip ID from search_connections results.

get_more_connectionsA

Load earlier or later train connections for a previous search. Use the collection ID from search_connections results.

get_pricesA

Get ticket prices in CHF for one or more train connections. Supports Half-Fare card (Halbtax) and GA travelcard discounts. Up to 10 trip_ids per call — batch them in a single request rather than calling once per connection. Use trip_ids from a recent search_connections result; do not invent IDs.

get_ticket_linkA

Get a direct purchase link to buy a train ticket on SBB.ch. Only call this when the user wants to buy a specific ticket. On mobile with SBB app installed, opens directly in the app with Halbtax/GA applied automatically.

Prompts

Interactive templates invoked by user choice

NameDescription
plan_journeyPlan a train journey in Switzerland — finds connections, compares prices, and provides ticket links

Resources

Contextual data attached and managed by the client

NameDescription
widget-stations-listCard view of Swiss train station search results.
widget-connection-listCard list of Swiss train connections with times, duration, and transfers.
widget-trip-detailsTimeline view of a single train journey with stops, platforms, and occupancy.
widget-prices-tableTable view of 1st- and 2nd-class ticket prices for selected trips.
widget-ticket-cardSBB ticket purchase card with deep link that opens SBB.ch or the SBB mobile app.

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/swisstrip-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server