Skip to main content
Glama

sbb-mcp

SwissTrip SBB MCPサービス用のMCPクライアントです。AIアシスタントをスイス連邦鉄道(SBB / CFF / FFS)のライブデータ(列車の時刻表、駅検索、チケット価格、直接購入リンク)に接続します。

本パッケージはシンクライアントです。SBB APIへのアクセス、発券、プロファイル同期はすべて、ホストされているSwissTripサーバー https://mcp.swisstrip.app/mcp 上で実行されます。

インストール

Claude Desktop

claude_desktop_config.json に以下を追加してください:

{
  "mcpServers": {
    "sbb": {
      "command": "npx",
      "args": ["-y", "sbb-mcp"]
    }
  }
}

Cursor

~/.cursor/mcp.json に以下を追加してください:

{
  "mcpServers": {
    "sbb": {
      "command": "npx",
      "args": ["-y", "sbb-mcp"]
    }
  }
}

ChatGPT (Plus / Pro / Business / Enterprise with Developer Mode)

インストールは不要です。以下のカスタムコネクタを追加してください:

https://mcp.swisstrip.app/mcp

Related MCP server: swiss-rail-mcp

ツール

  • search_stations — スイスの駅、住所、POI(興味のある地点)を検索

  • search_connections — 2駅間の列車時刻表を検索

  • get_trip_details — すべての途中停車駅を含む詳細な旅程を取得

  • get_more_connections — 前回の検索結果に対して、より早いまたは遅い列車を取得

  • get_prices — 半額カード(Halbtax)やGA割引を適用したチケット価格を取得

  • get_ticket_link — SBB.chへの直接購入リンクを取得

  • save_profile / get_profile — 旅行者プロファイルをローカルに保存

  • list_travelers — 複数人(家族など)の料金計算(SWISSTRIP_TOKENが必要)

オプション設定

環境変数

用途

SWISSTRIP_TOKEN

SwissTripアカウントから旅行者プロファイルを同期します。https://swisstrip.app/settings/developer で発行してください。

SBB_MCP_URL

ホストされているサーバーURLを上書きします。デフォルト: https://mcp.swisstrip.app/mcp。

ライセンス

プロプライエタリ。 LICENSE を参照してください。 © 2026 SwissTrip。

商用ライセンスに関するお問い合わせ: fabsforward2@gmail.com

Available Tools

9 tools
get_more_connectionsGet More ConnectionsA
Read-onlyIdempotent

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

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

get_pricesGet PricesA
Read-onlyIdempotent

Get ticket prices for one or more train connections. Supports Half-Fare card (Halbtax) and GA travelcard discounts. When connected to SwissTrip (SWISSTRIP_TOKEN), pass traveler_names to get family pricing for multiple travelers.

Inputs: trip_ids (required), traveler_type, reduction_card, traveler_names.

get_profileGet Travel ProfileA
Read-onlyIdempotent

Read the user's saved travel profile. Check this before showing prices to use correct reduction card. If no profile exists, ask the user for their details.

Inputs: no named parameters.

get_trip_detailsGet Trip DetailsA
Read-onlyIdempotent

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).

list_travelersList TravelersA
Read-onlyIdempotent

List all travelers in the user's SwissTrip account (self, partner, kids). Each traveler has their own reduction card. Use their names with get_prices for family trip pricing. Requires SWISSTRIP_TOKEN.

Inputs: no named parameters.

save_profileSave Travel ProfileA
Idempotent

Save the user's travel profile locally for future sessions. Call this after asking the user for their details (name, date of birth, reduction card). Data is stored at ~/.sbb-mcp/profile.json.

Inputs: first_name, last_name, date_of_birth, reduction_card, +1 more.

search_connectionsSearch ConnectionsA
Read-onlyIdempotent

Find train connections between two Swiss stations. Returns schedules with departure/arrival times, duration, transfers, and trip IDs for pricing.

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

search_stationsSearch StationsA
Read-onlyIdempotent

Search for Swiss train stations, addresses, or points of interest by name. Returns station IDs needed for other tools.

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.3/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct aspect: station search, connection search, trip details, pricing, ticket link, loading more connections, profile read/save, and traveler listing. No overlapping purposes.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with underscores (e.g., search_connections, get_prices, list_travelers), making them predictable and easy to navigate.

    Tool Count5/5

    9 tools is well-scoped for a Swiss railway assistant, covering search, planning, pricing, purchase, and profile management without bloat or deficiency.

    Completeness4/5

    Covers core workflows: station search, connection search, trip details, pricing, purchase link, and profile. Minor gap in real-time delay information, but overall complete for travel planning and purchasing.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers