srivastsh avatar

BART Real-Time Transit

srivastsh/bay-area-transit-mcp

Wraps the BART public API into five clean tools: real-time departures by station, trip planning between stops, fare lookups, service advisories, and station listings. Runs on Cloudflare Workers with no authentication required, making it dead simple to wire up. Reach for this when you're building transit assistants, commute planners, or anything that needs Bay Area rapid transit data without managing API keys or deployment. The developer also published a companion Muni server using the 511.org API with bring-your-own-key auth. Both support streamable HTTP transport and work with Claude Desktop, Poke, Cursor, or any MCP client via the hosted endpoints.

tools
7
transport
HTTP
last updated
Mar 25, 2026

Install

From registry metadata
$ npx add-mcp https://bart-mcp.srivastsh.workers.dev/mcp --name bart-mcp

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http bart-mcp https://bart-mcp.srivastsh.workers.dev/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 7 tools

Verified live against the running server on Nov 6, 2026.

bart_stationsList all BART stations with abbreviation codes and locations. Use this to look up station codes needed by other tools.

List all BART stations with abbreviation codes and locations. Use this to look up station codes needed by other tools.

No parameters. Call it with no arguments.

bart_station_lookupSearch BART stations by name, city, address, or 4-letter station code.3 params

Search BART stations by name, city, address, or 4-letter station code.

Parameters* required
citystring
Optional city filter
limitinteger
Maximum matches to returndefault: 10
query*string
Station name, city, address fragment, or code, e.g. Embarcadero, Oakland, EMBR
bart_departuresGet real-time departures from a BART station. Args: - station: 4-letter abbreviation (e.g. EMBR, 24TH) - direction: Optional 'n' or 's'2 params

Get real-time departures from a BART station. Args: - station: 4-letter abbreviation (e.g. EMBR, 24TH) - direction: Optional 'n' or 's'

Parameters* required
directionstring
Direction filterone of n · s
station*string
Station code (e.g. EMBR, 24TH)
bart_tripPlan a trip between two BART stations. Returns schedule, fares, and transfer info.4 params

Plan a trip between two BART stations. Returns schedule, fares, and transfer info.

Parameters* required
datestring
Date MM/DD/YYYY
destination*string
Destination station code
origin*string
Origin station code
timestring
Departure time e.g. '5:30pm'
bart_advisoriesGet current BART service advisories, delays, and elevator/escalator status.

Get current BART service advisories, delays, and elevator/escalator status.

No parameters. Call it with no arguments.

bart_status_summarySummarize current BART service status from advisories and real-time alert data.

Summarize current BART service status from advisories and real-time alert data.

No parameters. Call it with no arguments.

bart_fareGet fare between two BART stations.2 params

Get fare between two BART stations.

Parameters* required
destination*string
Destination station code
origin*string
Origin station code

Sponsors

Readme

Bay Area Transit MCP Servers

Two Cloudflare Workers providing MCP (Model Context Protocol) access to BART and SF Muni real-time transit data. Works with Claude, ChatGPT, Poke, Cursor, and any MCP-compatible client.

You don't need to deploy anything. Just point your MCP client at the hosted endpoints below.

Live Endpoints

  • BART: https://bart-mcp.srivastsh.workers.dev/mcp — no auth, just connect
  • Muni: https://muni-mcp.srivastsh.workers.dev/mcp — pass your free 511.org API key via x-api-key-511 header

These run on Cloudflare Workers' free tier (100k requests/day). Since the Muni server uses BYOK auth, each user's 511 rate limit is isolated to their own key.

Quick Start

BART (no auth required)

Just add the URL to your MCP client. No API key needed.

Muni (BYOK)

  1. Get a free 511.org API key at https://511.org/open-data/token
  2. Pass it via the x-api-key-511 header in your MCP config

Client Configuration

Claude Desktop / Claude Code


View the full README on GitHub

Details

Repository
github.com/srivastsh/bay-area-transit-mcp
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026