Sbb MCP Server

SBB Open Data via OpenDataSoft

Remote serverstreamable-httpPython

What is the Sbb MCP Server?

SBB Open Data via OpenDataSoft

The short version

🇨🇭 Part of the Swiss Public Data MCP Portfolio

The SBB Open Data portal speaks the OpenDataSoft REST API (v2.1). This server translates it into clean Markdown and JSON for the AI model, and adds MCP structuredContent alongside the human-readable text so programmatic clients can consume the underlying records without re-parsing. The server is model-agnostic and works with any MCP-compatible client.

  • 📊 Passenger frequency – boardings/alightings by station and year (daily averages)
  • 🚨 Live rail disruptions – traffic messages, updated every 5 minutes
  • 🏗️ Infrastructure projects – station and line construction
  • 🏢 Real-estate projects – SBB property development (daily updates)
  • 🚆 Trains per segment – train counts per route (SBB, BLS, SOB …)
  • 🛤️ Platform data – length, type, area, step-free access

What it needs from you

  • Python 3.11+ - No API key — all data comes from the public data.sbb.ch portal Install uv (recommended): ---

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
sbb_get_passenger_frequencyBoardings/alightings by station and year (daily avg.)
sbb_get_rail_disruptionsLive rail traffic messages
sbb_get_infrastructure_construction_projectsInfrastructure construction (stations, lines)
sbb_get_real_estate_projectsSBB real estate development projects
sbb_get_trains_per_segmentTrain counts per route segment (SBB, BLS, SOB …)
sbb_get_platform_dataPlatform data (length, type, area)
sbb_get_rolling_stockRolling stock (capacity, year built)
sbb_compare_stationsCompare up to 10 stations (multi-dataset)
sbb_search_stationsSearch stops (Swiss DiDok register, all CH)
sbb_list_datasetsList all ~89 SBB open datasets

How to install the Sbb MCP Server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.11+ - No API key — all data comes from the public data.sbb.ch portal Install uv (recommended): ---
VariableDescriptionRequired
MCP_HOSTEndpoint or connection string the server talks to.Optional
MCP_ALLOWED_HOSTSEndpoint or connection string the server talks to.Optional
MCP_ALLOWED_ORIGINSConfiguration value read at startup.Optional

Example prompts to try

  • “Use Sbb to sbb get passenger frequency.”
  • “Use Sbb to sbb get rail disruptions.”
  • “Use Sbb to sbb get infrastructure construction projects.”

Frequently asked questions

SBB Open Data via OpenDataSoft Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.