Swiss Housing MCP
Swiss federal building and dwelling register lookups, geocoding and housing statistics
The repository was last updated 13 days ago and is published under MIT.
Swiss Housing MCP is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- GitHub stars
- 1
- Last commit
- Language
- Python
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add swiss-housing-mcp -- uvx swiss-housing-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"swiss-housing-mcp": {
"command": "uvx",
"args": [
"swiss-housing-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"swiss-housing-mcp": {
"command": "uvx",
"args": [
"swiss-housing-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"swiss-housing-mcp": {
"command": "uvx",
"args": [
"swiss-housing-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"swiss-housing-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"swiss-housing-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add swiss-housing-mcp -- uvx swiss-housing-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.swiss-housing-mcp]
command = "uvx"
args = ["swiss-housing-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"swiss-housing-mcp": {
"command": "uvx",
"args": [
"swiss-housing-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Or run: gemini mcp add -s user swiss-housing-mcp uvx -- swiss-housing-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "swiss-housing-mcp": { "command": "uvx", "args": [ "swiss-housing-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Swiss Housing MCP
The Swiss Federal Register of Buildings and Dwellings (GWR/RegBL) uses EGID for buildings and EWID for dwellings as join keys across public data. This server exposes it: building lookups, address geocoding, per-municipality construction statistics, bounding-box analysis and the construction pipeline.
It uses a hybrid design. Cantonal dumps from the federal data service are cached on disk for 24 hours and queried as read-only SQL for aggregations, while single lookups and geocoding call api3.geo.admin.ch live. Every response carries a source and a provenance of daily_dump, live_api or cached. The README's example reports 16,164 new dwellings in the City of Zurich since 2020 and 7,287 under construction, as checked on 2026-07-24.
A Zurich dump needs about 130 MB of disk. No API keys are needed.
Tools this server provides (9)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 4 of 9 tools read data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- lookup_buildingName suggests: reads
- Looks up one building by EGID.
- address_to_egid
- Geocodes an address to EGID and coordinates.
- lookup_dwellingsName suggests: reads
- Lists dwellings of a building.
- new_construction
- Yearly new construction for a municipality.
- construction_pipeline
- Projected, approved and under construction counts.
- buildings_in_bbox
- Sub-municipal bounding-box analysis.
- municipality_housing_stats
- Housing stock and room-size mix.
- explain_codeName suggests: reads
- Decodes GWR codes.
- dump_statusName suggests: reads
- Reports cache freshness.
What it does
- Building lookup
- Find a building by EGID.
- Address to EGID
- Geocode a Swiss address with LV95 coordinates.
- Dwellings
- Rooms, area and floor for a building.
- New construction
- Yearly figures with the 4+ room share.
- Construction pipeline
- Projected, approved and under construction.
- Provenance
- Each response names its source and data path.
Good for
- Count new dwellings in a municipality
- Estimate future school demand from construction
- Join a building ID to other Swiss data
- Analyse housing in a map bounding box
Pricing
Open source
MIT licensed
Swiss Housing MCP FAQ
Do I need an API key?
No.
How fresh is the data?
Dumps refresh daily and are cached for 24 hours by default.
What does Swiss Housing MCP require?
Python 3.10+ and about 130 MB per cantonal dump.
Licence?
MIT.
Is Swiss Housing MCP free?
Yes. Swiss Housing MCP is open source, so you can use and self-host it for free.
How do I add Swiss Housing MCP to Claude Code?
Run this command in your terminal: claude mcp add swiss-housing-mcp -- uvx swiss-housing-mcp
What are the best alternatives to Swiss Housing MCP?
The closest alternatives to Swiss Housing MCP are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

