World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
OJP 2.0 journey planning, SIRI-SX disruptions, occupancy, fares, train formation
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 11/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 23/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Swiss Transport MCP。按照 https://mcp.popnx.com/i/malkreide-swiss-transport-mcp.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Swiss Transport MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "swiss-transport": { "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Swiss Transport MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
SettingsDeveloperEdit Config
{
"mcpServers": {
"swiss-transport": {
"command": "uvx",
"args": [
"swiss-transport-mcp"
]
}
}
}用 Swiss Transport MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Swiss Transport MCP,或回答中出现 Swiss Transport MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Swiss Transport MCP
Swiss Transport MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Swiss Transport MCP 的应用
B · 其他 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Swiss Transport MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Swiss Transport MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcp应能看到 Swiss Transport MCP 在列表中并显示已连接
用 Swiss Transport MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Swiss Transport MCP,或回答中出现 Swiss Transport MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Swiss Transport MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "swiss-transport": { "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Swiss Transport MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
用 Swiss Transport MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Swiss Transport MCP,或回答中出现 Swiss Transport MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Swiss Transport MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "swiss-transport": { "type": "stdio", "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Swiss Transport MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
用 Swiss Transport MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Swiss Transport MCP,或回答中出现 Swiss Transport MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"swiss-transport": {
"command": "uvx",
"args": [
"swiss-transport-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"swiss-transport": {
"command": "uvx",
"args": [
"swiss-transport-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"swiss-transport": {
"type": "stdio",
"command": "uvx",
"args": [
"swiss-transport-mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
注册名称已通过 GitHub 账户 malkreide 验证,该账户拥有此仓库
代码最后更新于19天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 swiss-transport-mcp@0.5.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/malkreide-swiss-transport-mcp)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于19天前,最新版本(0.5.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| 本项 Swiss Transport MCP | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 否 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| 许可证 | MIT | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide/swiss-public-data-mcp)
MCP server connecting AI models to the Swiss public transport system – journey planning, real-time departures, disruptions, occupancy, ticket prices, train formations and open data from opentransportdata.swiss.
swiss-transport-mcp gives AI assistants like Claude a complete Swiss travel information system – not just timetables, but also real-time disruption alerts, occupancy forecasts, ticket prices, and a full train formation view. All accessible through a single, standardised MCP interface.
The various APIs at opentransportdata.swiss speak different protocols – OJP 2.0 (XML/SOAP), SIRI-SX (XML), REST/JSON. This server translates everything into clean JSON for the AI model, acting as a multilingual protocol interpreter.
Anchor demo query: *"Plan a school trip for 25 students from Zurich to the Technorama in Winterthur – check for disruptions and find the best departure."* → More use cases by audience →
# Clone the repository
git clone https://github.com/malkreide/swiss-transport-mcp.git cd swiss-transport-mcp
pip install -e .
Or with uvx (no permanent installation):
uvx swiss-transport-mcp
# Set the minimum required key (OJP core tools)
export TRANSPORT_API_KEY=your_key_here
swiss-transport-mcp
Try it immediately in Claude Desktop:
*"What are the next departures from Zurich Stadelhofen?"*
*"How do I get from Wädenswil to Bern by train?"*
| Variable | API | Required |
|---|---|---|
TRANSPORT_API_KEY | Unified key for OJP + CKAN | ✅ (or individual keys) |
TRANSPORT_OJP_API_KEY | OJP 2.0 Journey Planner | Optional (override) |
TRANSPORT_CKAN_API_KEY | CKAN data catalogue | Optional (separate subscription) |
SIRI_SX_API_KEY | Disruption alerts (SIRI-SX) | Optional |
OCCUPANCY_API_KEY | Occupancy forecast | Optional |
FORMATION_API_KEY | Train formation | Optional |
OJP_FARE_API_KEY | Ticket prices (OJP Fare) | Optional |
APIs without a key are silently disabled – the server starts fine with just the 6 core tools.
Operational / security variables:
| Variable | Effect | Default |
|---|---|---|
MCP_ENV / ENV | Process environment. Must be dev/development/local/test to allow disabling TLS verification. | _(unset → production)_ |
TRANSPORT_SSL_VERIFY | Set to false to disable TLS certificate verification. Honoured only when `MCP_ENV` marks a dev environment – otherwise the request is ignored and verification stays on. | true |
TRANSPORT_CKAN_URL | Override the CKAN base URL. Must stay on the egress allow-list (*.opentransportdata.swiss); off-site overrides are refused. | https://api.opentransportdata.swiss/ckan-api |
MCP_CORS_ORIGINS | Comma-separated list of browser origins allowed to call the HTTP transport. Use * to allow any origin (not recommended). The Mcp-Session-Id header is exposed to these origins. | https://claude.ai |
LOG_FORMAT | json for structured logs (RFC 5424 severity); anything else for human-readable text. Always written to stderr. | text |
OTEL_TRACES_ENABLED | 1 to enable OpenTelemetry tracing (requires the otel extra: pip install 'swiss-transport-mcp[otel]'). No-op otherwise. | _(off)_ |
MCP_STATELESS | 1 to run the Streamable HTTP transport statelessly — no server-side session state, so instances need no sticky load balancing. Recommended for horizontal scale-out. | _(off → stateful)_ |
MCP_ALLOWED_HOSTS | Comma-separated list of the names this server is reachable under, port included where it matters (e.g. fahrplan.example.ch:8080). Requests arriving under any other Host are rejected with 421; loopback stays allowed so container health checks keep working. Unset on a non-loopback bind, the check is off and a warning is logged. | _(unset → off)_ |
🔒 Egress allow-list: all outbound requests are restricted to
https://onopentransportdata.swisshosts. Any other host is refused before a request is sent (SSRF / egress hardening).
Minimal (core tools only):
{
"mcpServers": { "swiss-transport": { "command": "swiss-transport-mcp", "env": { "TRANSPORT_API_KEY": "your_key_here" } } } }
Full (all 11 tools):
{
"mcpServers": { "swiss-transport": { "command": "swiss-transport-mcp", "env": { "TRANSPORT_API_KEY": "your_ojp_key_here", "SIRI_SX_API_KEY": "your_siri_key_here", "OCCUPANCY_API_KEY": "your_occupancy_key_here", "FORMATION_API_KEY": "your_formation_key_here", "OJP_FARE_API_KEY": "your_fare_key_here" } } } }
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonFor use via claude.ai in the browser (e.g. on managed workstations without local software). The cloud transport is Streamable HTTP (MCP_TRANSPORT=streamable-http, endpoint /mcp). SSE (/sse) is still supported but deprecated.
MCP_TRANSPORT | Use | Endpoint |
|---|---|---|
stdio (default) | Local Claude Desktop subprocess | – |
streamable-http (or http) | Cloud / container (recommended) | /mcp |
sse | Legacy browser transport (deprecated) | /sse |
Docker (recommended):
# Build + run with explicit resource limits (see docker-compose.yml)
TRANSPORT_API_KEY=xxx docker compose up --build
The image is a multi-stage build running as a non-root user; docker-compose.yml adds read_only, no-new-privileges and memory/CPU/PID limits.
Render.com:
MCP_TRANSPORT=streamable-http and `MCP_HOST=0.0.0.0`https://your-app.onrender.com/mcp💡 *"stdio for the developer laptop, Streamable HTTP for the cloud."*
Scaling horizontally: run with MCP_STATELESS=1. In stateless mode the server keeps no per-session state, so any instance can serve any request and a plain round-robin load balancer suffices — no sticky sessions / `Mcp-Session-Id` affinity required. If you need stateful streaming instead, route by Mcp-Session-Id at the edge LB (e.g. HAProxy stick-tables) so each session stays pinned to one instance.
⚠️ Binding: In a network transport the server binds to
127.0.0.1by
default so a locally started server is not exposed to your whole network
(e.g. public Wi-Fi). Set
MCP_HOST=0.0.0.0only in a container/cloud
environment where binding to all interfaces is intended (the Docker image
does this for you).
| Tool | Description | Data Source |
|---|---|---|
transport_search_stop | Search stops/stations by name | OJP 2.0 |
transport_nearby_stops | Find nearby stops by coordinates | OJP 2.0 |
transport_departures | Real-time departure board with delays & platforms | OJP 2.0 |
transport_trip_plan | Plan journey A → B with transfers, duration, mode | OJP 2.0 |
transport_search_datasets | Search open data catalogue (~90 datasets) | CKAN¹ |
transport_get_dataset | Get full details of a specific dataset | CKAN¹ |
¹ *CKAN tools require a separate subscription in the API Manager.*
| Tool | Description | Data Source |
|---|---|---|
get_transport_disruptions | 🚨 Live disruptions, cancellations, line closures | SIRI-SX |
get_train_occupancy | 📊 Occupancy forecast for specific trains | Occupancy JSON |
get_ticket_price | 💰 Ticket prices for connections | OJP Fare |
get_train_composition | 🚃 Train formation, classes, accessibility | Formation REST |
check_transport_api_status | 🔍 Health check for all configured APIs | All |
| Query | Tool |
|---|---|
| *"Next trains from Zurich Stadelhofen?"* | transport_departures |
| *"Plan a trip for 25 students from Zurich to Winterthur Technorama"* | transport_trip_plan |
| *"Any disruptions between Zurich and Bern?"* | get_transport_disruptions |
| *"How full is IC 1009 today?"* | get_train_occupancy |
| *"What does a ticket from Wädenswil to Bern cost?"* | get_ticket_price |
| *"Does IC 708 have a dining car?"* | get_train_composition |
| *"Which stops are near Langstrasse 100?"* | transport_nearby_stops |
┌─────────────────┐ ┌───────────────────────────┐ ┌──────────────────────────┐
│ Claude / AI │────▶│ Swiss Transport MCP │────▶│ opentransportdata.swiss │ │ (MCP Host) │◀────│ (MCP Server) │◀────│ │ └─────────────────┘ │ │ │ OJP 2.0 (XML/SOAP) │ │ 11 Tools · 2 Resources │ │ SIRI-SX (XML) │ │ Stdio | SSE │ │ CKAN (REST/JSON) │ │ │ │ Occupancy(REST/JSON) │ │ Core: │ │ Formation(REST/JSON) │ │ api_client + ojp_client │ │ OJP Fare (XML/SOAP) │ │ Extensions: │ └──────────────────────────┘ │ siri_sx, occupancy, │ │ ojp_fare, formation │ └───────────────────────────┘
| Component | Metaphor | Function |
|---|---|---|
| RateLimiter | Bouncer | Limits API calls per time window |
| SimpleCache | Whiteboard | Caches responses for repeated queries |
| APIClient | Switchboard | Handles auth, redirects, error