
SF Muni Real-Time Transit
io.github.srivastsh由 GitHub 帳號 srivastsh 發布v1.0.0更新於 Nov 2, 2026
Real-time SF Muni departures, routes, alerts, vehicle positions, and schedules.
概覽
託管式 MCP 端點,提供舊金山 Muni 即時公車資料:發車、路線、站點、服務提醒、車輛位置與時刻表。
- 可以做什麼
- 列出 511 交通營運業者與所有 Muni 路線
- 查詢站點即時發車資訊,以及含站點的路線詳情
- 查看目前服務提醒
- 讀取即時車輛 GPS 位置
- 查詢某條路線的時刻表
- 適用情境
- 當助理需要回答舊金山 Muni 相關問題時可使用:某站下一班車何時發車、哪些路線經過某站、目前有哪些營運中斷,或車輛當下的位置。
- 執行需求
- 遠端 MCP 端點,無需安裝或部署。需要免費的 511.org API 金鑰,透過 x-api-key-511 標頭傳送。僅支援 stdio 的用戶端需搭配 mcp-remote 之類的橋接工具。需要能連線至該託管端點與 511 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SF Muni Real-Time Transit,將其新增到工作區。
- 連接 x-api-key-511 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.srivastsh%2Fmuni-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"sf-muni-real-time-transit": {
"type": "http",
"url": "https://muni-mcp.srivastsh.workers.dev/mcp",
"headers": {
"x-api-key-511": "<YOUR_API_KEY>"
}
}
}
}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 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
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:
Available Tools
BART (5 tools)
Muni (7 tools)
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
The public BART demo key (MW9S-E7SL-26DU-VV8V) is baked into wrangler.toml. No secrets needed.
Muni Worker
Optionally set a fallback 511 key (used when no header key is provided):
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)
來源:README.md,提交 36607e9
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分