Atlas

com.trainrouterPublished by trainrouter.comOfficial publisherv1.0.4Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableLocation & LifestyleData & Analytics

Overview

AI-generated overview

Serves the World Train Map atlas as tools: search notable train routes, night trains, country listings and city-pair journey times.

What you can do
  • Search routes by name, city, train, operator or country, with category and country filters
  • Read a full route record by id, including distance, duration, top speed, operator, opening year and sights
  • List the most famous journeys, all routes in a country, or sleeper routes overall or by city
  • Get journey facts between two European cities, plus legendary routes on that corridor
  • Fetch an atlas snapshot with route counts, countries, total length and browse links
When to use it
Useful when answering travel or rail questions: bucket-list train journeys, sleeper options, what trains run in a given country, or rough times between two European cities. Also handy for exploring the atlas dataset itself.
Requirements
A remote MCP endpoint; no account, API key or environment variable is declared. The README also mentions running the server locally from its repository with npm.
Before you install
Journey times are sampled from public schedule data, not live times, and facts are approximate published values, so they suit exploration rather than actual trip planning. The server lags the live site slightly, and its stats tool reports the figure it currently serves.

Installation

In SourceWeft

  1. Open Atlas in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/com.trainrouter%2Fatlas/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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.

Source: README.md at commit 2bca410

Tools

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.

Parameterslimitquerycountrycategory

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.

Parametersidrequired

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.

Parameterslimit

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.

Parameterscountryrequired

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.

Parameterscity

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.

Parameterstorequiredfromrequired

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.

Takes no parameters.

Version history

1
  1. v1.0.4LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts