# Swiss public transport

> Swiss public transport is a free MCP server for maps and travel. Swiss stations, connections and live departures from the Transport API. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://transport.opendata.ch/docs.html
- **Repository:** https://gitlab.com/opendata.ch/transport
- **MCP Registry name:** ch.opendata/transport
- **Categories:** [maps and travel](https://ai-powered.com/categories/maps-and-travel), [transit data](https://ai-powered.com/categories/transit-data)
- **Listing updated:** 2026-11-22

## About

This server wraps the open Transport API for Swiss public transport. An assistant can find stops by name or coordinates, plan journeys between two places and read the departure board of a station, including real-time delays.

Connections can be filtered by date, time, via stops and transport type such as train, tram, bus, ship or cableway, and can include shared bikes, scooters and cars for the first and last leg. Fare lookups price a returned connection for one adult, full or with a half-fare card, in both classes.

The underlying service is shared by many applications, so it asks callers to cache results: timetables change twice a week and real-time data every 30 seconds.

## Features

- **Location search:** Find stations, addresses and points of interest by name or coordinate.
- **Connection planning:** Get the next connections between two places, with optional via stops, date, time and transport type.
- **Station boards:** List upcoming departures from any station, with an option to include cancelled journeys.
- **Real-time delays:** Journey results carry prognosis data for delays and platform changes.
- **Fare lookup:** Price a connection for one adult, full fare or half-fare card, first and second class.
- **Shared mobility:** Let shared bikes, scooters and cars replace the walk to the first or last stop.

## Good for

- Ask when the next train from Lausanne to Geneva leaves
- Show the departure board at a local bus station
- Plan a trip that uses only trams and buses
- Estimate the ticket price of a planned journey

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http transport https://transport.opendata.ch/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "transport": {
      "type": "http",
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://transport.opendata.ch/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "transport": {
      "type": "http",
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://transport.opendata.ch/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add transport --url https://transport.opendata.ch/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.transport]
url = "https://transport.opendata.ch/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "transport": {
      "httpUrl": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http transport https://transport.opendata.ch/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "transport": {
      "serverUrl": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "transport": {
      "type": "streamableHttp",
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "transport": {
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://transport.opendata.ch/mcp
```

Enter a Name (for example "Swiss public transport"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "transport": {
      "type": "http",
      "url": "https://transport.opendata.ch/mcp"
    }
  }
}
```

## Tools

The server marks all 4 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `find_stations` (says read-only): Find stations and stops by name. Returns their exact names and ids, best match first.
- `stations_nearby` (says read-only): The stops closest to a point, with their distance in metres.
- `connections` (says read-only): Public transport connections from A to B: times, platforms, delays, changes, lines.
- `departures` (says read-only): The departure (or arrival) board of a station, with platforms, delays and cancellations.

## FAQ

### What does Swiss public transport cover?

Stations, connections and departures of Swiss public transport, with real-time delays.

### Are there rate limits?

There is no fixed limit per client, but applications that repeat the same query every few seconds are throttled, so results should be cached.

### How often does the data change?

The timetable changes twice a week and real-time data every 30 seconds.

### Can Swiss public transport show prices?

Yes, a fare lookup gives the point-to-point ticket price for one adult, full and half-fare, in both classes.

### How do I add Swiss public transport to Claude Code?

Run this command in your terminal: claude mcp add --transport http transport https://transport.opendata.ch/mcp

### What are the best alternatives to Swiss public transport?

The closest alternatives to Swiss public transport are Faceabot Transit Switzerland (SBB/CFF), Spick Me — Swiss public transport, Sbb Opendata MCP, MobilityMCP and NSW Transport.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Faceabot Transit Switzerland (SBB/CFF)](https://ai-powered.com/mcp/faceabot-transit-switzerland-sbb-cff): Faceabot Transit Switzerland (SBB/CFF) is a free MCP server for maps and travel.
- [Spick Me — Swiss public transport](https://ai-powered.com/mcp/spick-me-swiss-public-transport): Spick Me — Swiss public transport is a free MCP server for maps and travel.
- [Sbb Opendata MCP](https://ai-powered.com/mcp/sbb-opendata-mcp): Sbb Opendata MCP is an open-source MCP server for transit data.
- [MobilityMCP](https://ai-powered.com/mcp/mobilitymcp): MobilityMCP is an MCP server for maps and travel.
- [NSW Transport](https://ai-powered.com/mcp/nsw-transport): NSW Transport is an open-source MCP server for maps and travel.
- [Swiss Weather](https://ai-powered.com/mcp/swiss-weather): Swiss Weather is a free MCP server for maps and travel.
- [Switzerland MCP 🇨🇭](https://ai-powered.com/mcp/switzerland-mcp): Switzerland MCP 🇨🇭 is an open-source MCP server for maps and travel.
- [Live Times Transit](https://ai-powered.com/mcp/live-times-transit): Live Times Transit is a free MCP server for maps and travel.

---
Source: https://ai-powered.com/mcp/swiss-public-transport-2
