
Swiss Public Transport
io.github.tpjnorton由 GitHub 账号 tpjnorton 发布v0.1.10更新于 Oct 24, 2026
Swiss public transport — journey planning, live stationboards, delays, and SBB ticket links.
概览
本地 MCP 服务器,用于瑞士公共交通:规划行程、查看实时站台信息与延误,并获取 SBB 购票链接。
- 可以做什么
- 按名称或坐标解析车站、站点和兴趣点,名称有歧义时返回候选列表。规划从 A 到 B 的行程,支持途经点、交通类型筛选和按到达时间查询。读取任一站点的实时出发或到达信息。为规划好的行程生成 SBB.ch 购票链接,方便一键购票。
- 适用场景
- 适合让助手回答瑞士出行问题:两地之间的连接、下一班出发、实时延误,或提供购票链接。适合需要零配置、快速行程规划的场景,而非官方运营数据源。
- 运行要求
- 通过 stdio 在本地运行,用 uvx 从 PyPI 包启动,需要 Python/uv 运行环境。无需账号、API 密钥或环境变量;它查询免费的 transport.opendata.ch 服务,因此需要网络访问。仅支持桌面客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Swiss Public Transport,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
swiss-public-transport-mcp
MCP server for Swiss public transport — connections, stationboards, real-time delays, and direct booking links for SBB.
Wraps transport.opendata.ch — free, no API key, no signup. Covers the full Swiss network (SBB, Postauto, regional, trams, buses, ships, cableways).
Why this server
- Zero config. Install and go — no account, no token, no env vars.
- Booking links. Returns deep links into SBB.ch so the user can buy a ticket in one click.
- Disambiguation built in. Ambiguous station names return candidates instead of failing silently.
- Compact, model-friendly output. Formatted text designed for LLM context windows, not raw JSON dumps.
Tools
Install
No install needed — run directly with uvx:
Claude Desktop
Add to claude_desktop_config.json:
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Development
Related project
If you need official opentransportdata.swiss data — SIRI-SX disruption alerts, occupancy forecasts, OJP Fare ticket prices, train formation — see malkreide/swiss-transport-mcp. It exposes ~11 tools across the official OJP 2.0 / SIRI / CKAN APIs and requires a (free) API key from the opentransportdata.swiss API Manager.
The two servers cover overlapping but distinct use cases — you can install both side by side.
来源:README.md,提交 d356107
工具
0版本历史
1- v0.1.10最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分