@olano/mcp-rail-sg
v0.4.1
Published
MCP server for authoritative Singapore MRT and LRT station, exit, line, and network data
Readme
@olano/mcp-rail-sg
Read-only MCP tools for Singapore MRT and LRT stations, station exits, line codes, interchanges, nearest-location lookup, and historical network counts.
Fourteen tools are offline-first and require no API key. The optional
rail_nearest_stations_to_address tool uses live OneMap geocoding and requires
ONEMAP_TOKEN. The package bundles normalized snapshots from official LTA and
data.gov.sg sources so its core station queries are fast and deterministic.
Run
npx @olano/mcp-rail-sgStreamable HTTP is also supported:
npx @olano/mcp-rail-sg --transport http --port 3000Tools
rail_source_metadatarail_network_summaryrail_list_stationsrail_search_stationsrail_get_stationrail_get_station_connectionsrail_list_exitsrail_get_station_exitsrail_nearest_stationsrail_nearest_exitsrail_nearest_stations_to_address(requiresONEMAP_TOKEN)rail_list_linesrail_list_stations_by_linerail_list_interchangesrail_historical_station_counts
Example questions
- “What are the MRT and LRT codes for Choa Chu Kang?”
- “Find the five nearest rail stations to latitude 1.29027, longitude 103.851959.”
- “Find the nearest MRT stations to 1 Fullerton Road.”
- “Which City Hall exit is nearest to these coordinates?”
- “List every station on the Thomson-East Coast Line.”
- “Show all MRT/LRT interchange complexes.”
- “How did Singapore’s published MRT and LRT station counts change from 2004 to 2017?”
Source coverage and limitations
| Source | Coverage used | What it provides | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------------------------------------------- | | LTA Train Station Codes and Chinese Names | Jan 2025 | Codes, names, Chinese names, line membership | | LTA Train Station Exit Point | Aug 2025 | 613 official exit coordinates | | LTA Train Lines Codes | Feb 2024 | Official line-code and direction records | | data.gov.sg Number of MRT and LRT Stations | 2004–2017 | Historical station counts |
Use rail_source_metadata for official URLs and complete caveats. In particular:
- these are dated snapshots, not live service status;
- the exit mirror describes data from August 2025; July 2026 is its publisher-page update, not data coverage;
- station coordinates are averages of official exit positions, not platform centroids;
- nearest-distance tools calculate straight-line distance, not walking routes;
- the line-direction file predates later extensions;
- the historical series ends in 2017 and omits 2015 and 2016.
