Transit MCP — Claude Code MCP server: what it does, how to install
A read-only MCP server providing transit schedules, vehicle tracking, and step-free trip planning for NYC, DC, and the SF Bay Area.
claude mcp add --transport http transit-mcp https://transitmcp.com/mcpWhat Transit MCP does
Transit MCP connects language models to public transit feeds across New York, Washington DC, and the San Francisco Bay Area. It exposes 18 tools, including plan_trip, get_departures, and get_service_status. The server retrieves data directly from MTA, WMATA, and 511 SF Bay feeds, covering subways, commuter rail, buses, and ferry networks.
The server runs via Streamable HTTP at https://transitmcp.com/mcp. No API keys are required. The routing engine resolves station name typos and complex multi-line hubs. It also supports accessible navigation with the step_free parameter, filtering out stations where elevators are currently out of service according to live agency reports.
Coverage is strictly limited to the three supported metropolitan regions.
What it helps with
- plan transit trips between stations or coordinates
- check upcoming train and bus departures in real time
- find accessible itineraries avoiding broken elevators
- track live train locations and service disruptions
Example prompts for the agent
- When is the next BART train from Powell St to SFO?
- Plan a step-free route from Times Square to Brooklyn.
- Are there any delays or track incidents on the DC Metrorail right now?
How to install Transit MCP
Platform CLI: remote server
claude mcp add --transport http transit-mcp https://transitmcp.com/mcpPlatform CLI: remote server
codex mcp add transit-mcp --url https://transitmcp.com/mcpConfig file
{
"mcpServers": {
"transit-mcp": {
"url": "https://transitmcp.com/mcp"
}
}
}Config file
{
"servers": {
"transit-mcp": {
"type": "http",
"url": "https://transitmcp.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http transit-mcp https://transitmcp.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Transit MCP
How to install Transit MCP in Claude Code?
Run claude mcp add --transport http transit-mcp https://transitmcp.com/mcp in your terminal. The tool connects immediately without extra configuration.
What does Transit MCP do?
It gives coding agents live transit routing, timetables, service alerts, and vehicle coordinates across New York, Washington DC, and the SF Bay Area.
Do I need an API key to use Transit MCP?
No user account or bearer token is required. Transit MCP operates as a public, read-only endpoint served over HTTP.