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.
This runs the server's own search, the one your assistant uses in the default mode.
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.
claude mcp add swiss -- npx -y mcp-swiss
It's available from your next session.
Add this to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"swiss": {
"command": "npx",
"args": ["-y", "mcp-swiss"]
}
}
}
Install in VS Code VS Code Insiders
From a terminal:
code --add-mcp '{"name":"swiss","command":"npx","args":["-y","mcp-swiss"]}'
Or share it with your team in .vscode/mcp.json:
{
"servers": {
"swiss": {
"command": "npx",
"args": ["-y", "mcp-swiss"]
}
}
}
Any app that speaks MCP over stdio works with this command:
{
"command": "npx",
"args": ["-y", "mcp-swiss"]
}
Windsurf reads it from ~/.codeium/windsurf/model_config.json under "mcpServers". Cline reads it from VS Code settings under "cline.mcpServers". Requires Node.js 20 or later.
{
"mcpServers": {
"swiss": {
"command": "docker",
"args": ["run", "-i", "--rm", "vikramgorla/mcp-swiss"]
}
}
}
Images are on Docker Hub (vikramgorla/mcp-swiss) and GitHub (ghcr.io/vikramgorla/mcp-swiss).
npx -y mcp-swiss --http
Serves Streamable HTTP at http://127.0.0.1:3000/mcp with a /health check. Change it with --port and --host. Listening on anything other than localhost requires MCP_AUTH_TOKEN and MCP_ALLOWED_HOSTS; sessions are capped by MCP_MAX_SESSIONS (default 64).
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 args | What you get |
|---|---|
| nothing | Search mode, as above. Recommended. |
--modules transport,weather | Only those modules, with their tools listed directly. --list-modules shows all 27. |
--preset commuter | A 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 full | All 95 tools listed directly. Fine in apps that already load tools on demand, such as Claude Code. |
--pin get_weather,geocode | Different 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.
No tool matches that. Try a broader word, or the question box at the top.
transportSBB and public transport: stations, connections, departures, arrivals5 tools
search_stations
Search public transport stations/stops by name or coordinates
query: Station namex: Latitude (WGS84)y: Longitude (WGS84)type: one ofall,station,poi,address
get_connections
Train/bus connections between two locations
fromrequired: Station or addresstorequired: Station or addressdate: YYYY-MM-DD, default: todaytime: HH:MM, default: nowlimit: 1-16, default: 4isArrivalTime: Treat time as arrival time
get_departures
Live departures from a station
stationrequired: Station namelimit: default: 10datetime: YYYY-MM-DDTHH:MM, default: now
get_arrivals
Live arrivals at a station
stationrequired: Station namelimit: default: 10datetime: YYYY-MM-DDTHH:MM, default: now
get_nearby_stations
Stations near coordinates
xrequired: Latitude (WGS84)yrequired: Longitude (WGS84)limit: Max resultsdistance: 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. BERstart_daterequired: YYYY-MM-DD, within the last 32 daysend_daterequired: YYYY-MM-DDresolution: auto summarises long ranges to min/max/mean per period; one ofauto,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 IDstart_daterequired: YYYY-MM-DD, within the last 32 daysend_daterequired: YYYY-MM-DDresolution: auto summarises long ranges to min/max/mean per period; one ofauto,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 namelat: Latitude, instead of location: uses the nearest forecast pointlon: Longitude, with latdays: Days to return, today included (1-9, default 5)language: Weather descriptions in en (default), de, fr or it; one ofen,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 wildcardcanton: Canton of the registered seat; one ofAG,AI,AR,BE,BL,BS,FR,GE,GL,GR,JU,LU,NE,NW,OW,SG,SH,SO,SZ,TG,TI,UR,VD,VS,ZG,ZHlegal_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, Lausannename: Optional name filter, min 3 charslimit
list_cantons
List cantons with codes
- No parameters
list_legal_forms
List company legal forms / company types (AG, GmbH, ...) with the ids used by search_companies
- No parameters
holidaysPublic and school holidays by canton3 tools
get_public_holidays
Public holidays for a year, national and cantonal
yearrequired: e.g. 2026canton: Canton code, e.g. ZH (omit for all)
get_school_holidays
School holiday periods for a year, by canton
yearrequired: e.g. 2026canton: 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, AHVlimit: 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, Waadtparty: Party name/abbreviation, e.g. SVP, SP, FDP, Grüne, Mitteactive: Only currently seated memberslimit: 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. ZHquery: German term, e.g. Bildunglimit: 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_regionslat: WGS84 latitude, with lon; alternative to regionlon: WGS84 longitude, with latlanguage: one ofde,en,fr,itdate: 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 namecanton: 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_energycategory: H1–H8 household (H4 ≈ 4500 kWh/yr), C1–C7 commercial; one ofH1,H2,H3,H4,H5,H6,H7,H8,C1,C2,C3,C4,C5,C6,C7year: 2011 onward, default: current year
compare_electricity_tariffs
Compare electricity tariffs across 2–20 municipalities
municipalitiesrequired: BFS numbers, e.g. ["261", "351"]category: one ofH1,H2,H3,H4,H5,H6,H7,H8,C1,C2,C3,C4,C5,C6,C7year: 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 totalyear: STATPOP year, from 2010; default is the latest published
search_statistics
Search BFS datasets on opendata.swiss
queryrequired: e.g. unemployment, GDPlimit: 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. EURfrom: YYYY-MMto: 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. 8004type: Omit for all; one ofwaste,cardboard,paper,organic,textile,special,mobilelimit: 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. 8004month: 1–12, default: current monthyear: default: current year
newsSRF news headlines and search2 tools
get_swiss_news
Latest SRF news headlines
category: one ofswitzerland,international,economylimit: max 50
search_swiss_news
Keyword search in current SRF headlines (all categories)
queryrequired: Keyword or phraselimit: 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, AHVlimit: 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-Gesetzdate: 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. VSlimit: 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, Hangrutschtype: Omit for both; one ofclosure,detourlimit: 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 ofall,houses,apartmentsfrom: 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, Leerwohnungenlimit: 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 365min_magnitudelimit: max 100include_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 500days: Past days, max 365min_magnitudelimit: 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. GRmin_altitude: Metreslimit: max 100
list_snow_stations
List SLF snow stations (IMIS automatic, manual study plots)
canton: Canton code, e.g. GRtype: Omit for both; one ofimis,study-plotlimit: 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 ofimis,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 Berndays: 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 Bernlimit: 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. 2119257max_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 250limit: 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.
- transport.opendata.ch SBB, PostBus and tram timetables and live departures
- api.existenz.ch MeteoSwiss weather and BAFU river and lake levels
- geo.admin.ch (swisstopo) Geocoding, places, municipalities, solar potential, map layers, postcodes, trail closures
- ZEFIX Federal commercial register
- OpenHolidays API Public and school holidays by canton
- OpenParlData.ch Federal and cantonal parliament data (CC BY 4.0)
- SLF / WSL Avalanche bulletins and snow measurements (CC BY 4.0)
- BAFU NABEL Air-quality monitoring stations
- ElCom Electricity tariffs by municipality
- BFS (Federal Statistical Office) Population, property price index, consumer price index, building register
- Swiss National Bank CHF exchange rates
- OpenERZ Zurich city waste collection calendar
- SRF News headlines
- Open Data Basel-Stadt Popular vote results
- SFOE Federally supervised dams
- ASTRA Traffic counting stations
- Swiss Seismological Service (ETH Zürich) Earthquake catalogue
- MeteoSwiss open data Local weather forecasts, pollen and SwissMetNet station measurements (Source: MeteoSwiss)
- opendata.swiss National open data catalogue
- SBB Open Data Station passengers, punctuality and platform accessibility