Skip to main content
Glama
tpjnorton

swiss-public-transport-mcp

by tpjnorton

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_locationsA

Find Swiss train stations, bus stops, and other transport locations.

Use this to:

  • Look up a station name (e.g., "Bern", "Zürich HB", "Interlaken")

  • Find stations near GPS coordinates (e.g., near your hotel)

  • Resolve ambiguous names before planning a journey

Returns station IDs, coordinates, and relevance scores.

plan_journeyA

Plan a journey through Switzerland by train, bus, tram, boat, or cableway.

Use this whenever someone wants to:

  • Travel from A to B (e.g., "how do I get from Zürich to Zermatt?")

  • Plan a multi-stop trip (use via for intermediate stops)

  • Find the best connection for a specific date/time

  • Arrive somewhere by a deadline (set is_arrival_time=True)

  • Compare route options across different transport types

Returns real-time schedules with platform numbers, delays, transfers, and occupancy levels. Call multiple times with different legs to plan a full day itinerary visiting several places.

get_stationboardA

Check what's departing or arriving at a Swiss station right now.

Use this to:

  • See upcoming departures ("what trains leave from Bern soon?")

  • Check if a specific service is delayed or cancelled

  • Browse arrivals at a station

  • Filter by transport type (trains only, buses only, etc.)

Returns a live board with times, platforms, destinations, and delay status.

get_booking_linkA

Get a direct link to buy tickets on sbb.ch for a specific journey.

Use this when someone wants to:

  • Buy a ticket ("book me a train from Zürich to Bern")

  • Get a link to the SBB website for a specific route and time

  • Share a timetable link with someone

Returns a ready-to-click URL that opens SBB's timetable with the search pre-filled.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/tpjnorton/swiss-public-transport-mcp'

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