
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 分