Koskamo

Swiss Public Transport MCP

This MCP server provides AI assistants with tools to look up Swiss public transport stations, connections, and real-time departures. It exposes tools for finding stations by name or coordinates, retrieving connections between locations with platform and delay information, and checking station departure boards. The server reads from the official Swiss public transport API data, ensuring up-to-date timetable and real-time information without requiring user authentication.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Swiss Public Transport MCP logo, by opendata.chVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by opendata.ch
MCP endpoint (Streamable HTTP)
https://transport.opendata.ch/mcp
Vendor documentation

What its tools do

4 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

4 of 4 have a description · 4 of 4 declare behavior hints · 4 of 4 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to opendata.ch ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 2 of 2 checks passed in 30 days

What you can do with it

  • Find station IDs by name or nearby coordinates
  • Retrieve connections between two locations with delays
  • Check real-time departures for a specific station

Source and maintenance

Vendor evidenceRegistry 1.0.0
Maintenance checked

Protocol and capabilities

Server
transport.opendata.ch 2c28784a
MCP protocol negotiated in check
2025-11-25
Tools
4 advertised
Resources
0 advertised
Resource templates
0 advertised
Prompts
0 advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  },
  "prompts": {
    "listChanged": false
  },
  "resources": {
    "subscribe": false,
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Swiss public transport timetable with real-time delays, from the national timetable (opentransportdata.swiss), run by the association Opendata.ch. Times are Swiss local time (Europe/Zurich). Station names can be given as people say them ('Bern', 'Zürich HB', 'Lausanne, gare'); when a name is ambiguous, call find_stations first and use the exact name or id it returns. Addresses and places of interest work as start and destination of a connection too. Coverage is Switzerland (and border stations); for journeys abroad say that the data ends at the border. The timetable covers the days from a week ago to about three months ahead; nothing found for a date outside that range means no data, not no service.

Tools

4 advertised

find_stations — Find stations
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Find stations and stops by name. Returns their exact names and ids, best match first.

find_stations input schema
{
  "type": "object",
  "title": "find_stationsArguments",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "title": "Query",
      "description": "Name or part of a name, e.g. 'Bern' or 'Basel, Bank'."
    }
  }
}
find_stations annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
stations_nearby — Stops nearby
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

The stops closest to a point, with their distance in metres.

stations_nearby input schema
{
  "type": "object",
  "title": "stations_nearbyArguments",
  "required": [
    "latitude",
    "longitude"
  ],
  "properties": {
    "latitude": {
      "type": "number",
      "title": "Latitude",
      "description": "WGS84 latitude, e.g. 46.9488."
    },
    "longitude": {
      "type": "number",
      "title": "Longitude",
      "description": "WGS84 longitude, e.g. 7.4391."
    }
  }
}
stations_nearby annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
connections — Connections
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Public transport connections from A to B: times, platforms, delays, changes, lines.

connections input schema
{
  "type": "object",
  "title": "connectionsArguments",
  "required": [
    "origin",
    "destination"
  ],
  "properties": {
    "via": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ],
      "title": "Via",
      "default": null,
      "description": "Up to two stations the journey must pass."
    },
    "date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date",
      "default": null,
      "description": "YYYY-MM-DD; today if left out."
    },
    "time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Time",
      "default": null,
      "description": "hh:mm, Swiss local time; now if left out."
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 4,
      "maximum": 8,
      "minimum": 1,
      "description": "Number of connections."
    },
    "origin": {
      "type": "string",
      "title": "Origin",
      "description": "Start: station name or id, address or place."
    },
    "arrive_by": {
      "type": "boolean",
      "title": "Arrive By",
      "default": false,
      "description": "True if `time` is the latest arrival rather than departure."
    },
    "destination": {
      "type": "string",
      "title": "Destination",
      "description": "Destination, like origin."
    }
  }
}
connections annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
departures — Departures
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

The departure (or arrival) board of a station, with platforms, delays and cancellations.

departures input schema
{
  "type": "object",
  "title": "departuresArguments",
  "required": [
    "station"
  ],
  "properties": {
    "when": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "When",
      "default": null,
      "description": "'YYYY-MM-DD hh:mm', Swiss local time; now if left out."
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 10,
      "maximum": 40,
      "minimum": 1,
      "description": "Number of entries."
    },
    "station": {
      "type": "string",
      "title": "Station",
      "description": "Station name or id."
    },
    "arrivals": {
      "type": "boolean",
      "title": "Arrivals",
      "default": false,
      "description": "True for arrivals instead of departures."
    }
  }
}
departures annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

0 advertised

No prompt definitions available.

Resources

0 advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (17 of 17 checks answered)

  1. 2026-11-22: 1 of 1 checks answered
  2. 2026-11-23: 4 of 4 checks answered
  3. 2026-11-24: 4 of 4 checks answered
  4. 2026-11-25: 4 of 4 checks answered
  5. 2026-11-26: 4 of 4 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
2 of 2 (100%)
Average latency
1858 ms
95th percentile latency
2204 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2243 ms · 4 tool(s), 0 resource(s), 0 resource template(s), 0 prompt(s)
  • · probe · passed · 1472 ms · metadata changed · 4 tool(s), 0 resource(s), 0 resource template(s), 0 prompt(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http swiss-public-transport-mcp https://transport.opendata.ch/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add swiss-public-transport-mcp --url https://transport.opendata.ch/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable swiss-public-transport-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "swiss-public-transport-mcp": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "swiss-public-transport-mcp": {
      "type": "streamableHttp",
      "url": "https://transport.opendata.ch/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start swiss-public-transport-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "swiss-public-transport-mcp": {
      "type": "http",
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http swiss-public-transport-mcp https://transport.opendata.ch/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://transport.opendata.ch/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "swiss-public-transport-mcp": {
      "serverUrl": "https://transport.opendata.ch/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Swiss Public Transport MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Swiss Public Transport MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing