Atlas

com.trainrouter由 trainrouter.com 發布官方發布者v1.0.4更新於 Oct 24, 2026

The world railway atlas as MCP tools: notable train routes, night trains, journey times.

已驗證Streamable HTTP可網頁執行位置與生活資料與分析

概覽

AI 產生的概覽

以唯讀方式存取 World Train Map 鐵路圖集:檢索知名列車路線、夜車、各國路線與城際行程資訊。

可以做什麼
  • 依路線名稱、城市、列車、營運商或國家搜尋路線,可依類別與國家篩選
  • 取得單一路線的完整紀錄:里程、最高速度、行車時間、營運商、車型、啟用年份、載客量、故事、沿途景點與頁面連結
  • 列出最著名的旅程、某國的全部路線,以及全部或依城市篩選的臥鋪路線
  • 比較兩座城市之間的最快與典型行車時間、是否直達、轉乘次數與營運商
  • 取得圖集概況:路線總數、國家數、總里程、類別清單與瀏覽入口
適用情境
適合旅遊規劃與鐵路相關研究:一生必搭的列車旅程、臥鋪選擇、某國有哪些路線,或歐洲兩座城市之間要多久。它是精選參考資料,並非訂票或即時時刻表服務。
執行需求
需要遠端 MCP 端點;未宣告帳號、API 金鑰或環境變數。README 另提到也可從程式碼倉庫以 npm 在本機執行。
安裝前請注意
行車時間取自公開時刻表樣本而非即時資料,各項資料為約略的公開數值,不適合營運層級的規劃。收錄範圍為精選而非全量,所供應的資料集落後於線上網站。所有工具看起來都是唯讀的。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "atlas": {
      "type": "http",
      "url": "https://trainrouter.com/mcp"
    }
  }
}

README

World Train Map Atlas — the world's legendary train routes, as open data

[DOI]

961 train routes · 118 countries · ≈ 432,800 km of route, every route with its key facts and its geometry, from worldtrainmap.com, the interactive world railway map.

High-speed spines (Eurostar, TGV, Shinkansen, AVE), classic long-distance runs (Trans-Siberian, California Zephyr), night trains (Nightjet, the Ghan) and the scenic lines people fly in just to ride (Glacier Express, Bernina Express, the Jacobite).

🗺️ Explore it interactively: worldtrainmap.com 🤖 Use it from an AI assistant: free MCP server at https://worldtrainmap.com/mcp (how to connect), or run it from this repo: npm install && npm start (mcp/)

The site was renamed. It was TrainRouter at trainrouter.com until 11 August 2026 and is now World Train Map at worldtrainmap.com. The old domain redirects path for path, so old links still work, and https://trainrouter.com/mcp still answers directly rather than redirecting, because JSON-RPC clients do not follow redirects. Nothing you already had configured has broken. The repository, the Zenodo DOI and the MCP registry name (com.trainrouter/atlas) keep their old identifiers on purpose: renaming them would break more than it would tidy.

Which version holds what

Several different route counts are in circulation for this atlas, so here is the honest map of them.

WhereRoutesCutNote
The live site1,338todayworldtrainmap.com, always the newest
The MCP server1,24711 August 2026deployed separately from the site, so it lags it a little
data/ in this repo, and Hugging Face96123 July 2026what you get by cloning or downloading here
Zenodo (the citable DOI)74412 July 2026release v1.1.0, the last tagged one

Why the download is behind the site, and it is deliberate. Since late July the route geometry has been progressively re-traced from OpenStreetMap railway relations, which makes it a derivative of OSM data under ODbL, while this package is licensed CC BY 4.0 throughout. Publishing a refresh before the licence is split per route would ship a licence violation with our name on it, so the exporter is blocked until that work lands. See Sources, accuracy & provenance below. If you want something fresher than the July cut without waiting, the MCP server is the closest available.

Files

FileContents
data/routes.csvOne row per route, all facts, no geometry
data/routes.jsonSame records with structured country objects
data/routes.geojsonLineString per route (lon/lat waypoints) plus all facts as properties

Schema

FieldTypeNotes
idstringStable slug, e.g. glacier-express
namestringRoute/service name
from, tostringTerminus cities
categoryenumIn this cut: high-speed · classic · night · scenic · luxury. The live atlas adds mountain and heritage
trainstringRolling stock, e.g. e320 · Class 374
operatorstringOperating company
distance_kmnumberRoute length
top_speed_kmhnumberService top speed
durationstringPublished journey time, e.g. 2 h 16 min
openednumberYear the line/service entered service
pax_per_yearnumber|nullApprox. annual ridership where published, which is rare: 80 of the 961 rows carry one
countries_iso / countriesstring|-separated, in travel order (CSV); structured objects in JSON
highlightstringOne-line description of what makes the route legendary
fame_ranknumber1 = most famous (the atlas's own renown ranking)
urlstringThe route's page. These were written before the rename and still read trainrouter.com, which redirects to the same path on worldtrainmap.com; they will be rewritten in the next release

Quick start

python
import pandas as pdroutes = pd.read_csv("data/routes.csv")routes.nsmallest(10, "fame_rank")[["name", "from", "to", "distance_km"]]
import geopandas as gpdgdf = gpd.read_file("data/routes.geojson")gdf.plot(column="category", figsize=(16, 8))

Sources, accuracy & provenance

  • Provenance changed in late July 2026 — this section was updated 2026-07-31 to say so. The atlas started fully hand-built, and the facts still are: compiled from public references, not from any licensed dataset, so the CC BY 4.0 licence on the facts is the author's to grant.
  • Geometry: hand-traced originally, OSM-traced increasingly. Each route's LineString began as hand-placed [lon, lat] waypoints following the corridor at map scale. From 23 July 2026 onward, alignments have progressively been re-traced from OpenStreetMap railway ways via Overpass so the lines sit on real track. The files currently in data/ are the 23 July refresh: nearly all of their geometry is still the hand-traced kind, but a handful of corridors (Brenner, Oslo–Göteborg, Oslo–Stockholm, Pustertalbahn) are already OSM-traced, and those lines are © OpenStreetMap contributors, ODbL — as any OSM-derived geometry must be. An earlier version of this README said the geometry was "not extracted from OSM or any geodata source"; that was true when written (v1.0, 12 July) and is no longer true, which is why this notice exists. The next release will mark the split per route: facts CC BY 4.0, geometry ODbL. On the live site that re-tracing has since gone much further, which is why the site's routes and this package's routes are no longer the same lines.
  • Facts are approximate published values: distance, top speed, journey time, operator, opening year and approximate ridership are compiled from public references (operators' own figures, timetables, press material, encyclopaedic articles). Individual facts like these aren't copyrightable; the licence covers the curated compilation. Good for exploration and visualization, not operations.
  • Curated, not exhaustive: the world's notable routes, not every line on earth. Route names and the one-line highlights are the author's own wording.
  • Deliberately excluded (they live only on the site, to keep provenance clean): per-route stories and sights, photos (Wikimedia Commons, separately licensed), and the city-to-city journey guides (derived from public schedule feeds).
  • Basemap ≠ data: the interactive site renders these routes over OpenFreeMap (OpenStreetMap) tiles; those tiles are not part of this dataset. OSM © OpenStreetMap contributors — which, per the provenance note above, now also covers the OSM-traced route lines themselves.

License & attribution

  • Facts (every non-geometry field in data/): CC BY 4.0, free to use, share and adapt, with attribution to World Train Map. A link to https://worldtrainmap.com (or the specific route page in url) satisfies attribution. (full notice)
  • Geometry (LineString coordinates): hand-traced lines as above (CC BY 4.0); OSM-traced lines © OpenStreetMap contributors, ODbL 1.0. If you reuse the geometry wholesale, treat it as ODbL and credit OpenStreetMap, which is the safe default, and will be made explicit per route in the next release.
  • Code (the MCP server in mcp/): MIT.

Also available on

The Kaggle mirror is new, and it is worth saying why it did not exist before: every earlier version of this README, and the site's own dataset page, linked one at kaggle.com/datasets/albanius/.... That account name has never been ours, and the same wrong id was hard-coded into the mirror-sync workflow, so the link was dead from the day it was written and the automation could not have fixed it. Both are corrected.

Citing

World Train Map Atlas: the world's legendary train routes (2026). worldtrainmap.com. DOI: 10.5281/zenodo.21322030. https://github.com/Flightmussy/trainrouter-atlas

Updating

The data is generated from the atlas source by an exporter that is currently blocked on purpose, pending the split-licence work described above. That block is why data/ has not moved since 23 July and why the last release is still v1.1.0. Once it is unblocked, new versions land here first, and publishing a GitHub release mints a fresh Zenodo DOI and pushes the mirrors via sync-mirrors.yml, whose jobs each skip themselves when their API token is not configured.

Also in this repo

  • mcp/ — source of the World Train Map MCP server (live at https://worldtrainmap.com/mcp, listed in the Official MCP Registry as com.trainrouter/atlas), which serves the atlas as tools for Claude and other MCP clients. It is deployed from the site's own atlas rather than from data/, so it is well ahead of the files here, though it is redeployed on its own schedule and can sit a little behind the site itself. Its atlas_stats tool reports exactly what it is serving.

來源:README.md,提交 c039fe9

工具

7

search_routes

Search train routes

Free-text search over every route in the World Train Map atlas — matches route name, cities, train name, operator and countries, with optional category/country filters. Accent-insensitive; every word of the query must match. Returns compact per-route facts with id and worldtrainmap.com URL, sorted by renown with route-name matches first; with no query it lists the whole atlas by renown. Use get_route with a returned id for full detail, famous_routes for a ready-made top list, city_pair for A-to-B journey times.

輸入參數limitquerycountrycategory

get_route

Get one route in full

Full record for one atlas route by exact id: distance, fastest time, top speed, operator, rolling stock, opening year, ridership, story, on-route sights, photo and page URL, plus country-hub links. An unknown id returns up to 5 close-match suggestions instead of failing. Use search_routes first when you only have a name or city.

輸入參數id必填

famous_routes

Most famous train routes

The world's most famous train journeys in World Train Map's renown order (rank 1 = most famous: Trans-Siberian, Glacier Express, Orient Express lineage, Shinkansen…), as compact facts with id and URL per route. Best first call for bucket-list and "greatest train trips" questions; use search_routes to find something specific, get_route for full detail on one route.

輸入參數limit

routes_in_country

Train routes in a country

Every atlas route crossing one country, sorted by renown, plus that country's worldtrainmap.com hub URL when it exists. An unrecognised country returns an error, not an empty list. Use for "trains in X" questions; use search_routes to combine a country with text or category filters, night_trains for sleepers only.

輸入參數country必填

night_trains

Night trains / sleepers

Sleeper routes from the atlas, sorted by renown — all of them by default, or only those starting or ending in a given city — with the per-city night-train guide URL when one exists. Use for overnight and sleeper questions; city_pair for concrete A-to-B times; search_routes for other route categories.

輸入參數city

city_pair

City-to-city by train

Journey facts between two cities (European coverage): fastest and typical duration, whether direct trains run, fewest changes, operators and the guide URL — plus legendary atlas routes on that corridor. Direction-insensitive. Figures are sampled from public schedule data, not live times — treat as planning estimates. An uncovered pair returns an error with a search_routes tip.

輸入參數to必填from必填

atlas_stats

Atlas coverage stats

One-call snapshot of what the World Train Map atlas covers: total route count, countries, combined length in km, the category list, number of city-pair guides, data snapshot date, and direct URLs to the main browse pages (world map, all routes, Europe/USA maps, night trains, scenic, by-country, city-to-city). Takes no parameters. Call it to learn what this server can answer, to cite dataset totals, or to link a browse page — it returns no individual routes; use search_routes or famous_routes for those.

無需輸入參數。

版本歷史

1
  1. v1.0.4最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

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