swiss-housing-mcp

v0.2.0
io.github.malkreide/swiss-housing-mcp Checked 3 days ago Published 2 months ago

Swiss Register of Buildings and Dwellings (GWR/RegBL): EGID/EWID lookup, geocoding, housing stats

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lookup_building

Look up a single building by its EGID (federal building identifier). Uses the live geo.admin.ch API — always current, no dump download needed. The EGID is the join key used across Swiss administrative data.

ParameterTypeDescription
egid *integer

address_to_egid

Geocode a Swiss address to EGID/EDID and LV95 coordinates. This is the bridge that makes other data sources EGID-capable: address in → federal building identifier out.

ParameterTypeDescription
address *string
limitinteger

lookup_dwellings

List all dwellings (EWID) of a building from the daily cantonal dump. Includes rooms, floor area, floor and status per dwelling.

ParameterTypeDescription
egid *integer
cantonstring

new_construction

New residential construction per year for a municipality (existing buildings). Returns buildings, dwellings and 4+ room dwellings per year — the 4+ room share is a proxy for family housing and thus for future pupil numbers. Municipality is identified by its BFS number (e.g. 261 = City of Zurich).

ParameterTypeDescription
municipality_bfs *integer
canton
since_yearinteger

construction_pipeline

Buildings and dwellings in the planning/construction pipeline of a municipality. Breaks down by status: projected (GSTAT 1001), approved (1002), under construction (1003). Dwellings under construction today are households in 1-3 years — the early indicator for school-space planning.

ParameterTypeDescription
municipality_bfs *integer
canton

buildings_in_bbox

Aggregate buildings/dwellings inside an LV95 bounding box. Enables sub-municipal analysis, e.g. school districts: pass the bounding box of a Schulkreis to count new construction within it. LV95 (EPSG:2056): east ~2'480'000-2'840'000, north ~1'070'000-1'300'000.

ParameterTypeDescription
e_max *number
e_min *number
n_max *number
n_min *number
cantonstring
since_year

municipality_housing_stats

Housing stock overview of a municipality: buildings, dwellings, room-size mix.

ParameterTypeDescription
municipality_bfs *integer
canton

explain_code

Decode a GWR code value (e.g. GSTAT=1004, GKAT=1020) into human-readable labels. Uses the official code table shipped with the dump (DE/FR/IT).

ParameterTypeDescription
attribute *string
code *integer
cantonstring

dump_status

Cache status of the cantonal GWR dumps (graceful-degradation entry point). Always returns an evaluable status — never silently empty records. If a source is unreachable, this tool tells you when data was last refreshed.