Swiss Housing MCP server
Swiss Register of Buildings and Dwellings (GWR/RegBL): EGID/EWID lookup, geocoding, housing stats
1 stars35 downloads/wk
Reviews
Write oneNobody has reviewed Swiss Housing yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Swiss Housing tools (9)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
address_to_egidGeocode a Swiss address to EGID/EDID and LV95 coordinates.
buildings_in_bboxAggregate buildings/dwellings inside an LV95 bounding box.
construction_pipelineBuildings and dwellings in the planning/construction pipeline of a municipality.
dump_statusCache status of the cantonal GWR dumps (graceful-degradation entry point).
explain_codeDecode a GWR code value (e.g. GSTAT=1004, GKAT=1020) into human-readable labels.
lookup_buildingLook up a single building by its EGID (federal building identifier).
lookup_dwellingsList all dwellings (EWID) of a building from the daily cantonal dump.
municipality_housing_statsHousing stock overview of a municipality: buildings, dwellings, room-size mix.
new_constructionNew residential construction per year for a municipality (existing buildings).
Public scan report
scanner v0.1.10 · 2026-10-14 · same rubric, same numbers if you re-run it
- Code scan13 source files scanned15/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 18 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (2)
- mediumsubprocess with shell=True
exec.shell-trueswiss_housing_mcp-0.2.0/audits/2026-07-26T094901-Z-swiss-housing-mcp/verification-results.json: … "grep for os.system|subprocess|shell=True|eval(|exec(|os.popen across src/ — no m…
- mediumeval / new Function used
exec.evalswiss_housing_mcp-0.2.0/audits/2026-07-26T094901-Z-swiss-housing-mcp/verification-results.json: …rep for os.system|subprocess|shell=True|eval(|exec(|os.popen across src/ — no matches…
How Swiss Housing compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 77/100
- higher than 50% of 48,255 servers
- Tools
- 9
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
- Downloads a week
- 35
- more than 25% of 12,191 servers with a package
What its tools let an agent do: 7 read · 2 create
Release history: 2 versions in the registry since 2026-07-27, latest 2026-09-19, typically one every 54 days.
Install Swiss Housing in Claude Code, Cursor or VS Code
claude mcp add swiss-housing-mcp -- uvx swiss-housing-mcp
What the publisher says
From the Swiss Housing repository's README, as published. We do not edit it. Read it on GitHub
swiss-housing-mcp
Part of the Swiss Public Data MCP Portfolio — open-source MCP servers connecting AI agents to Swiss public data. Private project, independent of any employer or institutional affiliation.
MCP server for the Swiss Federal Register of Buildings and Dwellings (GWR/RegBL) — buildings, dwellings, and the construction pipeline
🇩🇪 Deutsche Version
🎯 Anchor Demo Query
«How many dwellings were newly built in the City of Zurich since 2020, how many with 4+ rooms — and how many are currently under construction?»
Verified against the live dump on 2026-07-24: 16'164 new dwellings since 2020 (27.4% with 4+ rooms — the family-housing proxy), and 7'287 dwellings currently under construction. Dwellings under construction today are households in 1–3 years: the early indicator for school-space planning.
Demo
Overview
The GWR/RegBL is to buildings what Zefix is to companies: not one data source among many, but the federal register whose identifiers (EGID for buildings, EWID for dwellings) serve as join keys across Swiss administrative data. This server exposes the register's public extract through MCP tools — building lookups, address geocoding, per-municipality construction statistics, sub-municipal bounding-box analysis, and the planning/construction pipeline.
addresstoegid is the plug that makes other data sources EGID-capable: address in, federal identifier and LV95 coordinates out.
Architecture decision
This server uses Architecture B (Hybrid: Dump-first, API-fallback).
Rationale (verified live on 2026-07-24):
- The public cantonal dump (public.madd.bfs.admin.ch/{canton}.zip) is refreshed daily (~05:30 CET) and ships a ready-made data.sqlite with tables building (399'830 rows for ZH), entrance, dwelling (894'631 rows for ZH), and code. No CSV parsing, no auth.
- api3.geo.admin.ch (find / identify / SearchServer) works reliably without authentication for single-entity lookups and geocoding, but does not scale to area-wide aggregations (result limits).
- A MADD REST endpoint probed at /api/buildings/{egid} returned 404; it is excluded until path and auth status are clarified — no blocker, since all Phase-1 tools work without it.
Consequences:
- Cantonal dumps are cached on disk with a 24 h TTL (configurable via SWISSHOUSINGDUMPTTLHOURS).
- Aggregations and spatial queries run as read-only SQL against the cached SQLite; single lookups and geocoding hit the live API.
- Every response carries source (attribution) and provenance (dailydump | liveapi | cached).
Live probe findings (2026-07-24)
Features
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Swiss Housing: common questions
- Is Swiss Housing MCP server safe?
- Mostly: it is graded B (77/100). Read the Swiss Housing safety report
- How do I install Swiss Housing?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Swiss Housing need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Swiss Housing maintained?
- The last commit was 39 days ago (2026-09-26). The latest release is v0.2.0.
- How does Swiss Housing compare with other MCP servers?
- safety score 77/100 (higher than 50% of 48,255 servers); tools 9 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.