Swiss Public Transport

io.github.tpjnorton由 GitHub 帳號 tpjnorton 發布v0.1.10更新於 Oct 24, 2026

Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.

已驗證STDIO僅桌面位置與生活效率與工作流

概覽

AI 產生的概覽

本機 MCP 伺服器,用於瑞士大眾運輸:規劃行程、查看即時月台資訊與誤點,並取得 SBB 購票連結。

可以做什麼
依名稱或座標解析車站、站點和興趣點,名稱有歧義時回傳候選清單。規劃 A 到 B 的行程,支援途經點、交通類型篩選和依抵達時間查詢。讀取任一站點的即時出發或抵達資訊。為規劃好的行程產生 SBB.ch 購票連結,方便一鍵購票。
適用情境
適合讓助理回答瑞士交通問題:兩地之間的連接、下一班出發、即時誤點,或提供購票連結。適合需要零設定、快速行程規劃的情境,而非官方營運資料來源。
執行需求
透過 stdio 在本機執行,以 uvx 從 PyPI 套件啟動,需要 Python/uv 執行環境。無需帳號、API 金鑰或環境變數;它查詢免費的 transport.opendata.ch 服務,因此需要網路存取。僅支援桌面用戶端。
安裝前請注意
行程和月台資料來自第三方服務 transport.opendata.ch,而非 SBB 官方資料來源,準確性和可用性取決於該服務。購票連結僅開啟 SBB.ch,伺服器本身不購票、不處理付款。伺服器為唯讀,不索取任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Swiss Public Transport,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

swiss-public-transport-mcp

MCP server for Swiss public transport — connections, stationboards, real-time delays, and direct booking links for SBB.

Wraps transport.opendata.ch — free, no API key, no signup. Covers the full Swiss network (SBB, Postauto, regional, trams, buses, ships, cableways).

Why this server

  • Zero config. Install and go — no account, no token, no env vars.
  • Booking links. Returns deep links into SBB.ch so the user can buy a ticket in one click.
  • Disambiguation built in. Ambiguous station names return candidates instead of failing silently.
  • Compact, model-friendly output. Formatted text designed for LLM context windows, not raw JSON dumps.

Tools

ToolPurpose
search_locationsResolve a station/stop/POI by name or coordinates
plan_journeyPlan A → B with via, transport-type filters, arrival-time mode
get_stationboardLive departures or arrivals from any stop
get_booking_linkBuild an SBB.ch URL for a journey so the user can buy a ticket

Install

No install needed — run directly with uvx:

bash
uvx swiss-public-transport-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "swiss-public-transport": {      "command": "uvx",      "args": ["swiss-public-transport-mcp"]    }  }}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Development

bash
git clone https://github.com/tpjnorton/swiss-public-transport-mcp.gitcd swiss-public-transport-mcpuv syncuv run swiss-public-transport-mcp

Related project

If you need official opentransportdata.swiss data — SIRI-SX disruption alerts, occupancy forecasts, OJP Fare ticket prices, train formation — see malkreide/swiss-transport-mcp. It exposes ~11 tools across the official OJP 2.0 / SIRI / CKAN APIs and requires a (free) API key from the opentransportdata.swiss API Manager.

this servermalkreide/swiss-transport-mcp
Data sourcetransport.opendata.chopentransportdata.swiss (official)
API keynonerequired (free signup)
Tools4 (journey planning + booking links)11 (planning + disruptions + occupancy + fares + formation)
Setupone commandper-API key configuration
Best forquick journey planning, fast LLM responses, ticket purchase flowrich operational data, official feeds

The two servers cover overlapping but distinct use cases — you can install both side by side.

來源:README.md,提交 d356107

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.10最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分