TransCAPI

com.transcapi由 transcapi.com 發布v0.1.3更新於 Oct 30, 2026

UK and Ireland transport: live buses and trains, journey planning, rail fares, disruptions.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

TransCAPI 讓助理取得英國與愛爾蘭的即時大眾運輸資料:公車與火車班次、車輛即時位置、營運中斷與行程規劃。

可以做什麼
  • 依名稱或座標尋找城鎮、郵遞區號、公車站與火車站,並回傳後續查詢所需的代碼
  • 讀取公車與火車的即時出發與抵達資訊,包含預計時間、月台、取消與誤點原因
  • 追蹤單一班公車或火車的所有停靠站,含今日即時狀態與車輛目前位置
  • 列出某地點附近的行駛中公車,可依路線或營運業者篩選
  • 依區域、運具、營運業者、路線或某段行程路線查詢計畫施工、事故與路線狀態
  • 規劃大眾運輸行程,含步行、票價與已行駛公車的即時位置
適用情境
適合回答關於英國與愛爾蘭大眾運輸的問題:下一班火車或公車、是否準點、某班公車現在在哪、什麼影響了某條路線。行程規劃目前僅涵蓋南約克郡、西約克郡與西薩塞克斯。
執行需求
以 Python 套件 transcapi-mcp 在本機透過 stdio 執行(可用 uvx 或 pip),供桌面用戶端使用。需在 TRANSCAPI_API_KEY 提供 TransCAPI API 金鑰,免費額度為每日 200 次請求。可用 TRANSCAPI_BASE_URL 覆寫 API 位址。需要能連線至 TransCAPI API 的網路。
安裝前請注意
TRANSCAPI_API_KEY 中的 API 金鑰屬於機密,不應外流。所有工具皆為唯讀,但查詢會把位置與行程規劃傳送給第三方 API。向他人展示資料時須依提供者要求標註資料來源。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

TransCAPI MCP server

Lets AI assistants such as Claude answer questions about public transport in Great Britain and Ireland with live data: "When's the next train from Leeds to York, and is it on time?", "Where's the 52 bus?", "Is anything disrupting my route home?"

It connects an assistant to TransCAPI, which covers England, Scotland, Wales and the island of Ireland (plus the Netherlands and Belgium): stops and places, bus and rail departures with live running, live bus positions, journey planning with rail fares, disruptions matched to a route, and measured bus punctuality.

Setup

  1. Get a free API key at https://www.transcapi.com/signup (200 requests a day, every endpoint).

  2. Add the server to your MCP client. For Claude Desktop, in claude_desktop_config.json:

    json
    {  "mcpServers": {    "transcapi": {      "command": "uvx",      "args": ["transcapi-mcp"],      "env": { "TRANSCAPI_API_KEY": "your-key" }    }  }}

    For Claude Code:

    bash
    claude mcp add transcapi --env TRANSCAPI_API_KEY=your-key -- uvx transcapi-mcp

    Or install it yourself with pip install transcapi-mcp and run transcapi-mcp.

Tools

ToolWhat it answers
search_placesFind a town, village, postcode or stop by name
nearby_stopsBus, tram and rail stops near a point, with which way the buses go
nearby_stationsRail stations near a point
bus_departuresWhat's leaving (or arriving at) a bus stop, with live times for tracked buses
rail_departuresLive trains at a station: expected times, platforms, cancellations, delay reasons
train_serviceEvery station one train calls at, live for today
bus_serviceEvery stop one bus journey calls at, and where the bus is now
live_busesBuses on the road near a point, with delays where tracked
disruptionsPlanned works, incidents and line status, by area, line or a journey's route
plan_journeyPublic transport journeys between two points (South and West Yorkshire and West Sussex for now)

All tools are read-only.

Configuration

Variable
TRANSCAPI_API_KEYRequired. Your TransCAPI key.
TRANSCAPI_BASE_URLOptional. Defaults to https://api.transcapi.com.

Attribution

TransCAPI is built on official open data. If you show its data to other people, credit the sources as described at https://www.transcapi.com/docs/data-sources.

Licence

MIT.

來源:README.md,提交 fad5b23

工具

10

search_places

Find towns, villages, postcodes (full or partial, e.g. "S1") and stops by name. Places sharing a name are ranked by size. Give lat/lon to sort by distance from there.

輸入參數latlonlimitquery必填

nearby_stops

Bus, tram and rail stops within `radius` metres of a point, nearest first. Each has an `atcocode` for bus_departures and `towards` saying which way its buses go.

輸入參數lat必填lon必填limitradius

nearby_stations

Rail stations within `radius` metres of a point, with their CRS codes for rail_departures.

輸入參數lat必填lon必填limitradius

bus_departures

What is leaving (or, with board="arrivals" or "both", arriving at) a bus stop. Tracked buses have an expected time and `delay_seconds`; others show the timetabled time with source `gtfs_scheduled`.

輸入參數boardlimitatcocode必填minutes_ahead

rail_departures

Live trains leaving (or arriving at, with board="arrivals" or "both") a station: expected times, platforms, cancellations and delay reasons from National Rail, plus station messages. `crs_code` is the 3-letter code, e.g. LDS for Leeds.

輸入參數boardlimitcrs_code必填minutes_ahead

train_service

Every station one train calls at. For a train running today, each call has live status, expected and actual times, and the platform at its next station. Take `trip_id` from rail_departures.

輸入參數trip_id必填

bus_service

Every stop one bus journey calls at, the days it runs, and where the bus is now if it is running. Take `trip_id` from bus_departures or live_buses.

輸入參數trip_id必填

live_buses

Buses on the road within `radius` metres (up to 10000) of a point, nearest first, each linked to the journey it is working (`trip_id`) and with `delay_seconds` where tracked. Filter by `line` (e.g. "52") or operator.

輸入參數lat必填lon必填lineradiusoperator

disruptions

Planned works, incidents and line status: bus and tram across Great Britain, plus Tube, DLR, Overground, Elizabeth line and London Trams. Filter by area (lat/lon/radius), mode, operator or line. To ask what affects a particular journey, pass its route as `path` (an encoded polyline, e.g. a leg's `leg_geometry` from plan_journey): line numbers repeat across towns, so this is more reliable than `line`.

輸入參數latlonlinemodepathlimitradiusoperatorpath_radius

plan_journey

Public transport journeys between two points, with walking, fares and live positions of buses already running. `datetime` is ISO 8601 (default now); `arrive_by` treats it as the latest arrival. Currently covers South and West Yorkshire and West Sussex: elsewhere it returns 422 outside_coverage, which means not covered rather than no route.

輸入參數limitto_lat必填to_lon必填datetimefrom_lat必填from_lon必填arrive_byinclude_steps

版本歷史

3
  1. v0.1.3最新Oct 23, 2026
  2. v0.1.2Oct 21, 2026
  3. v0.1.1Sep 29, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分