# Where's my train? MTA Guide

Where's my train? MTA Guide is a Claude Code MCP server for tracking the New York City subway through MTA feeds, with train arrival predictions, line alerts, and station elevator statuses.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 3733 installs · ★ 7 repo stars
- Author: sasabasara
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sasabasara/where_is_my_train_mcp
- Updated: 2026-10-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/wheres-my-train-mta-guide

## What it does

This server connects coding assistants to MTA GTFS-realtime endpoints. It supplies eight tools, including `next_trains` for arrival timing, `subway_alerts` for line advisories, `nearest_station` for coordinate lookups, and `elevator_and_escalator_status` for accessibility checks. When station names are ambiguous, the tool requests clarification.

Feeds stay cached for 30 seconds. If an MTA feed drops offline, the system will serve fallback data up to five minutes old with a `staleFeeds` alert, rejecting anything older. This caching means timing predictions can slightly lag live platform displays.

Connecting via the hosted endpoint needs no registration or API keys. If you decide to host the server locally, you will need Node.js 22 or higher.

## Requirements
- Remote server: `https://where_is_my_train_mcp--sasabasara.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http where-is-my-train-mcp https://where_is_my_train_mcp--sasabasara.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add wheres-my-train-mta-guide --url https://where_is_my_train_mcp--sasabasara.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "wheres-my-train-mta-guide": {
            "url": "https://where_is_my_train_mcp--sasabasara.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "wheres-my-train-mta-guide": {
            "type": "http",
            "url": "https://where_is_my_train_mcp--sasabasara.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http wheres-my-train-mta-guide https://where_is_my_train_mcp--sasabasara.run.tools
```

## When to use it
- look up upcoming subway arrival times by station and line
- check operational status of station elevators and escalators
- locate nearby accessible subway stops using coordinates
- monitor active transit disruptions across the NYC transit network

## Example prompts
- When is the next uptown 6 train arriving at Union Square?
- Check if the elevator is currently working at 34th St.
- Are there any active delays or service disruptions on the L train?

## Similar
- [onebusaway-mcp-server](https://affpapa.org/en/nevibecode/mcp/onebusaway-mcp-server.md) — MCP server · 1254 installs
- [SubwayInfo NYC](https://affpapa.org/en/nevibecode/mcp/subwayinfo-nyc.md) — MCP server · 16873 installs
- [Transit MCP](https://affpapa.org/en/nevibecode/mcp/transit-mcp.md) — MCP server · ★ 5 repo stars
- [Malaysia Open Data MCP Server](https://affpapa.org/en/nevibecode/mcp/malaysia-open-data-mcp-server.md) — MCP server · 5119 installs
- [Malaysia Transit MCP](https://affpapa.org/en/nevibecode/mcp/malaysia-transit-mcp.md) — MCP server · 7889 installs
- [lad-lviv-ua](https://affpapa.org/en/nevibecode/mcp/lad-lviv-ua.md) — MCP server · 9780 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
