Bahn Transfer

io.github.citizen01-sid由 GitHub 帳號 citizen01-sid 發布v1.0.0更新於 Nov 6, 2026

Re-plan a delayed rail journey: onward options, transfer buffers, one recommendation

已驗證Streamable HTTP可網頁執行位置與生活金融

概覽

AI 產生的概覽

遠端鐵路行程 MCP 伺服器:解析車站、查詢即時發車資訊,並為已誤點的列車重新規劃後續轉乘與唯一建議。

可以做什麼
  • 把車站或城市名稱解析為 stop_id,並回傳說明所用規則、所選車站與被排除候選的 resolution 物件
  • 查詢某站即將發出的班次,含 trip_id、路線、表定與實際時間及目前誤點
  • 為已在誤點列車上的旅客重新規劃行程,提供各站轉乘緩衝、後續銜接與抵達時間,以及一項安全建議
適用情境
適合旅客已在誤點列車上、需要後續銜接、轉乘緩衝與一項安全建議時使用,也適合助理為鐵路行程取得車站 ID 與即時誤點資訊。
執行需求
遠端 streamable HTTP 端點;未宣告驗證、環境變數或標頭。付費工具需在 params._meta 中傳入 x402 付款載荷(EVM、Base),因此需要能依每次呼叫支付 1 USDC 分的錢包。
安裝前請注意
plan_transfer 為付費工具,每次呼叫透過 Base 上的 x402 支付 1 USDC 分,會實際花費資金並需提供付款載荷;首次未付款呼叫會回傳 PaymentRequired 物件。車站與發車查詢免費且唯讀。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.citizen01-sid%2Fbahn-transfer/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "bahn-transfer": {
      "type": "http",
      "url": "https://bahn.1f916.de/mcp"
    }
  }
}

工具

3

search_stations

Free. Resolve a station or city name to a stop_id. A bare city name resolves to that city's main rail hub only when exactly one candidate exists; the answer then carries a 'resolution' object naming the rule, the chosen station and the rejected alternatives. Use the returned stop_id as 'to' in plan_transfer.

輸入參數q必填limit

departures

Free. Upcoming departures at a stop_id, with trip_id, line, scheduled/actual time and current delay. Use trip_id as 'trip_id' in plan_transfer for the train the traveller is already on.

輸入參數limitstation必填

plan_transfer

PAID (x402 exact/EVM, 1 USDC-cent per call). Re-plan a journey for a traveller already on a delayed train: per-stop transfer buffer, onward connections with arrival times, and one safe recommendation. Call it without payment to receive the PaymentRequired object; retry with the payment payload in params._meta['x402/payment'].

輸入參數to必填trip_id必填min_buffermanual_delay

版本歷史

1
  1. v1.0.0最新Nov 6, 2026

評分

已滿足適用檢查項的 83%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。