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 生成的概览

以工具形式提供世界列车地图图集:搜索知名列车线路、夜车、按国家列出的线路以及城际行程时间。

可以做什么
  • 按线路名、城市、列车、运营商或国家搜索线路,并可按类别和国家筛选
  • 按 id 读取单条线路的完整记录,包括里程、耗时、最高速度、运营商、开通年份和沿途景点
  • 列出最著名的旅程、某国的全部线路,或全部及按城市筛选的卧铺线路
  • 查询两座欧洲城市之间的行程信息,以及该走廊上的经典线路
  • 获取图集概览,包括线路数、国家数、总里程和浏览入口链接
适用场景
适合回答旅行或铁路相关问题:一生必坐的列车旅程、卧铺选择、某国有哪些列车,或两座欧洲城市之间的大致用时。也适合用来了解这份图集数据本身。
运行要求
远程 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]

1,538 train routes · 120 countries · ≈ 531,400 km of route, every route with its key facts and its line, 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), the scenic lines people fly in just to ride (Glacier Express, Bernina Express, the Jacobite), and the heritage and mountain railways around them.

🗺️ 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. 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.

Two licences

Since the 8 November 2026 cut (release v1.2.0) the files carry two licences, because the lines and the facts come from different places:

FileWhat it holdsLicence
data/routes.csvOne row per route, all facts, no geometryCC BY 4.0, credit World Train Map
data/routes.jsonThe same records, with structured country objectsCC BY 4.0, credit World Train Map
data/routes.geojsonA LineString per route, with every fact as a propertyODbL 1.0, © OpenStreetMap contributors
data/LICENSEThe licence notice for the three files, written by the exporter

The lines are derived from OpenStreetMap: 1,396 of the 1,538 are drawn node for node from OSM route relations, 26 are snapped onto the OSM rail graph by map matching, and the other 116 have no record of their origin, which is not evidence that they are ours, so they are treated as derived too. The whole GeoJSON is therefore ODbL, including the facts repeated in its properties; the same facts stay CC BY 4.0 in the CSV and JSON. If you only need the facts, use those two files and the ODbL never applies.

Which version holds what

WhereRoutesCutNote
The live site1,5388 November 2026worldtrainmap.com, always the newest
data/ in this repo, Hugging Face, Kaggle (facts only)1,5388 November 2026the same routes as the live site that day
Zenodo (the citable DOI)1,5388 November 2026release v1.2.0
The MCP server1,5167 October 2026deployed separately from the site, so it lags it a little; its atlas_stats tool reports the current figure

Earlier releases (v1.0.0 and v1.1.0 on 12 July, the 23 July cut of 961 routes) labelled every file CC BY 4.0. The 12 July lines were hand-placed, but the 23 July cut already held a handful of corridors traced from OpenStreetMap (Brenner, Oslo–Göteborg, Oslo–Stockholm, the Pustertalbahn), and those lines were ODbL all along; this release is the first that says so file by file.

Schema

FieldTypeNotes
idstringStable slug, e.g. glacier-express
namestringRoute/service name
from, tostringTerminus cities
categoryenumhigh-speed · classic · night · scenic · heritage · mountain · luxury
trainstringRolling stock, e.g. e320 · Class 374
operatorstringOperating company
distance_kmnumberRoute length
top_speed_kmhnumber|nullService top speed, where a credible figure exists (1,262 of 1,538 rows)
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: 89 of the 1,538 rows carry one
countries_iso / countriesstring|-separated, in travel order (CSV); structured objects in JSON
highlightstringOne-line description of what makes the route notable
fame_ranknumber1 = most famous (the atlas's own renown ranking)
urlstringThe route's page on worldtrainmap.com

Three more properties, in routes.geojson only:

FieldTypeNotes
geometry_sourcestring|nullosm_relation (drawn from the OSM route relations in osm_relations), osm_map_matched (snapped onto the OSM rail graph), or null where no record of the line's origin exists
osm_relationsstring|null|-separated ids of the OSM relations the line was drawn from, e.g. 2905798 for Eurostar London–Paris
geometry_licencestringODbL-1.0 on every feature

The GeoJSON FeatureCollection also carries license and attribution members, so the credit travels with the file.

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")   # ODbL: credit © OpenStreetMap contributorsgdf.plot(column="category", figsize=(16, 8))

Sources, accuracy & provenance

  • Facts are compiled from public references, not from any licensed dataset: operators' own figures, timetables, press material and encyclopaedic articles. A few distance and top-speed figures were measured on OpenStreetMap track instead; they are a small, insubstantial extract of the OpenStreetMap database. Individual facts like these aren't copyrightable; the licence covers the curated compilation.
  • Geometry began as hand-placed waypoints in July 2026 and has since been redrawn from OpenStreetMap: from route relations where mappers describe the service, and by map matching onto the OSM rail graph where they do not. Each feature says which, where a record exists.
  • Facts are approximate published values: distance, top speed, journey time, operator, opening year and ridership. 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.

License & attribution

  • Facts (data/routes.csv, data/routes.json): CC BY 4.0. Credit World Train Map; a link to https://worldtrainmap.com, or to the route page in url, satisfies it.
  • Lines (data/routes.geojson): ODbL 1.0, © OpenStreetMap contributors. A database you derive from it and use publicly must be offered under the ODbL too; a map or image made from it needs the credit "© OpenStreetMap contributors". (full notice)
  • Code (the MCP server in mcp/): MIT.

Also available on

Until 24 August 2026 this README and the site linked a Kaggle mirror at kaggle.com/datasets/albanius/.... That account name has never been ours and the link was dead from the day it was written; the mirror above is the real one.

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. Route lines © OpenStreetMap contributors, ODbL.

Updating

The files are generated from the atlas source by the site's exporter, which writes routes.csv, routes.json, routes.geojson and data/LICENSE together, so the notice cannot drift from the files. New versions land here first; 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/, and it serves facts only, no geometry. Its atlas_stats tool reports exactly what it is serving.

来源:README.md,提交 2bca410

工具

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

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分