Swiss Register of Buildings and Dwellings (GWR/RegBL): EGID/EWID lookup, geocoding, housing stats
MCPpedia last refreshed this data
io.github.malkreide/swiss-housing-mcp is an MCP server that swiss Register of Buildings and Dwellings (GWR/RegBL): EGID/EWID lookup, geocoding, housing stats. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 59/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"swiss-housing": {
"args": [
"swiss-housing-mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'swiss-housing-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked swiss-housing-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in maps
18 Google Maps tools for AI agents — geocode, search, directions, weather, and more.
A Model Context Protocol (MCP) server implementation that connects Large Language Models (LLMs) to GIS operations using GIS libraries, enabling AI assistants to perform geospatial operations and transformations.
MCP server from Kynth Studios — eleven read-only lookups over live public data: AI model pricing and routing, dependency maintenance, service pricing and stack cost, agent skills and configs, shadcn component registries, starter-kit grades, AI app-builder App Store readiness, ADA Title II reports, nonprofit good-standing. No key, no signup.
Multi-city flight routing intelligence — plan RTW trips, validate alliances, get carrier picks.
MCP Security Weekly
Get CVE alerts and security updates for io.github.malkreide/swiss-housing-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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
«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.
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.
address_to_egid is the plug that makes other data sources EGID-capable: address in, federal identifier and LV95 coordinates out.
This server uses Architecture B (Hybrid: Dump-first, API-fallback).
Rationale (verified live on 2026-07-24):
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)./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:
SWISS_HOUSING_DUMP_TTL_HOURS).source (attribution) and provenance (daily_dump | live_api | cached).| Endpoint | HTTP | Status | Note |
|---|---|---|---|
api3.geo.admin.ch …/find (EGID lookup) | 200 | ✅ works | full attribute set, no auth |
api3.geo.admin.ch …/identify (coordinates) | 200 | ✅ works | 77 attributes incl. EGID/EWID |
…/SearchServer (address → EGID) | 200 | ✅ works | featureId = {EGID}_{EDID}; axis swap: y=east, x=north |
public.madd.bfs.admin.ch/zh.zip | 200 | ✅ works | 121 MB, daily refresh, contains data.sqlite |
madd.bfs.admin.ch/api/buildings/{egid} | 404 | ❌ excluded | path/auth unclear |
| Invalid EGID on find | 200 | ⚠️ soft error | empty results array — not an HTTP error |
lookup_building(egid) — single building by federal identifier (live API)address_to_egid(address) — geocode any Swiss address to EGID/EDID + LV95lookup_dwellings(egid) — all dwellings of a bui