amtrak-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@amtrak-mcp Where is Amtrak 67 right now, and is it running late?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@trackside/amtrak-mcp
Unofficial MCP server for live Amtrak trains. It answers with train status, map positions, station departures and arrivals, alerts, and station or route lookup.
This is not an Amtrak product and is not affiliated with, endorsed by, or supported by Amtrak. It reads public data only. It does not book travel or sign in.
The GitHub repository is TracksideTransport/amtrak-mcp.
Tools
Tool | What you get |
| One train's journey. Every stop in order, with scheduled, estimated, and actual times in the station's local zone, delay minutes, track when Amtrak has posted one, and whether the stop is completed. Also the last stop, the next stop, and the map position when the train is active. |
| Trains on the map. Optional route name and bounding box ( |
| Departures and arrivals at one station, with tracks when the status document is readable. |
| Operational comments from the live fleet, plus titles from Amtrak's notices page when that page is readable. |
| A station by code ( |
| A route by name, with the train numbers currently on it. |
Station arguments accept a code or a name. An exact code wins. A name that matches one station is used. A name that matches several, such as Springfield, returns the candidates and does not guess.
Times look like { "local": "2026-11-30T09:10:00-05:00", "timeZone": "America/New_York" }. Delay minutes are positive when the train is late and negative when it is early.
Examples
Train 67, whichever origin date is operating now:
{ "name": "get_train_status", "arguments": { "train": "67" } }A specific origin date:
{ "name": "get_train_status", "arguments": { "train": "67", "serviceDate": "2026-11-30" } }Providence departures and arrivals:
{ "name": "get_station_board", "arguments": { "station": "PVD" } }Northeast Regional trains in a box around New York:
{
"name": "get_train_positions",
"arguments": { "route": "Northeast", "north": 42, "south": 40, "east": -73, "west": -75 }
}Prompts that work once the server is connected:
"Where is Amtrak 67, and what track is it using at Providence?"
"What is departing Boston South Station this evening?"
"Which Acela trains are on the map right now?"
Related MCP server: general-agentic-management-mcp
Setup
Requires Node.js 20 or newer.
npx -y @trackside/amtrak-mcp@latestThe published bin is amtrak-mcp. Stdio is the default. Logs go to stderr so they stay off the JSON-RPC stream. The MCP server name is amtrak-mcp.
Cursor
Add this to ~/.cursor/mcp.json or the project's .cursor/mcp.json:
{
"mcpServers": {
"amtrak": {
"command": "npx",
"args": ["-y", "@trackside/amtrak-mcp@latest"]
}
}
}Claude Desktop
The same mcpServers block goes in the desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after saving.
Claude Code
claude mcp add amtrak -- npx -y @trackside/amtrak-mcp@latestVS Code
Create .vscode/mcp.json:
{
"servers": {
"amtrak": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@trackside/amtrak-mcp@latest"]
}
}
}Other MCP clients
Any client that can start a stdio server can use the same command:
npx -y @trackside/amtrak-mcp@latestStreamable HTTP
HTTP mode is stateless and has no authentication. Bind it to localhost.
npx -y @trackside/amtrak-mcp@latest --http --port 3333The MCP endpoint is http://127.0.0.1:3333/mcp. GET /health returns ok.
Data sources
Data | Endpoint |
Positions, route, and stop times |
|
Station directory |
|
Route names |
|
Tracks, actual times, and cancellation |
|
Notices |
|
The two map documents are the ciphertext the public map page decrypts in the browser. This package opens that envelope locally. It does not call a third-party train API.
Requests are one at a time, at least 500 ms apart. The fleet is cached for 45 seconds, a status document for 60 seconds, notices for 5 minutes, routes for 6 hours, and the station directory for 12 hours. A station board fetches at most 8 status documents.
Variable | Default | Purpose |
|
| Minimum gap between Amtrak requests |
| enabled | Set to |
| on when Chrome exists | Set to |
| usual Chrome paths | Chrome or Chromium binary. Used only when the browser is on |
Caveats
www.amtrak.comanswers a plain request with 403. A local Chrome or Chromium reads it by opening a public Amtrak page and fetching from that page. That path is on by default when Chrome is installed. SetAMTRAK_BROWSER=0orfalseto turn it off. Nothing is downloaded, and the User-Agent is not disguised as a browser.Chrome is what loads track numbers, the status document's actual times and cancellations, and the notices page (
/alert).Without Chrome, or with it turned off, these still work from
maps.amtrak.com: positions, route names, the station directory, scheduled and estimated stop times, posted fleet times, delay phrases, last stop and next stop, station lookup, and route lookup. Train status and station boards then settracksUnavailable. Alerts fall back to fleet comments.The map point is the train's position. The status document's location pin stays at the origin after departure, so it is not used.
Velocityis reported as miles per hour. Observed values match train speeds.Headingis a compass point such asSW.Fleet clocks are local wall times.
E,C,M, andPmap to New York, Chicago, Denver, and Los Angeles. Yuma and the other Arizona codes in the feed stay onAmerica/Phoenixeven though the feed labels themM.A blank track or
TBDmeans Amtrak has not posted a track. The departure track is preferred.AllTTMTrains, the station-board file on the map host, is not used. Copies of it have been hours behind the fleet feed.Service date is the day the train left its origin, not the day it reaches a later station. Omit it to use the trip closest to now. Pass
serviceDatewhen you want a particular day.Live data is late, missing, or revised. This server does not guarantee a track, a connection, or an arrival.
Credits
The map-feed envelope and the shape of Amtrak's public train and station documents were worked out by Piero Maddaleni (piemadd) and are documented, with later endpoint research, in TracksideTransport/Amtrak-GTFS-RT. That repository is AGPL-3.0. This package is MIT. It does not copy Amtrak-GTFS-RT source. Comments in src/amtrak/decrypt.ts point at that work.
gtfs-mcp stays operator-agnostic. This server does not depend on it.
Development
npm install
npm run lint
npm test
npm run typecheck
npm run build
node dist/cli.js --helpnpm test uses fixtures and does not open a network connection. npm run test:live makes a few real requests (station BOS and a short position list). CI does not run it.
npm run test:liveLicense
MIT. See LICENSE.
Amtrak's data and names remain Amtrak's. This project does not grant any right to them.
Available Tools
6 toolsget_alertsAlertsARead-onlyIdempotent
Operational comments from the live fleet and, when the notices page is readable, titles from Amtrak's public alerts list. Filter by station, route, or train number. A blocked notices page does not fail the tool.
Inputs: route, train, station.
get_station_boardStation departures and arrivalsARead-onlyIdempotent
Departures and arrivals at one Amtrak station, with tracks when the status document is readable. Pass a station code or name. An ambiguous name returns candidates and does not pick one. serviceDate is the local calendar date at the station.
Inputs: station (required), serviceDate.
get_train_positionsTrain positionsARead-onlyIdempotent
Live Amtrak train positions from the map feed. Filter with a route name (for example Northeast or Acela) and a bounding box (north, south, east, west). Each row includes latitude, longitude, compass heading, and speed in mph.
Inputs: east, west, limit, north, +2 more.
get_train_statusTrain statusARead-onlyIdempotent
Journey for one Amtrak train: every stop in order with scheduled, estimated, and actual times in the station's local zone, delay minutes, track when posted, whether the stop is completed, and where the train is now (last stop, next stop, and map position). Pass the train number and an optional origin service date.
Inputs: train (required), serviceDate.
lookup_routeLook up a routeARead-onlyIdempotent
Look up an Amtrak route by name, such as Acela, Northeast Regional, or Lake Shore. Returns the map name and the train numbers currently on that route.
Inputs: query (required).
lookup_stationLook up a stationARead-onlyIdempotent
Look up an Amtrak station by code (BOS, PVD, KIN, NYP) or by name. Returns code, name, city, facility, aliases, coordinates, and time zone when a live train has named the zone. An ambiguous name returns the candidates.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a clearly distinct resource or action: station departures board, single-train journey status, fleet-wide map positions, alerts, station reference lookup, and route reference lookup. The get_ vs lookup_ split is meaningful (live feeds vs reference data) and the descriptions reinforce the boundaries, so an agent can pick correctly.
All six tools use a consistent snake_case verb_noun pattern with two clearly principled verb families (get_ for live data, lookup_ for reference data). No casing or style mixing.
Six tools is well-scoped for a read-only Amtrak real-time data server; every tool covers a distinct facet (board, train, positions, alerts, station, route) and none feels redundant or padding.
The real-time surface is well covered, but there is no itinerary/trip-planning or schedule search between two stations, and no way to enumerate all stations or all routes (only name-based lookup). These are modest gaps an agent can partly work around via the station board.
Maintenance
Related MCP Connectors
Amtrak MCP — live Amtrak train tracking via the community Amtraker API (api-v3.amtraker.com, a…
Read-only public transit departures, stop search, and city coverage for bus and train users.
Read-only flight, train, airport and chokepoint status plus prediction markets on transport delays.
Cached UK train departures and qualified platforms, powered by National Rail Enquiries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables real-time Indian Railways information retrieval, including live train running status, station schedules, and upcoming arrivals/departures.ISC
- FlicenseNot gradedqualityCmaintenanceEnables querying aviation weather, FAA TFRs, NWS alerts, flight tracking, and Amtrak train status using public APIs. No API keys or private infrastructure required.-
- AlicenseNot gradedqualityCmaintenanceEnables real-time access to Boston MBTA transit data (subway, bus, commuter rail, etc.) via the MBTA v3 API.67 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables real-time Amtrak train tracking and information via the community Amtraker API.66 npm1MIT