bfs_compare_cantons
Cross-cantonal comparison for any table and any variable
How to use it
Project documentation lists bfs_compare_cantons for the Swiss Statistics MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Swiss Statistics MCP
python -m swiss_statistics_mcp.serverOther tools in Swiss Statistics MCP (19)
opendata.swiss dataset Schweizerischer Baupreisindex (Multibasen) → DAM XLSX asset
Browse the catalogue: all 21 themes (no themecode), or all tables in a theme (e.g. themecode="15" = Education and Science)
New buildings & dwellings per commune (yearly), incl. dwelling room-size mix
Building investment & Arbeitsvorrat (leading indicator) by region/canton/commune
Convenience tool: teachers, pupils, demographic scenarios, scholarships
Curated list of highly relevant datasets (focus on education and demographics)
Data retrieval with optional filters by dimensions and values
Variables, values and metadata for a specific table
Resident population by canton, year, age structure or sex
Construction price index (Baupreisindex, parsed series) / residential property price index (IMPI, source links)
Full-text search across the entire data catalogue (682 datasets)
opendata.swiss dataset Schweizerischer Wohnimmobilienpreisindex (IMPI) → DAM PDF/HTML assets
List all communes of a canton as of a given date
Resolve a commune by name or BFS number as of a given date (canton, validity, LINDAS URI)
Bauinvestitionen und Arbeitsvorrat nach Grossregion/Kanton/Gemeinde
Neu erstellte Wohnungen nach Gemeinde, Anzahl Zimmer
Neu erstellte Gebäude mit Wohnungen nach Gemeinde, Gebäudetyp
Map a historical BFS number onto today's number(s) — re-key old statistics across fusions
Search long-run time series in Historical Statistics of Switzerland (HSSO)