Skip to content
MCP server

Sbb Opendata MCP

MCP server giving AI assistants read access to SBB open data on passengers, disruptions

Runs locally

Sbb Opendata MCP is an open-source MCP server for transit data. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.4.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add sbb-opendata-mcp -- uvx sbb-opendata-mcp

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "sbb-opendata-mcp": {
      "command": "uvx",
      "args": [
        "sbb-opendata-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "sbb-opendata-mcp": {
      "command": "uvx",
      "args": [
        "sbb-opendata-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sbb-opendata-mcp": {
      "command": "uvx",
      "args": [
        "sbb-opendata-mcp"
      ]
    }
  }
}

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "sbb-opendata-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sbb-opendata-mcp"
      ]
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add sbb-opendata-mcp -- uvx sbb-opendata-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.sbb-opendata-mcp]
command = "uvx"
args = ["sbb-opendata-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "sbb-opendata-mcp": {
      "command": "uvx",
      "args": [
        "sbb-opendata-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user sbb-opendata-mcp uvx -- sbb-opendata-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "sbb-opendata-mcp": {
          "command": "uvx",
          "args": [
            "sbb-opendata-mcp"
          ]
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Sbb Opendata MCP

The README says this server lets AI assistants such as Claude query public Swiss Federal Railways datasets published on data.sbb.ch, covering passenger frequency, live rail disruptions, construction and real-estate projects, train counts per segment, platform details, rolling stock and stop lookup. Requests go to the OpenDataSoft REST API, and results come back as Markdown or JSON, with MCP structured content included for programmatic clients.

No API key is needed, and every tool performs read-only GET requests. The server runs over stdio for desktop clients and offers a Streamable HTTP transport for remote deployment, with Docker files and configurable host and origin allow-lists in the repository.

It suits people who want to ask questions about Swiss rail data in natural language, such as station usage or current disruptions, and get answers grounded in the published figures. The project is a community effort and is not affiliated with SBB, and availability depends on the upstream portal.

Tools this server provides (9)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 8 of 9 tools read data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

sbb_get_passenger_frequencyName suggests: reads
Boardings and alightings by station and year (daily average).
sbb_get_rail_disruptionsName suggests: reads
Live rail traffic messages.
sbb_get_real_estate_projectsName suggests: reads
SBB real estate development projects.
sbb_get_trains_per_segmentName suggests: reads
Train counts per route segment.
sbb_get_platform_dataName suggests: reads
Platform length, type and area.
sbb_get_rolling_stockName suggests: reads
Rolling stock capacity and year built.
sbb_compare_stations
Compare up to 10 stations across datasets.
sbb_search_stationsName suggests: reads
Search stops in the Swiss DiDok register.
sbb_list_datasetsName suggests: reads
List all SBB open datasets.

What it does

Passenger frequency data
Returns boardings and alightings by station and year as daily averages.
Live rail disruptions
Lists current Swiss rail traffic messages, refreshed roughly every five minutes.
Station and platform lookup
Searches the Swiss DiDok stop register and reports platform length, type and step-free access.
Station comparison
Compares up to ten stations across several SBB datasets in one query.
Dual transport support
Runs over stdio for desktop clients or Streamable HTTP for cloud deployment.
No API key required
All underlying data is public, so setup needs no credentials.

Good for

  • Asking an AI assistant how many people board at a given Swiss station each day
  • Checking current rail disruptions across the Swiss network
  • Comparing passenger volumes and platform capacity between major stations
  • Finding which SBB real-estate or infrastructure projects are under way
  • Looking up train counts on a specific route segment

Pricing

Open source

Free and MIT licensed; the underlying SBB data has its own licence terms.

Sbb Opendata MCP FAQ

Does Sbb Opendata MCP require an API key?

No. The README says all data comes from the public data.sbb.ch portal and no API key is needed.

Which transports are supported?

Stdio for clients like Claude Desktop, and Streamable HTTP for remote or cloud deployment at the /mcp endpoint.

Are the tools read-only?

Yes. The README states that all tools perform read-only HTTP GET requests and write nothing upstream.

Is Sbb Opendata MCP affiliated with SBB?

No. The README describes it as a community project not affiliated with SBB.

Is Sbb Opendata MCP free?

Yes. Sbb Opendata MCP is open source, so you can use and self-host it for free.

How do I add Sbb Opendata MCP to Claude Code?

Run this command in your terminal: claude mcp add sbb-opendata-mcp -- uvx sbb-opendata-mcp

What are the best alternatives to Sbb Opendata MCP?

The closest alternatives to Sbb Opendata MCP are GoThere Japan Transit & Travel, RailCore Developers, Swiss public transport, Commlo commute network and Usafiri MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers