BART Real-Time Transit MCP Server
Real-time SF Muni departures, routes, alerts, vehicle positions, and schedules.
BART Real-Time Transit scores 28 (Limited), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 12 tools. Filed under Cloud. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
28 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
80/100 for listing completeness. Lost points: short README, 6 of 12 tools barely described, short summary.
How quality is graded
Where the 28 comes from
0 + 6 + 1 + 10 + 4 + 7 = 28. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "srivastsh-bay-area-transit-mcp": { "url": "https://muni-mcp.srivastsh.workers.dev/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools12Tool docs quality grade D
All capabilitiesbart_advisoriestoolCurrent service advisories
bart_departurestoolReal-time departures from a station
bart_faretoolFare lookup between two stations
bart_stationstoolList all BART stations with codes
bart_triptoolPlan a trip between two stations
muni_alertstoolCurrent service alerts
muni_departurestoolReal-time departures from a stop
muni_linetoolLine details with stops
muni_routestoolList all Muni routes
muni_scheduletoolTimetable for a line
muni_vehiclestoolReal-time vehicle GPS positions
List all 511 transit operators
About
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 viax-api-key-511header
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)
- Get a free 511.org API key at https://511.org/open-data/token
- Pass it via the
x-api-key-511header in your MCP config
Client Configuration
Claude Desktop / Claude Code
{
"mcpServers": {
"bart": {
"url": "https://bart-mcp.srivastsh.workers.dev/mcp"
},
"muni": {
"url": "https://muni-mcp.srivastsh.workers.dev/mcp",
"headers": {
"x-api-key-511": "YOUR_511_API_KEY"
}
}
}
}
Poke
One-click setup: BART recipe | Muni recipe
Or add manually as a remote MCP server:
- URL:
https://bart-mcp.srivastsh.workers.dev/mcporhttps://muni-mcp.srivastsh.workers.dev/mcp - For Muni, set custom header
x-api-key-511to your 511 key
Cursor / Windsurf / stdio-only Clients
Use mcp-remote as a bridge:
{
"mcpServers": {
"bart": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-remote", "https://bart-mcp.srivastsh.workers.dev/mcp"]
},
"muni": {
"command": "npx",
"args": [
"-y", "@anthropic-ai/mcp-remote",
"https://muni-mcp.srivastsh.workers.dev/mcp",
"--header", "x-api-key-511:YOUR_511_API_KEY"
]
}
}
}
Available Tools
BART (5 tools)
| Tool | Description |
|---|---|
bart_stations | List all BART stations with codes |
bart_departures | Real-time departures from a station |
bart_trip | Plan a trip between two stations |
bart_advisories | Current service advisories |
bart_fare | Fare lookup between two stations |
Muni (7 tools)
| Tool | Description |
|---|---|
transit_operators | List all 511 transit operators |
muni_routes | List all Muni routes |
muni_departures | Real-time departures from a stop |
muni_line | Line details with stops |
muni_alerts | Current service alerts |
muni_vehicles | Real-time vehicle GPS positions |
muni_schedule | Timetable for a line |
Deploy Your Own
Most users don't need to deploy — just use the hosted endpoints above. But if you want your own instance:
Prerequisites
- Node.js 18+
- Cloudflare account (free tier works)
wranglerCLI:npm install -g wrangler
BART Worker
cd bart-mcp
npm install
wrangler login
wrangler deploy
The public BART demo key (MW9S-E7SL-26DU-VV8V) is baked into wrangler.toml. No secrets needed.
Muni Worker
cd muni-mcp
npm install
wrangler deploy
Optionally set a fallback 511 key (used when no header key is provided):
wrangler secret put API_511_KEY
Architecture
- Runtime: Cloudflare Workers (V8 isolates)
- Transport:
WebStandardStreamableHTTPServerTransport(stateless, one server per request) - Auth: BYOK via request headers, optional env secret fallback
- Validation: Zod schemas for all tool inputs
- CORS: Enabled for all origins
- API Sources: api.bart.gov (BART), api.511.org (Muni/511)
Frequently asked questions
What is BART Real-Time Transit MCP Server?
Real-time SF Muni departures, routes, alerts, vehicle positions, and schedules.
How do I install BART Real-Time Transit MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. BART Real-Time Transit MCP Server connects to the remote endpoint https://muni-mcp.srivastsh.workers.dev/mcp, so there is nothing to install locally.
Is BART Real-Time Transit MCP Server free and open source?
Yes. BART Real-Time Transit MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does BART Real-Time Transit MCP Server support remote (HTTP) connections?
Yes. BART Real-Time Transit MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does BART Real-Time Transit MCP Server provide?
BART Real-Time Transit MCP Server provides 12 tools, including bart_advisories, bart_departures, bart_fare, and bart_stations. See the full tool list for descriptions and parameters.
How is BART Real-Time Transit MCP Server's trust score calculated?
BART Real-Time Transit MCP Server scores 28 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.