Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Swiss Transport MCP

by malkreideversion 0.5.0i★ 7iRuns on your computerRepository ↗
Registry nameio.github.malkreide/swiss-transport-mcp

How to install

What it does

OJP 2.0 journey planning, SIRI-SX disruptions, occupancy, fares, train formation

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity11/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score23/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Swiss Transport MCP. Follow https://mcp.popnx.com/i/malkreide-swiss-transport-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Transport MCP for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-transport": { "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Transport MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "swiss-transport": {
          "command": "uvx",
          "args": [
            "swiss-transport-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Swiss Transport MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Swiss Transport MCP or shows a Swiss Transport MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Swiss Transport MCP yet

Swiss Transport MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Swiss Transport MCP

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Transport MCP for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Transport MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcp
  4. Type /mcp in Claude Code

    You should see Swiss Transport MCP listed as connected

  5. Try it

    Use Swiss Transport MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Swiss Transport MCP or shows a Swiss Transport MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Transport MCP for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-transport": { "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Transport MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Swiss Transport MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Swiss Transport MCP or shows a Swiss Transport MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Transport MCP for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "swiss-transport": { "type": "stdio", "command": "uvx", "args": [ "swiss-transport-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Transport MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Swiss Transport MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Swiss Transport MCP or shows a Swiss Transport MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Swiss Transport MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user swiss-transport -- uvx swiss-transport-mcp

Claude 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"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
29/wk
Connection
Runs on your computer
Latest versioni
0.5.0
Categoryi
Other
Published to registryi
Sep 26, 2026
Code last changedi
Nov 1, 2026
Maker
malkreide
Packages
pypi: swiss-transport-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account malkreide, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 19 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for swiss-transport-mcp@0.5.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/malkreide-swiss-transport-mcp.svg)](https://mcp.popnx.com/en/servers/malkreide-swiss-transport-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 95% of the other 20815 servers in this category
  • Published to the registry more recently than 45% of the other 20815 servers in this category
  • Basic checks equal to or better than 99% of the other 20815 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Swiss Transport MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 19 days ago, and the latest version (0.5.0) reached the registry 2 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 4 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 31 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
Swiss Transport MCP
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/41/44/4
LicenseMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide/swiss-public-data-mcp)

🚆 swiss-transport-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.

🇩🇪 Deutsche Version

Demo

Overview

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 →


Features

  • 🗺️ Journey planning (A → B with transfers, duration, transport mode) via OJP 2.0
  • 🕐 Real-time departures with delays and platform information
  • 🔍 Stop search by name or coordinates
  • 🚨 Live disruption alerts (cancellations, closures) via SIRI-SX
  • 📊 Occupancy forecasts for trains (SBB, BLS, Thurbo, SOB)
  • 💰 Ticket prices including class selection
  • 🚃 Train formation – coaches, classes, amenities, accessibility
  • 📦 Open data catalogue – ~90 transport datasets via CKAN
  • 🔑 Graceful degradation – server starts with core tools even without optional API keys
  • ☁️ Dual transport – stdio for Claude Desktop, Streamable HTTP/SSE for cloud deployment

Prerequisites


Installation

# Clone the repository

git clone https://github.com/malkreide/swiss-transport-mcp.git cd swiss-transport-mcp

Install

pip install -e .

Or with uvx (no permanent installation):

uvx swiss-transport-mcp

Quickstart

# Set the minimum required key (OJP core tools)

export TRANSPORT_API_KEY=your_key_here

Start the server (stdio mode for Claude Desktop)

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?"*


Configuration

Environment Variables
VariableAPIRequired
TRANSPORT_API_KEYUnified key for OJP + CKAN✅ (or individual keys)
TRANSPORT_OJP_API_KEYOJP 2.0 Journey PlannerOptional (override)
TRANSPORT_CKAN_API_KEYCKAN data catalogueOptional (separate subscription)
SIRI_SX_API_KEYDisruption alerts (SIRI-SX)Optional
OCCUPANCY_API_KEYOccupancy forecastOptional
FORMATION_API_KEYTrain formationOptional
OJP_FARE_API_KEYTicket prices (OJP Fare)Optional

APIs without a key are silently disabled – the server starts fine with just the 6 core tools.

Operational / security variables:

VariableEffectDefault
MCP_ENV / ENVProcess environment. Must be dev/development/local/test to allow disabling TLS verification._(unset → production)_
TRANSPORT_SSL_VERIFYSet 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_URLOverride 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_ORIGINSComma-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_FORMATjson for structured logs (RFC 5424 severity); anything else for human-readable text. Always written to stderr.text
OTEL_TRACES_ENABLED1 to enable OpenTelemetry tracing (requires the otel extra: pip install 'swiss-transport-mcp[otel]'). No-op otherwise._(off)_
MCP_STATELESS1 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_HOSTSComma-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:// on opentransportdata.swiss hosts. Any other host is refused before a request is sent (SSRF / egress hardening).

Claude Desktop Configuration

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:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Cloud Deployment (Streamable HTTP)

For 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_TRANSPORTUseEndpoint
stdio (default)Local Claude Desktop subprocess–
streamable-http (or http)Cloud / container (recommended)/mcp
sseLegacy browser transport (deprecated)/sse

Docker (recommended):

# Build + run with explicit resource limits (see docker-compose.yml)

TRANSPORT_API_KEY=xxx docker compose up --build

→ http://127.0.0.1:8000/mcp

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:

  1. Push/fork the repository to GitHub
  2. On render.com: New Web Service → connect GitHub repo (Docker runtime)
  3. Set env MCP_TRANSPORT=streamable-http and `MCP_HOST=0.0.0.0`
  4. In claude.ai under Settings → MCP Servers, add: 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.1 by

default so a locally started server is not exposed to your whole network

(e.g. public Wi-Fi). Set MCP_HOST=0.0.0.0 only in a container/cloud

environment where binding to all interfaces is intended (the Docker image

does this for you).


Available Tools

Core Tools (OJP 2.0 / CKAN)
ToolDescriptionData Source
transport_search_stopSearch stops/stations by nameOJP 2.0
transport_nearby_stopsFind nearby stops by coordinatesOJP 2.0
transport_departuresReal-time departure board with delays & platformsOJP 2.0
transport_trip_planPlan journey A → B with transfers, duration, modeOJP 2.0
transport_search_datasetsSearch open data catalogue (~90 datasets)CKAN¹
transport_get_datasetGet full details of a specific datasetCKAN¹

¹ *CKAN tools require a separate subscription in the API Manager.*

Extension Tools (optional API keys)
ToolDescriptionData Source
get_transport_disruptions🚨 Live disruptions, cancellations, line closuresSIRI-SX
get_train_occupancy📊 Occupancy forecast for specific trainsOccupancy JSON
get_ticket_price💰 Ticket prices for connectionsOJP Fare
get_train_composition🚃 Train formation, classes, accessibilityFormation REST
check_transport_api_status🔍 Health check for all configured APIsAll
Example Use Cases
QueryTool
*"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

Architecture

┌─────────────────┐     ┌───────────────────────────┐     ┌──────────────────────────┐

│ 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 │ └───────────────────────────┘

Infrastructure Components
ComponentMetaphorFunction
RateLimiterBouncerLimits API calls per time window
SimpleCacheWhiteboardCaches responses for repeated queries

| APIClient | Switchboard | Handles auth, redirects, error

Only the beginning is shown; read the rest in the repo