Bay Area Transit MCP
MCP-Server für den Nahverkehr der Bay Area
Zwei Cloudflare Workers bieten MCP-Zugriff (Model Context Protocol) auf Echtzeit-Nahverkehrsdaten von BART und SF Muni. Funktioniert mit Claude, ChatGPT, Poke, Cursor und jedem MCP-kompatiblen Client.
Du musst nichts bereitstellen. Verbinde deinen MCP-Client einfach mit den unten aufgeführten gehosteten Endpunkten.
Live-Endpunkte
BART:
https://bart-mcp.srivastsh.workers.dev/mcp— keine Authentifizierung, einfach verbindenMuni:
https://muni-mcp.srivastsh.workers.dev/mcp— gib deinen kostenlosen 511.org-API-Schlüssel über den Headerx-api-key-511an
Beide laufen im kostenlosen Tarif von Cloudflare Workers (100k Anfragen/Tag). Da der Muni-Server BYOK-Authentifizierung verwendet, ist das 511-Ratenlimit jedes Nutzers auf seinen eigenen Schlüssel beschränkt.
Related MCP server: marta-mcp
Schnellstart
BART (keine Authentifizierung erforderlich)
Füge die URL einfach zu deinem MCP-Client hinzu. Es ist kein API-Schlüssel erforderlich.
Muni (BYOK)
Hol dir einen kostenlosen 511.org-API-Schlüssel unter https://511.org/open-data/token
Übergib ihn über den Header
x-api-key-511in deiner MCP-Konfiguration
Client-Konfiguration
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
Ein-Klick-Setup: BART-Rezept | Muni-Rezept
Oder füge es manuell als Remote-MCP-Server hinzu:
URL:
https://bart-mcp.srivastsh.workers.dev/mcpoderhttps://muni-mcp.srivastsh.workers.dev/mcpSetze bei Muni den benutzerdefinierten Header
x-api-key-511auf deinen 511-Schlüssel
Cursor / Windsurf / reine stdio-Clients
Verwende mcp-remote als Brücke:
{
"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"
]
}
}
}Verfügbare Tools
BART (5 Tools)
Tool | Beschreibung |
| Alle BART-Stationen mit Codes auflisten |
| Echtzeit-Abfahrten von einer Station |
| Eine Fahrt zwischen zwei Stationen planen |
| Aktuelle Betriebshinweise |
| Tarifabfrage zwischen zwei Stationen |
Muni (7 Tools)
Tool | Beschreibung |
| Alle 511-Verkehrsbetriebe auflisten |
| Alle Muni-Linien auflisten |
| Echtzeit-Abfahrten von einer Haltestelle |
| Liniendetails mit Haltestellen |
| Aktuelle Betriebsmeldungen |
| Echtzeit-GPS-Positionen der Fahrzeuge |
| Fahrplan für eine Linie |
Eigene Instanz bereitstellen
Die meisten Nutzer müssen nichts bereitstellen — verwende einfach die oben gehosteten Endpunkte. Falls du aber eine eigene Instanz möchtest:
Voraussetzungen
Node.js 18+
Cloudflare-Konto (kostenloser Tarif funktioniert)
wranglerCLI:npm install -g wrangler
BART Worker
cd bart-mcp
npm install
wrangler login
wrangler deployDer öffentliche BART-Demo-Schlüssel (MW9S-E7SL-26DU-VV8V) ist fest in wrangler.toml eingebaut. Es sind keine Secrets erforderlich.
Muni Worker
cd muni-mcp
npm install
wrangler deployOptional kannst du einen Fallback-511-Schlüssel festlegen (wird verwendet, wenn kein Header-Schlüssel angegeben ist):
wrangler secret put API_511_KEYArchitektur
Runtime: Cloudflare Workers (V8-Isolate)
Transport:
WebStandardStreamableHTTPServerTransport(zustandslos, ein Server pro Anfrage)Auth: BYOK über Anfrage-Header, optionaler Fallback auf Umgebungsvariablen-Secrets
Validierung: Zod-Schemata für alle Tool-Eingaben
CORS: Für alle Ursprünge aktiviert
API-Quellen: api.bart.gov (BART), api.511.org (Muni/511)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that provides tools for querying live transit data (stops, departures, routes, vehicles, alerts) from any WP GTFS Pro site, enabling AI assistants to answer rider questions.14GPL 2.0
- AlicenseAqualityAmaintenanceMCP server for Atlanta MARTA real-time transit data, enabling queries about train arrivals and bus positions via natural language.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Swiss public transport data (stations, departures, connections) from the Transport Open Data API via natural language through an MCP gateway.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying global transit data including agencies, routes, stops, and departures through a GTFS aggregator.2MIT
Related MCP Connectors
Transitland MCP — global GTFS aggregator
MBTA MCP — Boston real-time transit via the MBTA v3 API (api-v3.mbta.com)
BART MCP — San Francisco Bay Area Rapid Transit real-time data (api.bart.gov)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/srivastsh/bay-area-transit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server