# Swiss Housing MCP

> Swiss Housing MCP is an open-source MCP server for legal and government. Swiss federal building and dwelling register lookups, geocoding and housing statistics. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/malkreide/swiss-housing-mcp
- **GitHub stars:** 1
- **License:** MIT
- **MCP Registry name:** io.github.malkreide/swiss-housing-mcp
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add swiss-housing-mcp -- uvx swiss-housing-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add swiss-housing-mcp -- uvx swiss-housing-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.swiss-housing-mcp]
command = "uvx"
args = ["swiss-housing-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "swiss-housing-mcp": {
      "command": "uvx",
      "args": [
        "swiss-housing-mcp"
      ]
    }
  }
}
```

## Tools

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_building` (name suggests: reads): Looks up one building by EGID.
- `address_to_egid`: Geocodes an address to EGID and coordinates.
- `lookup_dwellings` (name 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_code` (name suggests: reads): Decodes GWR codes.
- `dump_status` (name suggests: reads): Reports cache freshness.

## 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.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [China Law MCP](https://ai-powered.com/mcp/china-law-mcp): China Law MCP is an open-source MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/swiss-housing-mcp
