Switzerland MCP 🇨🇭

io.github.vikramgorla由 GitHub 帳號 vikramgorla 發布v0.9.0更新於 Nov 3, 2026

瑞士開放資料 MCP 伺服器。94 個工具,無需 API 金鑰。涵蓋交通、天氣、地理資料、目錄。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Swiss open data MCP server. 94 tools, zero API keys. Transport, weather, geodata, catalogue.

概覽

Switzerland MCP 🇨🇭 的本機 MCP 服務;無需登入;STDIO;94 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Switzerland MCP 🇨🇭,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README


mcp-swiss is a Model Context Protocol server that gives any AI assistant direct access to Swiss open data — trains, weather, rivers, maps, and companies.

94 tools. No API keys. No registration. No server to run. Just npx mcp-swiss.

🚆 Transport    — SBB, PostBus, trams, live departures, journey planning🌤️ Weather      — MeteoSwiss live conditions + historical data🌊 Hydrology    — BAFU river & lake levels (great for Aare swimming!)🗺️ Geodata      — swisstopo geocoding, solar potential, geographic layers🏢 Companies    — ZEFIX federal registry, all 700K+ Swiss companies🎄 Holidays     — Swiss public & school holidays by canton🏛️ Parliament   — Bills, votes, members, speeches, cantonal affairs (OpenParlData.ch)🏔️ Avalanche    — SLF danger bulletins and warning regions💨 Air Quality  — NABEL stations, Swiss legal limits (LRV)📮 Swiss Post   — Postcode lookup and parcel tracking⚡ Energy       — Electricity tariffs by municipality (ElCom)📊 Statistics   — Population, demographics, BFS datasets🏦 SNB Rates    — Swiss National Bank CHF exchange rates, historical data♻️ Recycling    — Zurich city waste collection calendar (OpenERZ)📰 Swiss News   — SRF news headlines and keyword search🗳️ Voting       — Swiss popular vote results (Basel-Stadt open data)🌊 Dams         — Swiss federal dam registry (SFOE/swisstopo)🥾 Hiking       — Swiss trail closures and hiking alerts (swisstopo)🏠 Real Estate  — Swiss property prices, rent index, housing data (BFS)🚗 Traffic      — ASTRA counting stations, daily volumes🌍 Earthquakes  — Swiss Seismological Service (SED/ETH Zürich), FDSN API❄️ Snow         — SLF snow depth, stations, and measurements🌿 Pollen       — MeteoSwiss pollen concentrations at the published stations🏠 Buildings    — Federal register of buildings and dwellings (GWR)📂 Catalogue    — opendata.swiss dataset search, metadata, and downloads🌡️ Meteo OGD    — SwissMetNet stations and measurements (STAC CSV)🧭 Map layers   — geo.admin layer search, identify, and attribute find🚉 SBB Data     — station passengers, punctuality, and step-free access

Installation

Quick Start

bash
npx mcp-swiss

That's it. No API keys, no .env files, no accounts. Pick your client below and paste the config.


One-Click Install (.mcpb)

.mcpb bundles work with Claude Desktop and any MCP Bundle-compatible app.

⬇ Download mcp-swiss.mcpb

[Install in Claude Desktop]

Open the downloaded file — your app handles the rest. No config editing, no terminal, no API keys.


Claude Desktop

Edit your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "swiss": {      "command": "npx",      "args": ["-y", "mcp-swiss"]    }  }}

Restart Claude Desktop after saving.


Claude Code (CLI)

bash
claude mcp add swiss -- npx -y mcp-swiss

That's it — Claude Code will use it in your next session.


Cursor

Requires Cursor 0.45.6+

Option A: Project config — create .cursor/mcp.json in your project root:

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

Option B: Global config — create ~/.cursor/mcp.json:

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

Option C: Via Cursor Settings UI

  1. Open Cursor Settings
  2. Go to Features → MCP Servers
  3. Click + Add new global MCP server
  4. Paste the JSON config above

VS Code (GitHub Copilot)

One-click Install

[Install in VS Code] [Install in VS Code Insiders]

CLI Install
bash
# VS Codecode --add-mcp '{"name":"swiss","command":"npx","args":["-y","mcp-swiss"]}'
# VS Code Insiderscode-insiders --add-mcp '{"name":"swiss","command":"npx","args":["-y","mcp-swiss"]}'
Manual Config

Add to your VS Code User Settings (JSON) — press Ctrl+Shift+P → Preferences: Open User Settings (JSON):

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

Or add to .vscode/mcp.json in your workspace (shareable with your team):

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

Windsurf

Add to ~/.codeium/windsurf/model_config.json:

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

Cline (VS Code)

Open VS Code settings.json and add:

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

Any MCP Client

mcp-swiss uses stdio transport and requires no environment variables. Upstream calls time out after 30 seconds (MCP_SWISS_TIMEOUT_MS overrides that) and retry once on a dropped connection or a rate limit. The universal config:

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

This works with any MCP-compatible client — just plug it in.

Docker

bash
docker pull vikramgorla/mcp-swiss

Use with any MCP client that supports Docker-based servers. The container uses stdio transport:

bash
# Run directly (stdio)docker run -i vikramgorla/mcp-swiss
# Use with Claude Desktop

For Claude Desktop, update your config to use Docker:

json
{  "mcpServers": {    "swiss": {      "command": "docker",      "args": ["run", "-i", "--rm", "vikramgorla/mcp-swiss"]    }  }}

Also available on GitHub Container Registry:

bash
docker pull ghcr.io/vikramgorla/mcp-swiss

Streamable HTTP

stdio is still the default. For a local HTTP client, run:

bash
npx mcp-swiss --http

That listens on 127.0.0.1:3000 and serves MCP at POST /mcp (also GET and DELETE) plus GET /health. --port, --host, PORT, HOST, and MCP_TRANSPORT=http are the other switches.

A bind that is not loopback (127.0.0.1, localhost, or ::1) refuses to start unless both MCP_AUTH_TOKEN and MCP_ALLOWED_HOSTS are set. Sessions are capped (MCP_MAX_SESSIONS, default 64) and idle ones expire. This is the transport half of #64. It does not deploy a hosted instance.


Module Filtering

By default, mcp-swiss loads all 27 modules (94 tools). The full tools/list schema is about 9,300 tokens (37,011 characters). For a smaller startup list, load only the modules you need.

Discovery mode

Search, then execute. The server lists three meta-tools instead of every schema (about 330 tokens versus about 9,300):

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

MCP_SWISS_MODE=discovery and --mode discovery do the same thing. swiss_search_tools finds tools by keyword or module and returns their input schemas. swiss_call_tool checks those arguments, then runs the tool. swiss_list_modules is the catalog. The default, with no flag, is still the full tool list.

Select specific modules

json
{  "mcpServers": {    "swiss": {      "command": "npx",      "args": ["-y", "mcp-swiss", "--modules", "transport,weather"]    }  }}

Use presets

json
{  "mcpServers": {    "swiss": {      "command": "npx",      "args": ["-y", "mcp-swiss", "--preset", "commuter"]    }  }}
PresetModulesToolsToken Savings
commutertransport, weather, holidays1483%
outdoorweather, avalanche, hiking, earthquakes, dams, snow, pollen2274%
businesscompanies, geodata, post, energy, statistics, snb, gwr2768%
citizenparliament, voting, holidays, news1780%
minimaltransport594%
fullall 27 modules (default)94—

Combine preset + modules: --preset commuter --modules parliament

List available: npx mcp-swiss --list-modules or npx mcp-swiss --list-presets


Demo Prompts

Once connected, try asking your AI:

PromptWhat it uses
"Next 5 trains from Zürich HB to Geneva"get_connections
"Is the Aare in Bern warm enough to swim?"get_water_level
"Weather in Lugano vs Zürich today"get_weather
"Find blockchain companies registered in Zug"search_companies
"Solar potential of Bundesplatz 3, Bern"geocode + get_solar_potential
"Live departures from Bern HB"get_departures
"What rivers are near Thun?"list_hydro_stations + get_water_level
"Plan my Saturday: train to Interlaken, check weather"Multiple tools chained
"Is next Monday a holiday in Zürich?"get_public_holidays
"What did the Swiss parliament vote on recently?"search_parliament_business
"What's the avalanche danger level in the Bernese Alps?"get_avalanche_bulletin
"What's the postcode for Zermatt?"search_postcode
"Track my Swiss Post parcel 99.12.345678.12345678"track_parcel
"How much does electricity cost in Zürich vs Basel?"search_municipality_energy + compare_electricity_tariffs
"What's the population of canton Zug?"get_population

Tools

94 tools across 27 modules. Full specifications: docs/tool-specs.md · Machine-readable: docs/tools.schema.json

🚆 Transport (5 tools)

ToolDescription
search_stationsFind stations/stops by name or location
get_connectionsJourney planner between any two points
get_departuresLive departures from a station
get_arrivalsLive arrivals at a station
get_nearby_stationsStations near coordinates

🌤️ Weather & Hydrology (6 tools)

ToolDescription
get_weatherCurrent conditions at a MeteoSwiss station
list_weather_stationsAll ~160 MeteoSwiss stations with metadata
get_weather_historyHistorical weather data (up to 32 days)
get_water_levelRiver/lake level + temperature (BAFU)
list_hydro_stationsAll 400+ hydrological monitoring stations
get_water_historyHistorical hydrology data

🗺️ Geodata / swisstopo (6 tools)

ToolDescription
geocodeSwiss address → coordinates
reverse_geocodeCoordinates → Swiss address
search_placesSwiss place names, mountains, lakes, features
get_solar_potentialRooftop solar irradiation at a location
identify_locationAll geographic data layers at a point
get_municipalityMunicipality info by name

🏢 Companies / ZEFIX (5 tools)

ToolDescription
search_companiesSearch by name, canton, legal form
get_companyFull company details by ZEFIX ehraid
search_companies_by_localityCompanies seated in a commune or town (ZEFIX has no street search)
list_cantonsAll 26 Swiss cantons
list_legal_formsAG, GmbH, and all Swiss legal forms

🎄 Holidays (3 tools)

ToolDescription
get_public_holidaysSwiss public holidays by year, optionally filtered by canton
get_school_holidaysSchool holiday periods by year and canton
is_holiday_todayQuick check if today is a public holiday

🏛️ Parliament (9 tools) — OpenParlData.ch

ToolDescription
search_parliament_businessSearch federal political affairs (bills, motions, questions)
get_parliament_membersList parliament members by canton, party, or activity
get_parliament_votesVoting results for a specific affair
get_session_scheduleUpcoming/recent parliament sessions
search_parliament_speechesDebate speeches for an affair
get_politician_interestsDeclared interests and mandates of a member
search_cantonal_affairsSearch across 26 cantonal parliaments
get_parliamentary_documentsOfficial documents for an affair
get_committee_meetingsCommittee/commission meeting schedule

🏔️ Avalanche (2 tools)

ToolDescription
get_avalanche_bulletinLive SLF bulletin: danger level, problems, advice for a region or coordinate
list_avalanche_regionsThe 135 SLF/EAWS warning regions

💨 Air Quality (2 tools)

ToolDescription
list_air_quality_stationsAll 16 NABEL monitoring stations, plus any code the live layer adds
get_air_qualityStation info, Swiss legal limits (LRV), and BAFU data links

📮 Swiss Post (4 tools)

ToolDescription
lookup_postcodePLZ → locality, canton, coordinates
search_postcodeCity name → matching postcodes
list_postcodes_in_cantonAll postcodes in a canton
track_parcelGenerate Swiss Post tracking URL for a parcel

⚡ Energy Prices (3 tools)

ToolDescription
get_electricity_tariffElectricity tariff by municipality with component breakdown
compare_electricity_tariffsCompare electricity prices across municipalities
search_municipality_energyFind municipality ID for tariff lookup

📊 Statistics / BFS (3 tools)

ToolDescription
get_populationPopulation by canton or municipality from BFS STATPOP
search_statisticsSearch BFS datasets on opendata.swiss
get_statisticFetch detailed dataset information

🏦 SNB Exchange Rates (3 tools)

ToolDescription
list_currenciesList all currencies available from the Swiss National Bank (SNB)
get_exchange_rateGet the current CHF exchange rate for any currency
get_exchange_rate_historyGet historical monthly CHF exchange rates with date filtering

♻️ Recycling / Waste Collection (3 tools)

ToolDescription
get_waste_collectionNext waste collection dates by Zurich ZIP code and waste type
list_waste_typesList all supported waste types with descriptions
get_waste_calendarFull waste collection calendar for a ZIP code (upcoming dates)

📰 Swiss News (2 tools)

ToolDescription
get_swiss_newsLatest Swiss headlines from SRF by category (Switzerland/international/economy)
search_swiss_newsSearch SRF news by keyword across all categories

🗳️ Voting (3 tools)

ToolDescription
get_voting_resultsSwiss popular vote results from Basel-Stadt open data
search_votesSearch popular votes by keyword (German/French/Italian)
get_vote_detailsDetailed per-district breakdown of a specific vote

🌊 Dams & Reservoirs (3 tools)

ToolDescription
search_damsSearch Swiss federal dams by name or keyword
get_dams_by_cantonList all federal dams in a canton
get_dam_detailsDetailed info on a specific dam (height, volume, purpose)

🥾 Hiking / Trail Closures (2 tools)

ToolDescription
get_trail_closuresSwiss trail closures and hiking alerts from swisstopo
get_trail_closures_nearbyTrail closures near given coordinates

🏠 Buildings / GWR (3 tools)

ToolDescription
search_buildingsFind buildings in the federal register (GWR) by address and return EGIDs
get_buildingFull building record by EGID: year, floors, heating, parcel, entrances, dwellings
buildings_nearBuildings nearest a WGS84 point, closest first

🏠 Real Estate (3 tools)

ToolDescription
get_property_price_indexSwiss property price index (BFS Immo-Monitoring)
search_real_estate_dataSearch BFS real estate datasets on opendata.swiss
get_rent_indexSwiss rent index and housing cost data from BFS

🚗 Traffic / ASTRA (3 tools)

ToolDescription
get_traffic_countTraffic counting station data (ASTRA) — daily volumes and heavy traffic share
get_traffic_by_cantonList ASTRA traffic counting stations filtered by canton
get_traffic_nearbyFind traffic counting stations near given coordinates

🌍 Earthquakes / SED (3 tools)

ToolDescription
get_recent_earthquakesRecent seismic events in/around Switzerland from the Swiss Seismological Service (SED) at ETH Zürich
get_earthquake_detailsFull details for a specific seismic event by SED event ID
search_earthquakes_by_locationEarthquakes near given coordinates with configurable radius, time range, and limit

❄️ Snow Conditions / SLF (3 tools)

ToolDescription
get_snow_conditionsCurrent snow depth and new snow (24h) across Switzerland from SLF IMIS stations, filterable by canton/altitude
list_snow_stationsAll 307 SLF snow measurement stations (IMIS automatic + manual study plots)
get_snow_measurementsDetailed snow and weather measurements for a specific SLF station

🌿 Pollen / MeteoSwiss (3 tools)

ToolDescription
get_pollen_currentCurrent hourly pollen concentrations at a published MeteoSwiss station
get_pollen_dailyDaily pollen averages over a configurable range
list_pollen_stationsPublished MeteoSwiss pollen stations (the list is no longer a frozen 16)

📂 Open Data Catalogue (3 tools)

ToolDescription
search_opendataSearch the opendata.swiss catalogue (CKAN) by keyword, optionally limited to one publisher
get_opendata_datasetMetadata for one dataset: publisher, description, keywords, and a short resource summary
list_opendata_resourcesDownload links and services for a dataset, with an optional format filter

🌡️ MeteoSwiss OGD (3 tools)

ToolDescription
list_ogd_stationsStations in a MeteoSwiss OGD STAC collection (SwissMetNet by default, plus precipitation, climate, phenology, and totaliser networks)
get_ogd_recentLatest measurements for one station, parsed from the now/recent CSV asset
get_ogd_historyHistorical measurements for a date range, parsed from the historical or recent CSV assets

🧭 Map Layers / geo.admin (3 tools)

ToolDescription
search_map_layersSearch or list layers in the geo.admin ech MapServer catalogue
identify_map_layerFeatures at a WGS84 point on one layer, keeping the current version of time-series layers
find_map_featuresFind features on one layer by attribute value

🚉 SBB Open Data (3 tools)

ToolDescription
get_station_passengersAverage daily, weekday, and weekend boardings and alightings at an SBB station
get_station_punctualityPrevious-day arrival and departure punctuality, delays, and cancellations
get_station_accessibilityPlatform length and rail-free (step-free) access

Data Sources

All official Swiss open data — no API keys required:

SourceDataDocs
transport.opendata.chSBB, PostBus, tramsAPI docs
api.existenz.chMeteoSwiss weather + BAFU hydrologyAPI docs
api3.geo.admin.chswisstopo federal geodataAPI docs
zefix.admin.chFederal company registrySwagger
openholidaysapi.orgSwiss public & school holidaysAPI docs
OpenParlData.chSwiss Parliament data — federal & cantonal (CC BY 4.0)API docs
whiterisk.ch / aws.slf.chSLF/WSL avalanche bulletinsSLF
geo.admin.ch — BAFU/NABELSwiss air quality monitoring stationsBAFU NABEL
geo.admin.ch — swisstopoSwiss postcodes (Amtliches Ortschaftenverzeichnis)geo.admin.ch
strompreis.elcom.admin.chElCom electricity tariffs by municipalityElCom
pxweb.bfs.admin.ch + opendata.swissBFS population statistics (STATPOP) + datasetsBFS
data.snb.chSwiss National Bank CHF exchange ratesSNB data portal
openerz.metaodi.chZurich waste collection calendar (OpenERZ)OpenERZ
srf.chSRF Swiss news headlinesSRF
data.bs.chBasel-Stadt popular vote resultsOpen Data BS
geo.admin.ch — SFOESwiss federal dam registrySFOE
geo.admin.ch — swisstopoSwiss trail closures and hiking alertsswisstopo
pxweb.bfs.admin.chBFS property prices + rent indexBFS housing
geo.admin.ch — ASTRATraffic counting stations + daily volumesASTRA
arclink.ethz.chSwiss Seismological Service earthquakes (SED/ETH)SED
measurement-api.slf.chSLF snow depth + measurements (IMIS + study plots, CC BY 4.0)SLF
data.geo.admin.chMeteoSwiss pollen concentrations (16 automatic stations, CC BY)MeteoSwiss
api3.geo.admin.chFederal map layers: search, identify, and attribute findgeo.admin API
data.geo.admin.ch STACMeteoSwiss OGD station measurements (CSV assets, CC BY)MeteoSwiss open data
ckan.opendata.swissNational open data catalogue (datasets and resources)opendata.swiss
data.sbb.chSBB station passengers, punctuality, and platform accessibilitySBB Open Data

Development

bash
# Clonegit clone https://github.com/vikramgorla/mcp-swiss.gitcd mcp-swiss
# Install depsnpm install
# Buildnpm run build
# Run in dev modenpm run dev
# Test with MCP Inspectornpx @modelcontextprotocol/inspector node dist/index.js

Testing

bash
npm test

Contributing

We welcome contributions! mcp-swiss follows a strict PR-based workflow to keep the codebase clean and CI always green.

Quick links

  • CONTRIBUTING.md — full contributor guide:

    • Development setup (clone, install, build, test)
    • Branch model (develop / main / feature branches)
    • Hard workflow rules (no direct pushes, always PRs, regular merge only)
    • Adding a new module (step-by-step with code templates)
    • Integration checklist (all files to update)
    • Code standards (TypeScript, no any, 50K response limit, zero API keys)
  • RELEASING.md — release process for maintainers:

    • Step-by-step release workflow
    • Pre-release checklist
    • Version strategy (minor for features, patch for fixes)
    • Post-release verification
    • CI/CD workflow reference (ci.yml, release.yml, beta.yml, mcp-registry.yml)

Requirements

  • Node.js 20+
  • No API keys or accounts needed
  • Optional: MCP_SWISS_TIMEOUT_MS — per-request upstream timeout in milliseconds (default 30000)

License

MIT — see LICENSE

來源:README.md,提交 c12e6e5

工具

94

search_stations

Search public transport stations/stops by name or coordinates

輸入參數xytypequery

get_connections

Train/bus connections between two locations

輸入參數to必填datefrom必填timelimitisArrivalTime

get_departures

Live departures from a station

輸入參數limitstation必填datetime

get_arrivals

Live arrivals at a station

輸入參數limitstation必填datetime

get_nearby_stations

Stations near coordinates

輸入參數x必填y必填limitdistance

get_weather

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

輸入參數station必填

list_weather_stations

List MeteoSwiss weather station codes

無需輸入參數。

get_weather_history

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

輸入參數station必填end_date必填resolutionstart_date必填

get_water_level

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

輸入參數station必填

list_hydro_stations

List BAFU hydro station IDs (rivers, lakes)

無需輸入參數。

get_water_history

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

輸入參數station必填end_date必填resolutionstart_date必填

geocode

Address or place name to WGS84 coordinates (swisstopo)

輸入參數address必填

reverse_geocode

WGS84 coordinates to address (swisstopo)

輸入參數lat必填lng必填

search_places

Search place names, localities, mountains, geographic features

輸入參數query必填

get_solar_potential

Rooftop solar potential at a location

輸入參數lat必填lng必填

identify_location

Geographic features and swisstopo data layers at a location

輸入參數lat必填lng必填layers

get_municipality

Municipality info by name

輸入參數name必填

search_companies

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

輸入參數name必填limitcantonlegal_form

get_company

Full company details by ZEFIX ehraid (from search_companies)

輸入參數ehraid必填

search_companies_by_locality

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

輸入參數namelimitlocality必填

list_cantons

List cantons with codes

無需輸入參數。

get_public_holidays

Public holidays for a year, national and cantonal

輸入參數year必填canton

get_school_holidays

School holiday periods for a year, by canton

輸入參數year必填canton

is_holiday_today

Whether today is a public holiday

輸入參數canton

search_parliament_business

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

輸入參數limitquery必填

get_parliament_members

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

輸入參數limitpartyactivecanton

get_parliament_votes

Recorded votes on a parliamentary affair (Geschäft)

輸入參數affair_id必填

get_session_schedule

Upcoming and recent federal parliament sessions

輸入參數limit

search_parliament_speeches

Debate speeches on a parliamentary affair

輸入參數limitaffair_id必填

get_politician_interests

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

輸入參數person_id必填

search_cantonal_affairs

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

輸入參數limitquerycanton必填

get_parliamentary_documents

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

輸入參數limitaffair_id必填

get_committee_meetings

Federal parliament committee meeting schedule

輸入參數limitgroup_id

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

輸入參數latlondateregionlanguage

list_avalanche_regions

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

輸入參數cantonsearch

list_air_quality_stations

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

無需輸入參數。

get_air_quality

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

輸入參數station必填

lookup_postcode

Locality, canton and coordinates for a postcode (PLZ)

輸入參數postcode必填

search_postcode

Postcodes (PLZ) for a city/locality name

輸入參數city_name必填

list_postcodes_in_canton

List postcodes (PLZ) in a canton

輸入參數canton必填

track_parcel

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

輸入參數tracking_number必填

get_electricity_tariff

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

輸入參數yearcategorymunicipality必填

compare_electricity_tariffs

Compare electricity tariffs across 2–20 municipalities

輸入參數yearcategorymunicipalities必填

search_municipality_energy

Find municipality BFS numbers for the electricity tariff tools

輸入參數name必填

get_population

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

輸入參數yearcanton

search_statistics

Search BFS datasets on opendata.swiss

輸入參數limitquery必填

get_statistic

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

輸入參數dataset_id必填

list_currencies

List currencies with SNB CHF exchange rates

無需輸入參數。

get_exchange_rate

Latest SNB monthly-average CHF exchange rate for a currency

輸入參數currency必填

get_exchange_rate_history

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

輸入參數tofromcurrency必填

get_waste_collection

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

輸入參數zip必填typelimit

list_waste_types

List waste collection types. Zurich city only (OpenERZ)

無需輸入參數。

get_waste_calendar

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

輸入參數zip必填yearmonth

get_swiss_news

Latest SRF news headlines

輸入參數limitcategory

search_swiss_news

Keyword search in current SRF headlines (all categories)

輸入參數limitquery必填

get_voting_results

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

輸入參數yearlimit

search_votes

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

輸入參數limitquery必填

get_vote_details

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

輸入參數datevote_title

search_dams

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

輸入參數query必填

get_dams_by_canton

Federally supervised dams in a canton

輸入參數limitcanton必填

get_dam_details

Full technical details of one dam by name

輸入參數name必填

get_trail_closures

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

輸入參數typelimitreason

get_trail_closures_nearby

Hiking trail closures and detours near a WGS84 point

輸入參數lat必填lon必填radius

get_property_price_index

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

輸入參數tofromtype

search_real_estate_data

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

輸入參數limitquery必填

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

輸入參數yearlimit

get_traffic_count

ASTRA traffic counting station volumes by location name

輸入參數location必填

get_traffic_by_canton

ASTRA traffic counting stations in a canton (max 20)

輸入參數canton必填

get_traffic_nearby

ASTRA traffic counting stations near a WGS84 point

輸入參數lat必填lon必填radius

get_recent_earthquakes

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

輸入參數dayslimitmin_magnitudeinclude_blasts

get_earthquake_details

Full details of one seismic event by SED event ID

輸入參數event_id必填

search_earthquakes_by_location

Earthquakes within a radius of a WGS84 point (SED)

輸入參數lat必填lon必填dayslimitradius_kmmin_magnitude

get_snow_conditions

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

輸入參數limitcantonmin_altitude

list_snow_stations

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

輸入參數typelimitcanton

get_snow_measurements

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

輸入參數typestation_code必填

get_pollen_current

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

輸入參數station必填

get_pollen_daily

Daily average pollen concentrations at a MeteoSwiss station

輸入參數daysstation必填

list_pollen_stations

List MeteoSwiss pollen stations

輸入參數canton

search_buildings

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

輸入參數limitaddress必填

get_building

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

輸入參數egid必填max_dwellings

buildings_near

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

輸入參數lat必填lon必填limitradius

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.

輸入參數limitquery必填organization

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_id必填

list_opendata_resources

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

輸入參數limitformatdataset_id必填

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.

輸入參數limitquerycantoncollection

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.

輸入參數limitstation必填collectionparametersgranularity

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).

輸入參數limitstation必填end_date必填collectionparametersstart_date必填granularity

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.

輸入參數limitownerquery

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.

輸入參數lat必填lng必填langlayer必填limittoleranceinclude_historical

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.

輸入參數layer必填limitcontainssearch_text必填search_field必填include_historical

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.

輸入參數yearlimitstation必填contains

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.

輸入參數linelimitstation必填contains

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.

輸入參數limitstation必填contains

版本歷史

4
  1. v0.9.0最新Nov 3, 2026
  2. v0.8.2Nov 1, 2026
  3. v0.8.0Nov 1, 2026
  4. v0.7.1Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分