Where's My Train?
Provides real-time NYC subway information including train arrivals, station search, service alerts, transfer information, and system status using live MTA GTFS-RT data feeds.
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., "@Where's My Train?next trains at Union Square for the N line"
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.
Where's My Train? — MCP Server (NYC Subway)
NYC subway info for Claude and other AI assistants: train arrivals, delays, elevators, and stations, from MTA data feeds.
Data from MTA feeds, served from this project's own server. It may not be real time, and may be inaccurate or incomplete. Personal use only. Not affiliated with, endorsed, or licensed by the MTA. Provided “as is”.
Connect
No install, no API key. The server is hosted at:
https://whereismytrainmcp-production.up.railway.app/mcpClaude (web, desktop, mobile): add it as a custom connector with the URL above.
Claude Code:
claude mcp add --transport http where-is-my-train https://whereismytrainmcp-production.up.railway.app/mcpOther MCP clients: use the URL as a Streamable HTTP server.
Smithery: smithery.ai/servers/sasabasara/where_is_my_train_mcp
Related MCP server: NS Travel MCP Server
Ask it things like
"When's the next uptown 6 at Union Square?"
"Next Manhattan-bound L from Bedford?"
"Is the 2 train running OK right now?"
"Is the elevator working at 34th St?"
"Nearest accessible station to the Empire State Building?"
"Any weekend service changes on the L?"
If a name fits several stations ("23rd St"), it asks which one.
Tools
Tool | What it does |
| Predicted arrivals by station or stop ID, filtered by line and direction |
| Is service disrupted right now — by line, area, or system-wide |
| Official MTA alerts, current or upcoming |
| Quick snapshot: trains running and top alerts |
| Stations near a location, with lines and accessibility |
| Station search by name |
| Every line reachable at a station |
| Current and upcoming outages, with MTA detours |
Data
Arrivals: MTA GTFS-realtime feeds (protobuf), cached for 30 seconds, so predictions may lag the MTA.
confirmed: truemeans the MTA has assigned a train to the trip. If a feed fails, predictions up to five minutes old may be returned withstaleFeedsand a warning. Older feeds are rejected; canceled trips and skipped stops are excluded.Alerts: MTA service alerts, with the MTA's own type and severity. Cached for 30 seconds.
Elevators: MTA elevator and escalator outage feeds, cached for 30 seconds. Equipment counts describe installed equipment, not a guarantee of an accessible route.
Stations: MTA static GTFS plus the MTA Subway Stations list for complexes, directions, and accessibility.
Run locally
Requires Node.js 22+.
git clone https://github.com/sasabasara/where_is_my_train_mcp.git
cd where_is_my_train_mcp
npm install
npm run build
npm start # http://localhost:3000/mcp
npm test # unit testsTests include local HTTP/MCP integration checks and require permission to listen on localhost.
For an optional read-only audit against MTA data and the hosted server, run node scripts/audit-live.mjs after building. It checks every station, compares arrivals with independently decoded feeds, and writes its results to .dev_docs/audit-results.json.
The hosted server uses in-memory MCP sessions and currently requires a single instance. Request logs omit GPS coordinates from nearest_station calls.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Get real-time NYC bus arrivals, live vehicle locations, and service alerts. Plan trips between any…
Real-time SF Muni departures, routes, alerts, vehicle positions, and schedules.
Real-time transit stops, routes, arrivals, vehicle positions, and schedules via OneBusAway APIs.
Real-time BART departures, trip planning, fares, stations, and advisories.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to interact with Washington DC Metro (WMATA) transit system through natural language queries. Provides real-time train arrivals, service alerts, station information, trip planning, and accessibility updates.896 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time Dutch Railways (NS) data for journey planning, live departures, disruptions, and station search.3-
- FlicenseNot gradedqualityDmaintenanceProvides transit concierge tools for Indian Railways, including live train status, platform numbers, delay alerts, food options, and cab services, with offline fallback support.-
- AlicenseNot gradedqualityBmaintenanceEnables real-time Chicago Transit Authority train and bus tracking, including arrivals, positions, and predictions for CTA 'L' trains and buses.30 npmMIT