mcp-swiss

Ask about Switzerland.
Your assistant finds the data.

An MCP server that gives Claude, Copilot, Cursor and other assistants 95 tools for Swiss public data: timetables, weather forecasts, river levels, maps, companies, parliament, avalanches and more. No API keys, nothing to sign up for.

npx -y mcp-swiss

Version 0.11.0. 27 modules. MIT licensed.

Install

Pick your app. Every option runs the same server; nothing else to configure.

Download mcp-swiss.mcpb and open it. Claude Desktop installs it for you.

Or add this to claude_desktop_config.json (Settings, Developer, Edit Config) and restart Claude:

{
  "mcpServers": {
    "swiss": {
      "command": "npx",
      "args": ["-y", "mcp-swiss"]
    }
  }
}

The file lives in ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows and ~/.config/Claude/ on Linux.

How it works

Listing 95 tool schemas would cost about 11,900 tokens in every conversation. So by default the server lists five tools, about 1,200 tokens, and the assistant searches for the rest:

swiss_search_tools
Takes the task in plain words, typos included, and returns the best-matching tools with their parameters.
swiss_call_tool
Runs any tool by name after checking its arguments, and suggests the right name if one is mistyped.
swiss_list_modules
The whole catalogue, module by module.
get_connections, get_departures
The two most-used tools, ready without a search.

The server also tells the assistant, when it connects, which modules exist and to search before giving up. Every tool only reads public data, so apps can approve calls without asking you each time.

Options

Add to argsWhat you get
nothingSearch mode, as above. Recommended.
--modules transport,weatherOnly those modules, with their tools listed directly. --list-modules shows all 27.
--preset commuterA ready-made set: commuter (transport, weather, holidays), outdoor (weather, avalanche, hiking, earthquakes, dams, snow, pollen), business (companies, geodata, post, energy, statistics, snb, gwr), citizen (parliament, voting, holidays, news), minimal (transport).
--mode fullAll 95 tools listed directly. Fine in apps that already load tools on demand, such as Claude Code.
--pin get_weather,geocodeDifferent tools next to the search tools, or --pin none for only the three.

Tools

95 tools in 27 modules. Filter by name or topic, or open a module to see each tool's parameters.

transportSBB and public transport: stations, connections, departures, arrivals5 tools

search_stations

Search public transport stations/stops by name or coordinates

  • query: Station name
  • x: Latitude (WGS84)
  • y: Longitude (WGS84)
  • type: one of all, station, poi, address

get_connections

Train/bus connections between two locations

  • fromrequired: Station or address
  • torequired: Station or address
  • date: YYYY-MM-DD, default: today
  • time: HH:MM, default: now
  • limit: 1-16, default: 4
  • isArrivalTime: Treat time as arrival time

get_departures

Live departures from a station

  • stationrequired: Station name
  • limit: default: 10
  • datetime: YYYY-MM-DDTHH:MM, default: now

get_arrivals

Live arrivals at a station

  • stationrequired: Station name
  • limit: default: 10
  • datetime: YYYY-MM-DDTHH:MM, default: now

get_nearby_stations

Stations near coordinates

  • xrequired: Latitude (WGS84)
  • yrequired: Longitude (WGS84)
  • limit: Max results
  • distance: Max distance (m)
weatherMeteoSwiss weather forecast and current conditions, BAFU river and lake levels7 tools

get_weather

Current weather at a MeteoSwiss station. For past dates use get_weather_history

  • stationrequired: Station code, e.g. BER, ZUE, LUG, GVE, SMA

list_weather_stations

List MeteoSwiss weather station codes

  • No parameters

get_weather_history

Historical weather readings for a MeteoSwiss station. Only the last 32 days are available

  • stationrequired: Station code, e.g. BER
  • start_daterequired: YYYY-MM-DD, within the last 32 days
  • end_daterequired: YYYY-MM-DD
  • resolution: auto summarises long ranges to min/max/mean per period; one of auto, raw, hourly, daily

get_water_level

Current river/lake level and temperature at a BAFU hydro station

  • stationrequired: Hydro station ID, e.g. 2135 (Aare/Bern), 2243 (Rhine/Basel)

list_hydro_stations

List BAFU hydro station IDs (rivers, lakes)

  • No parameters

get_water_history

Historical river/lake levels for a BAFU hydro station. Only the last 32 days are available

  • stationrequired: Hydro station ID
  • start_daterequired: YYYY-MM-DD, within the last 32 days
  • end_daterequired: YYYY-MM-DD
  • resolution: auto summarises long ranges to min/max/mean per period; one of auto, raw, hourly, daily

get_weather_forecast

Official MeteoSwiss weather forecast for the next days (up to 9): daily high and low temperature, rain in mm and the expected weather, for a Swiss postcode, town, weather station or coordinates.

  • location: Postcode ("1860"), town ("Aigle"), weather station code ("AIG") or mountain point name
  • lat: Latitude, instead of location: uses the nearest forecast point
  • lon: Longitude, with lat
  • days: Days to return, today included (1-9, default 5)
  • language: Weather descriptions in en (default), de, fr or it; one of en, de, fr, it
geodataswisstopo geocoding, places, municipalities, solar potential6 tools

geocode

Address or place name to WGS84 coordinates (swisstopo)

  • addressrequired

reverse_geocode

WGS84 coordinates to address (swisstopo)

  • latrequired: Latitude (WGS84)
  • lngrequired: Longitude (WGS84)

search_places

Search place names, localities, mountains, geographic features

  • queryrequired

get_solar_potential

Rooftop solar potential at a location

  • latrequired: Latitude (WGS84)
  • lngrequired: Longitude (WGS84)

identify_location

Geographic features and swisstopo data layers at a location

  • latrequired: Latitude (WGS84)
  • lngrequired: Longitude (WGS84)
  • layers: Comma-separated layer IDs (default: all)

get_municipality

Municipality info by name

  • namerequired
companiesZEFIX commercial register: companies, cantons, legal forms5 tools

search_companies

Search the ZEFIX commercial register by company name, optionally filtered by canton/legal form

  • namerequired: Full or partial name, min 3 chars; * is a wildcard
  • canton: Canton of the registered seat; one of AG, AI, AR, BE, BL, BS, FR, GE, GL, GR, JU, LU, NE, NW, OW, SG, SH, SO, SZ, TG, TI, UR, VD, VS, ZG, ZH
  • legal_form: Legal form id, e.g. 3=AG, 4=GmbH (see list_legal_forms)
  • limit

get_company

Full company details by ZEFIX ehraid (from search_companies)

  • ehraidrequired: e.g. 119283

search_companies_by_locality

Companies whose registered seat is in a commune/town. ZEFIX has no street-address search

  • localityrequired: Commune or town, e.g. Zug, Lausanne
  • name: Optional name filter, min 3 chars
  • limit

list_cantons

List cantons with codes

  • No parameters
holidaysPublic and school holidays by canton3 tools

get_public_holidays

Public holidays for a year, national and cantonal

  • yearrequired: e.g. 2026
  • canton: Canton code, e.g. ZH (omit for all)

get_school_holidays

School holiday periods for a year, by canton

  • yearrequired: e.g. 2026
  • canton: Canton code, e.g. ZH (omit for all)

is_holiday_today

Whether today is a public holiday

  • canton: Canton code, e.g. ZH (omit for nationwide only)
parliamentFederal and cantonal parliament: affairs, members, votes, speeches9 tools

search_parliament_business

Full-text search of federal parliament affairs (bills, motions, interpellations, postulates, questions, initiatives). For cantonal parliaments use search_cantonal_affairs

  • queryrequired: German term, e.g. Klimaschutz, AHV
  • limit: max 20

get_parliament_members

Federal parliament members (National Council, Council of States), filterable by canton/party

  • canton: Canton name in German, e.g. Zürich, Genf, Waadt
  • party: Party name/abbreviation, e.g. SVP, SP, FDP, Grüne, Mitte
  • active: Only currently seated members
  • limit: max 50

get_parliament_votes

Recorded votes on a parliamentary affair (Geschäft)

  • affair_idrequired: OpenParlData affair ID (from search_parliament_business)

get_session_schedule

Upcoming and recent federal parliament sessions

  • limit: max 20

search_parliament_speeches

Debate speeches on a parliamentary affair

  • affair_idrequired: OpenParlData affair ID (from search_parliament_business)
  • limit: max 20

get_politician_interests

Declared interests and mandates (boards, consulting roles) of a federal parliament member

  • person_idrequired: OpenParlData person ID (from get_parliament_members)

search_cantonal_affairs

Search affairs in a cantonal parliament (Kantonsrat), all 26 cantons

  • cantonrequired: Canton code, e.g. ZH
  • query: German term, e.g. Bildung
  • limit: max 20

get_parliamentary_documents

Official documents (reports, committee opinions, Federal Council statements) for a parliamentary affair

  • affair_idrequired: OpenParlData affair ID (from search_parliament_business)
  • limit: max 20

get_committee_meetings

Federal parliament committee meeting schedule

  • group_id: Committee group ID (omit for all)
  • limit: max 20
avalancheSLF avalanche bulletins and warning regions2 tools

get_avalanche_bulletin

Live SLF avalanche bulletin: danger level (1-5), avalanche problems with aspect and elevation, validity and advice text, for one warning region, a coordinate, or all of Switzerland. Outside the winter season it reports that no bulletin is in force

  • region: EAWS region id (e.g. CH-7114) or name, see list_avalanche_regions
  • lat: WGS84 latitude, with lon; alternative to region
  • lon: WGS84 longitude, with lat
  • language: one of de, en, fr, it
  • date: YYYY-MM-DD or ISO timestamp for an archived bulletin; omit for the current one

list_avalanche_regions

The 135 SLF/EAWS avalanche warning regions (id, name, canton) for get_avalanche_bulletin

  • search: Match on region id or name
  • canton: Canton code, e.g. GR
airqualityNABEL air-quality stations and legal limits2 tools

list_air_quality_stations

List NABEL air-quality monitoring stations (BAFU/Empa)

  • No parameters

get_air_quality

NABEL station info: location, environment type, legal limits (LRV) and a link to BAFU live data (no measurements returned)

  • stationrequired: Station code, e.g. BER, ZUE, LUG, BAS, DAV
postSwiss Post postcodes and parcel tracking4 tools

lookup_postcode

Locality, canton and coordinates for a postcode (PLZ)

  • postcoderequired: 4 digits, e.g. 8001

search_postcode

Postcodes (PLZ) for a city/locality name

  • city_namerequired: e.g. Zürich

list_postcodes_in_canton

List postcodes (PLZ) in a canton

  • cantonrequired: Canton code (e.g. ZH) or name

track_parcel

Swiss Post tracking page URL for a tracking number (no live status: there is no public tracking API)

  • tracking_numberrequired: e.g. 99.00.123456.12345678 (parcel), RI 123456789 CH (registered)
energyElCom electricity tariffs by municipality3 tools

get_electricity_tariff

ElCom electricity tariff (Rp./kWh) for a municipality, with component breakdown

  • municipalityrequired: BFS number, e.g. 261 (Zürich), 351 (Bern); see search_municipality_energy
  • category: H1–H8 household (H4 ≈ 4500 kWh/yr), C1–C7 commercial; one of H1, H2, H3, H4, H5, H6, H7, H8, C1, C2, C3, C4, C5, C6, C7
  • year: 2011 onward, default: current year

compare_electricity_tariffs

Compare electricity tariffs across 2–20 municipalities

  • municipalitiesrequired: BFS numbers, e.g. ["261", "351"]
  • category: one of H1, H2, H3, H4, H5, H6, H7, H8, C1, C2, C3, C4, C5, C6, C7
  • year: 2011 onward, default: current year

search_municipality_energy

Find municipality BFS numbers for the electricity tariff tools

  • namerequired: e.g. Lausanne
statisticsBFS statistics: population and datasets3 tools

get_population

Permanent resident population (BFS STATPOP) for Switzerland, a canton or all cantons

  • canton: Canton code or name (e.g. ZH, Geneva); 'all' for every canton; omit for national total
  • year: STATPOP year, from 2010; default is the latest published

search_statistics

Search BFS datasets on opendata.swiss

  • queryrequired: e.g. unemployment, GDP
  • limit: 1–20

get_statistic

Details and resource links for a BFS dataset by opendata.swiss ID (from search_statistics)

  • dataset_idrequired: e.g. bevolkerungsstatistik-einwohner
snbSNB exchange rates and history3 tools

list_currencies

List currencies with SNB CHF exchange rates

  • No parameters

get_exchange_rate

Latest SNB monthly-average CHF exchange rate for a currency

  • currencyrequired: ISO 4217 code, e.g. EUR

get_exchange_rate_history

Historical SNB monthly-average CHF exchange rates (default: last 90 months)

  • currencyrequired: ISO 4217 code, e.g. EUR
  • from: YYYY-MM
  • to: YYYY-MM
recyclingZurich waste collection dates and types3 tools

get_waste_collection

Upcoming waste collection dates for a ZIP code. Zurich city only (8001–8099, OpenERZ)

  • ziprequired: e.g. 8004
  • type: Omit for all; one of waste, cardboard, paper, organic, textile, special, mobile
  • limit: max 100

list_waste_types

List waste collection types. Zurich city only (OpenERZ)

  • No parameters

get_waste_calendar

Monthly waste collection calendar for a ZIP code. Zurich city only (8001–8099, OpenERZ)

  • ziprequired: e.g. 8004
  • month: 1–12, default: current month
  • year: default: current year
newsSRF news headlines and search2 tools

get_swiss_news

Latest SRF news headlines

  • category: one of switzerland, international, economy
  • limit: max 50

search_swiss_news

Keyword search in current SRF headlines (all categories)

  • queryrequired: Keyword or phrase
  • limit: max 20
votingPopular vote results from Basel-Stadt open data3 tools

get_voting_results

Popular vote (Volksabstimmung) results as counted in Basel-Stadt: national and cantonal votes since 2021

  • year: e.g. 2024 (omit for most recent)
  • limit: max 50

search_votes

Search popular votes by title keyword (Basel-Stadt results)

  • queryrequired: Title keyword, e.g. CO2, AHV
  • limit: max 20

get_vote_details

Per-district Basel-Stadt results (Basel, Riehen, Bettingen, abroad) for one vote. Give vote_title and/or date

  • vote_title: Partial title, e.g. CO2-Gesetz
  • date: YYYY-MM-DD
damsSwiss dams and reservoirs3 tools

search_dams

Search federally supervised dams by dam or reservoir name (SFOE)

  • queryrequired: Partial name, e.g. Grimsel, Lac des Dix

get_dams_by_canton

Federally supervised dams in a canton

  • cantonrequired: Canton code, e.g. VS
  • limit: Dams to return (1-100)

get_dam_details

Full technical details of one dam by name

  • namerequired: e.g. Grande Dixence (see search_dams)
hikingHiking trail closures2 tools

get_trail_closures

Current hiking trail closures and detours (ASTRA/Schweizer Wanderwege)

  • reason: Partial match, e.g. Steinschlag, Bauarbeiten, Hangrutsch
  • type: Omit for both; one of closure, detour
  • limit: max 100

get_trail_closures_nearby

Hiking trail closures and detours near a WGS84 point

  • latrequired: Latitude (WGS84)
  • lonrequired: Longitude (WGS84)
  • radius: Metres, max 50000
realestateProperty price and rent indices, real-estate datasets3 tools

get_property_price_index

BFS residential property price index (IMPI), quarterly since 2017Q1, Q4 2019 = 100

  • type: one of all, houses, apartments
  • from: Inclusive, e.g. 2020Q1 or 2020 (default: earliest)
  • to: Inclusive, e.g. 2024Q4 or 2024 (default: latest)

search_real_estate_data

Search opendata.swiss for real-estate/housing datasets (prices, rents, construction, vacancies)

  • queryrequired: DE/FR/EN terms, e.g. Miete, logement, Leerwohnungen
  • limit: 1–20

get_rent_index

BFS consumer price index (CPI/LIK, incl. rents), monthly, Dec 1982 = 100. Not a dedicated rent index; for purchase prices use get_property_price_index

  • year: 1982 onward (omit for recent months)
  • limit: Recent months, 1–60; ignored if year set
trafficASTRA road traffic counts3 tools

get_traffic_count

ASTRA traffic counting station volumes by location name

  • locationrequired: e.g. Gotthard

get_traffic_by_canton

ASTRA traffic counting stations in a canton (max 20)

  • cantonrequired: Canton code, e.g. ZH

get_traffic_nearby

ASTRA traffic counting stations near a WGS84 point

  • latrequired: Latitude (WGS84)
  • lonrequired: Longitude (WGS84)
  • radius: Metres
earthquakesSED earthquakes: recent events, details, nearby search3 tools

get_recent_earthquakes

Recent earthquakes in and around Switzerland (SED, ETH Zürich)

  • days: Past days, max 365
  • min_magnitude
  • limit: max 100
  • include_blasts: Include quarry blasts

get_earthquake_details

Full details of one seismic event by SED event ID

  • event_idrequired: From the other earthquake tools, e.g. smi:ch.ethz.sed/sc25a/Event/2026errxzt

search_earthquakes_by_location

Earthquakes within a radius of a WGS84 point (SED)

  • latrequired: Latitude (WGS84)
  • lonrequired: Longitude (WGS84)
  • radius_km: km, max 500
  • days: Past days, max 365
  • min_magnitude
  • limit: max 100
snowSLF snow depth from IMIS and study-plot stations3 tools

get_snow_conditions

Current snow depth and 24h new snow at SLF IMIS stations, deepest first

  • canton: Canton code, e.g. GR
  • min_altitude: Metres
  • limit: max 100

list_snow_stations

List SLF snow stations (IMIS automatic, manual study plots)

  • canton: Canton code, e.g. GR
  • type: Omit for both; one of imis, study-plot
  • limit: max 200

get_snow_measurements

Measurements for one SLF station: IMIS 30-min snow/weather data, or study-plot daily snow data

  • station_coderequired: e.g. DAV2, WFJ2, 4AO0 (see list_snow_stations)
  • type: one of imis, study-plot
pollenMeteoSwiss pollen concentrations3 tools

get_pollen_current

Latest hourly pollen concentrations (alder, birch, hazel, beech, ash, oak, grasses) at a MeteoSwiss station

  • stationrequired: e.g. PZH Zürich, PBE Bern, PBS Basel

get_pollen_daily

Daily average pollen concentrations at a MeteoSwiss station

  • stationrequired: e.g. PZH Zürich, PBE Bern
  • days: Recent days, max 90

list_pollen_stations

List MeteoSwiss pollen stations

  • canton: Canton code, e.g. ZH
gwrFederal building register (GWR): buildings and dwellings by address or EGID3 tools

search_buildings

Find buildings in the federal buildings register (GWR/RegBL) by address; gives EGIDs for get_building

  • addressrequired: Street, number, locality, e.g. Bundesplatz 3 3011 Bern
  • limit: max 20

get_building

Full GWR record of one building by EGID: construction, floors, areas, heating/hot-water system and energy source, parcel (EGRID), entrances, dwellings

  • egidrequired: EGID, e.g. 2119257
  • max_dwellings: max 500; 0 = summary only

buildings_near

GWR buildings nearest a WGS84 point (small radius), with EGIDs

  • latrequired: Latitude (WGS84)
  • lonrequired: Longitude (WGS84)
  • radius: Metres, max 250
  • limit: max 50
opendataopendata.swiss catalogue: datasets, metadata, and downloads3 tools

search_opendata

Search the Swiss open data catalogue (opendata.swiss) for datasets. Returns titles, publishers, and dataset ids. Optional organization slug narrows results to one publisher (e.g. bundesamt-fur-statistik-bfs). Source: opendata.swiss CKAN API.

  • queryrequired: Full-text search (e.g. 'weather', 'population', 'öV Fahrplan').
  • organization: Optional publisher slug (e.g. bundesamt-fur-statistik-bfs, bundesamt-fuer-meteorologie-und-klimatologie-meteoschweiz).
  • limit: Maximum datasets to return (default 10, max 20).

get_opendata_dataset

Get metadata for one opendata.swiss dataset by its catalogue name or UUID. Includes the publisher, description, keywords, and a short resource summary. Use list_opendata_resources for the full download list.

  • dataset_idrequired: Dataset name or id (e.g. weather-station-klosters).

list_opendata_resources

List downloadable resources (files and services) for an opendata.swiss dataset. Optional format filter such as CSV, JSON, or WMS.

  • dataset_idrequired: Dataset name or id from search_opendata.
  • format: Optional format filter (e.g. CSV, JSON, XML, WMS, ZIP).
  • limit: Maximum resources to return (default 20, max 50).
meteoswissMeteoSwiss OGD measurements from SwissMetNet stations3 tools

list_ogd_stations

List MeteoSwiss Open Government Data stations from a STAC collection on data.geo.admin.ch. Defaults to SwissMetNet automatic weather stations (smn). Other station collections: smn-precip, smn-tower, nime, nbcn, nbcn-precip, obs, phenology, tot. Filter by canton or a name/code search.

  • collection: OGD collection alias (default smn). Aliases: smn, smn-precip, smn-tower, nime, nbcn, nbcn-precip, obs, phenology, tot. A full STAC id such as ch.meteoschweiz.ogd-smn is also accepted.
  • canton: Canton abbreviation (e.g. BE, ZH, VS, TI).
  • query: Case-insensitive match on station code or name (e.g. BER, Zürich).
  • limit: Maximum stations to return (default 30, max 150).

get_ogd_recent

Get the latest MeteoSwiss OGD measurements for one station by reading the STAC CSV asset (10-minute/hourly 'now' file when available, otherwise the recent file). Times are Swiss local time. Use list_ogd_stations for codes such as BER, SMA, LUG.

  • stationrequired: Station abbreviation (e.g. BER, SMA, LUG, BAS).
  • collection: OGD collection alias (default smn). Aliases: smn, smn-precip, smn-tower, nime, nbcn, nbcn-precip, obs, phenology, tot. A full STAC id such as ch.meteoschweiz.ogd-smn is also accepted.
  • granularity: Resolution: t (10-minute), h (hourly, default), d (daily), m (monthly), y (yearly).
  • parameters: Comma-separated parameter codes (e.g. tre200h0,rre150h0). Omit for the common temperature, humidity, precipitation, wind, pressure, sunshine, and radiation columns. Use 'all' for the first data columns.
  • limit: Number of most recent rows (default 24, max 168).

get_ogd_history

Get historical MeteoSwiss OGD measurements for one station and date range by parsing the STAC CSV assets. Daily data defaults to the smaller recent/historical files. Hourly history is limited to 14 days because decade files are large. Times are Swiss local time (no offset).

  • stationrequired: Station abbreviation (e.g. BER).
  • collection: OGD collection alias (default smn). Aliases: smn, smn-precip, smn-tower, nime, nbcn, nbcn-precip, obs, phenology, tot. A full STAC id such as ch.meteoschweiz.ogd-smn is also accepted.
  • granularity: Resolution: t, h, d (daily, default), m, or y.
  • start_daterequired: First day YYYY-MM-DD (inclusive).
  • end_daterequired: Last day YYYY-MM-DD (inclusive).
  • parameters: Comma-separated parameter codes, or omit for the common meteorological columns.
  • limit: Maximum rows (default 31, max 100). When truncated, the latest rows in the range are kept.
maplayersgeo.admin map layers: search, identify, and attribute find3 tools

search_map_layers

Search or list layers in the geo.admin ech MapServer catalogue (all federal geospatial layers). Returns layer ids that identify_map_layer and find_map_features accept. Without a query, returns the first page of layers alphabetically.

  • query: Words matched against the layer id, name, owner, and abstract (e.g. 'municipality', 'gemeinde', 'avalanche').
  • owner: Optional data-owner filter (e.g. swisstopo, BAFU, BFS).
  • limit: Maximum layers to return (default 15, max 40).

identify_map_layer

Identify geo.admin features at a WGS84 point on one ech MapServer layer. Use search_map_layers to find the layer id. Historical time-series layers keep only the current feature unless include_historical is true.

  • layerrequired: Layer id (e.g. ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill).
  • latrequired: Latitude in WGS84.
  • lngrequired: Longitude in WGS84.
  • tolerance: Search tolerance in pixels (default 5, max 50). Use a higher value for lines and points.
  • lang: Label language: en (default), de, fr, it, or rm.
  • include_historical: Keep historical versions when a layer has an is_current_jahr attribute (default false).
  • limit: Maximum features (default 10, max 25).

find_map_features

Find geo.admin features on one ech MapServer layer by an attribute value. Identify a point first if you need the attribute names. Example: layer ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill, search_field gemname, search_text Bern.

  • layerrequired: Layer id from search_map_layers.
  • search_fieldrequired: Attribute name to search (e.g. gemname, name, label).
  • search_textrequired: Value to search for.
  • contains: When true (default), match values that contain the text. When false, match the whole value.
  • include_historical: Keep historical versions when a layer has an is_current_jahr attribute (default false).
  • limit: Maximum features (default 10, max 25).
sbbdataSBB open data: station passengers, punctuality, and step-free access3 tools

get_station_passengers

Passenger counts for an SBB station from the data.sbb.ch frequency dataset. Returns average daily, weekday, and weekend boardings and alightings (Ein- und Aussteigende). Newest year first.

  • stationrequired: Station name as published by SBB (e.g. Bern, Zürich HB, Genève).
  • year: Optional year (e.g. 2024). Omit to return the newest years.
  • contains: When true, match station names that contain the text. Default false matches the whole name.
  • limit: Maximum rows (default 10, max 30).

get_station_punctuality

Punctuality for an SBB stop on the previous operating day (ist-daten-sbb target vs actual times). Returns stop counts, arrival and departure delay counts, cancellations, and a short sample of delayed arrivals. A stop is delayed when SBB flags it, which is generally a delay of about three minutes or more.

  • stationrequired: Station name as published by SBB (e.g. Bern, Zürich HB, Genève).
  • line: Optional line filter (e.g. IC1, IR15, S7).
  • contains: When true, match station names that contain the text. Default false matches the whole name.
  • limit: Delayed-arrival samples to include (default 5, max 15).

get_station_accessibility

Platform accessibility for an SBB station: platform number, length, type, and whether access is rail-free (step-free). Source: data.sbb.ch platform dataset.

  • stationrequired: Station name as published by SBB (e.g. Bern, Zürich HB, Genève).
  • contains: When true, match station names that contain the text. Default false matches the whole name.
  • limit: Maximum platforms (default 30, max 80).

Data sources

Every answer comes from an official or long-running public source. Please respect each source's licence when you reuse what your assistant finds.