Skip to main content
Glama
swisstrip-mcp

swisstrip-mcp

by Fabsbags

swisstrip-mcp

The canonical SwissTrip MCP client. Connects AI assistants to Swiss Federal Railways (SBB / CFF / FFS) data: train schedules, station search, ticket prices, and direct ticket purchase links.

Backed by SwissTrip's hosted MCP service at https://mcp.swisstrip.app/mcp. Independent third-party implementation; not the official SBB MCP.

Install

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"]
    }
  }
}

Gemini CLI / Continue / other stdio MCP clients

Same pattern: 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/mcp

Related MCP server: mcp-sbb-transport

Tools

  • search_stations — find Swiss stations, addresses, and points of interest

  • search_connections — train schedules between two stations

  • get_trip_details — detailed trip with all intermediate stops

  • get_more_connections — earlier or later trains for a previous search

  • get_prices — ticket prices with Halbtax / GA / Sparbillet discounts

  • get_ticket_link — direct purchase link to SBB.ch

Languages

Tool descriptions and natural-language responses available in 9 languages: English, German, French, Italian, Spanish, Portuguese, Dutch, Polish, Russian.

Optional configuration

Environment variable

Purpose

SWISSTRIP_MCP_URL

Override the hosted server URL. Default: https://mcp.swisstrip.app/mcp.

SBB_MCP_URL

Same as above (legacy name, still supported).

Aliases (also published, all spawn this canonical package)

The following npm packages are brand-protective aliases that spawn swisstrip-mcp:

  • swisstrip, swisstrip-ai, swisstrip-server — SwissTrip-branded

  • sbb-mcp, sbb-mcp-official, sbb-cff-ffs-mcp — SBB-themed (may transfer to SBB AG on request)

  • swiss-rail-mcp, swiss-railways-mcp, swiss-train-mcp — generic descriptive

Recommended: install swisstrip-mcp directly. The aliases exist for discoverability and brand protection.

License

Proprietary. See LICENSE. © 2026 SwissTrip.

For commercial licensing inquiries: fabsforward2@gmail.com.

Available Tools

6 tools
get_more_connectionsGet More ConnectionsA
Read-onlyIdempotent
Inspect

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

Inputs: direction (required), collection_id (required).

get_pricesGet PricesA
Read-onlyIdempotent
Inspect

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.

Inputs: trip_ids (required), traveler_type, reduction_card.

get_trip_detailsGet Trip DetailsA
Read-onlyIdempotent
Inspect

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

Inputs: trip_id (required).

search_connectionsSearch ConnectionsA
Read-onlyIdempotent
Inspect

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.

Inputs: to (required), from (required), date, time, +1 more.

search_stationsSearch StationsA
Read-onlyIdempotent
Inspect

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.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: station search, connection search, trip details, pagination, pricing, and ticket purchase. No overlap or ambiguity between them.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (search_* for queries, get_* for retrievals) with clear and predictable names.

    Tool Count5/5

    6 tools is well-scoped for a Swiss railway information and ticket purchase server, covering essential operations without excess.

    Completeness5/5

    The tool set covers the full user journey: station lookup, connection search, details, pagination, pricing, and purchase link. No obvious gaps given the domain.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Independent MCP client by swsistrip for Swiss Federal Railways (SBB/CFF/FFS) — all schedules, prices, ticket links via SBB's official SMAPI.
      9
      60 npm
      3
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides real-time Belgian rail (SNCB/NMBS) data via the iRail API, enabling AI agents to query train schedules and live information.
      118 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time Swiss railway information including departures, connections, train composition, occupancy forecasts, disruptions, and pricing, accessible via natural language in over 100 languages.
      MIT