swiss-geodata-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swiss-geodata-mcp What building zone is at Seilergraben 76 in Zurich?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
β οΈ DEPRECATED β use
swisstopo-mcpinsteadThis server has been consolidated into
swisstopo-mcpand is no longer maintained. Every capability it offered now exists there, including the one it used to have exclusively β the official REFRAME coordinate conversion.Why: both servers wrapped the same
api3.geo.admin.chendpoints and overlapped in five core tools (layer search, identify, find, height, elevation profile). Maintaining two servers for one data source meant double the audits, double the CVE bumps, and an unclear choice for users. The rationale and the migration steps are documented indocs/merge-plan-swiss-geodata-mcp.md.This repository will be archived. The code below still works, but it receives no further fixes or dependency updates. See Migration below.
π¨π Part of the Swiss Public Data MCP Portfolio
πΊοΈ swiss-geodata-mcp
MCP server for Swiss federal geodata (geo.admin.ch).
Connects AI models to the federal geodata infrastructure: ~700 layers discoverable by keyword, spatial identify at any point, building zones (ARE), municipality lookup (swissBOUNDARIES3D), terrain heights and elevation profiles (swissALTI3D), and WGS84βLV95 coordinate conversion. Part of the swiss-public-data-mcp portfolio. Private project, independent of any employer or institutional affiliation.
π©πͺ Deutsche Version
Demo query (anchor example)
In which building zone is the school building at Seilergraben 76 in Zurich,
and how high above sea level is it?β geo_zoning_at(2683531, 1247914) + geo_height(2683531, 1247914) returns the harmonised ARE zone and 411 m a.s.l. β verified live 2026-07-24.
Combined with swiss-housing-mcp:
What applies at this address?β address_to_egid("Seilergraben 76 ZΓΌrich") (housing) delivers the LV95 coordinates β geo_zoning_at + geo_municipality_at (geodata) deliver zone and municipality. If the GWR is the address book, geo.admin.ch is the atlas.
Related MCP server: swiss-food-safety-mcp
Tools (9)
Tool | Description | Data source |
| Keyword search over the ~700-layer federal catalogue | geo.admin.ch SearchServer |
| What is at this LV95 point? (any layer) | geo.admin.ch MapServer identify |
| Find features on a layer by attribute value | geo.admin.ch MapServer find |
| Municipality + canton containing a point | swissBOUNDARIES3D |
| Building zone(s) at a point | ch.are.bauzonen (ARE) |
| Terrain height at a point | swissALTI3D height service |
| Elevation profile along a line | geo.admin.ch profile service |
| Queryable fields + legend (plain text) for a layer | geo.admin.ch MapServer |
| WGS84 β LV95 conversion | geodesy.geo.admin.ch reframe |
geo_search_layers is the discovery entry point that scales the whole catalogue without one tool per layer; geo_layer_info then reveals a layer's queryable fields for geo_find.
Tool annotations (MCP hints)
All tools are read-only (readOnlyHint: β
, destructiveHint: β) and query live upstream services (openWorldHint: β
). None are idempotent in the strict caching sense, as upstream data may change between calls.
Architecture decision
This server uses Architecture A (Live-API-only) β a deliberate deviation from the portfolio's dump-first default, documented per portfolio convention:
The federal geodata infrastructure spans ~700 layers and terabytes; dump-caching is neither feasible nor useful.
api3.geo.admin.chis built exactly for point/feature queries and answered every probe reliably without authentication (live probe 2026-07-24: SearchServer, identify, find, height, profile, legend, layer metadata, reframe β all HTTP 200, No-Auth).Consequence: no local cache, no TTL logic; every response carries
provenance: live_api.
Live probe findings (2026-07-24)
Endpoint | HTTP | Status | Note |
SearchServer | 200 | β works | catalogue full-text searchable |
MapServer identify (bauzonen, boundaries) | 200 | β works | tolerance 0 works for polygon layers |
height service | 200 | β works | value arrives as JSON string |
profile.json (GET + geom) | 200 | β works | COMB/DTM2/DTM25 altitudes |
MapServer | 200 | β οΈ HTML | stripped to plain text in |
reframe wgs84βlv95 | 200 | β works | coordinates arrive as JSON strings |
Miss on identify/find | 200 | β οΈ soft | empty |
Quick start
Claude Desktop
{
"mcpServers": {
"swiss-geodata": {
"command": "uvx",
"args": ["swiss-geodata-mcp"]
}
}
}Cloud / Render.com (Streamable HTTP)
SWISS_GEODATA_TRANSPORT=streamable-http PORT=8000 swiss-geodata-mcpConfiguration
Variable | Default | Purpose |
|
|
|
|
| HTTP binding (cloud transports only). Defaults to loopback; set |
No API keys β Phase 1 is authentication-free.
Example queries
School planning
Β«Which building zone applies at our planned school extension site?Β» β
geo_zoning_atΒ«Which municipality and canton is this coordinate in?Β» β
geo_municipality_at(bridges to BFS numbers used byswiss-statistics-mcpandswiss-housing-mcp)Β«How steep is the school route between these two points?Β» β
geo_elevation_profile
Layer discovery
Β«Is there federal data on noise exposure?Β» β
geo_search_layers("lΓ€rm")βgeo_layer_infoβgeo_identify
See EXAMPLES.md for use cases grouped by audience (schools, parents, general public, developers) and a tool-selection reference table.
Testing
PYTHONPATH=src pytest tests/ -m "not live" # CI-safe (respx-mocked)
PYTHONPATH=src pytest tests/ -m live # against real upstreamProject structure
swiss-geodata-mcp/
βββ src/swiss_geodata_mcp/
β βββ server.py # FastMCP tools (9, prefix geo_*)
β βββ geoadmin.py # geo.admin.ch client + retry + normalisation
β βββ models.py # Pydantic v2 envelopes (source + provenance)
β βββ __main__.py # Dual-transport entry point
βββ tests/ # respx-mocked + @pytest.mark.live
βββ .github/workflows/ # CI + OIDC PyPI publishKnown limitations
Registers live elsewhere: building/dwelling entities (EGID/EWID) belong to
swiss-housing-mcp; this server is the spatial layer (zones, boundaries, heights). Deliberate separation to avoid twin servers.The harmonised zoning layer (ch.are.bauzonen) is an ARE synthesis; legally binding is only the cantonal/communal Nutzungsplanung (noted in every
geo_zoning_atresponse).School-district polygons are municipal data (β
zurich-opendata-mcp), not federal; this server provides municipality boundaries, not Schulkreise.geo_identifyresult counts are capped upstream; area-wide aggregations are out of scope here (seebuildings_in_bboxin swiss-housing-mcp for the register case).Coordinates must be LV95; WGS84 input fails fast with a pointer to
geo_convert_coordinates.
Changelog
See CHANGELOG.md
Contributing
Contributions are welcome β see CONTRIBUTING.md for how to report bugs, suggest a new layer, or submit code.
Security
This is a read-only, no-PII, public-open-data server. See SECURITY.md for the security posture and how to report a vulnerability.
License
MIT License β see LICENSE. Data: Swiss federal geodata infrastructure (geo.admin.ch / swisstopo and publishing federal offices), open government data with attribution.
Credits & related projects
Data & services: geo.admin.ch (swisstopo), ARE, swisstopo geodesy
Portfolio siblings:
swiss-housing-mcp(register layer),swiss-statistics-mcp(statistics layer),zurich-opendata-mcp(municipal layer)
Author
malkreide Β· GitHub
Migration to swisstopo-mcp
Replace this server in your MCP client config:
// before
{ "swiss-geodata": { "command": "uvx", "args": ["swiss-geodata-mcp"] } }
// after
{ "swisstopo": { "command": "uvx", "args": ["swisstopo-mcp"] } }Tool mapping
this server |
| note |
|
| β |
|
| β |
|
| β |
|
| β |
|
| takes a coordinate string; set |
|
| the non-binding ARE caveat now travels on every result record |
|
| BFS number is named |
|
| β |
|
| same |
Two differences worth knowing
Coordinates. This server was LV95-only and rejected WGS84. swisstopo-mcp
accepts either lat/lon (WGS84) or easting/northing (LV95) on the
point-based tools β pass one pair, not both. Existing LV95 call sites keep
working; the argument names are the same.
Response shape. This server returned a JSON string (GeoEnvelope) with the
payload under result. swisstopo-mcp returns a structured ToolResponse:
records live in results (plural, always a list), with count, match_type,
source, license and a Markdown summary alongside. Code that parsed
result needs to read results.
Available Tools
9 toolsgeo_convert_coordinatesARead-only
Convert coordinates between WGS84 (lon/lat) and LV95 (geodesy.geo.admin.ch reframe).
For 'wgs84_to_lv95', easting=longitude and northing=latitude. Data source: swisstopo reframe service.
Inputs: params (required). Returns: result
geo_elevation_profileBRead-only
Elevation profile along a line between two LV95 points (geo.admin.ch profile service).
Inputs: params (required). Returns: result
geo_findARead-only
Find features on a layer by attribute value (geo.admin.ch MapServer find).
Use geo_layer_info first to see a layer's queryable fields. Data source: geo.admin.ch MapServer.
Inputs: params (required). Returns: result
geo_heightARead-only
Terrain height (m a.s.l.) at an LV95 point (swissALTI3D height service).
Inputs: params (required). Returns: result
geo_identifyARead-only
What is at this LV95 point on a given layer? (geo.admin.ch MapServer identify).
Returns the feature attributes at the point. An empty result is a soft miss (nothing at that location), not an error. Data source: geo.admin.ch MapServer.
Inputs: params (required). Returns: result
geo_layer_infoARead-only
Queryable fields and legend (plain text) for a layer (geo.admin.ch MapServer).
Reveals the fields you can pass to geo_find as search_field. Data source: geo.admin.ch MapServer.
Inputs: params (required). Returns: result
geo_municipality_atARead-only
Municipality, BFS number and canton containing an LV95 point (swissBOUNDARIES3D).
The BFS number bridges to the register and statistics servers (swiss-housing-mcp, swiss-statistics-mcp). Data source: swissBOUNDARIES3D.
Inputs: params (required). Returns: result
geo_search_layersARead-only
Keyword-search the ~700-layer federal geodata catalogue (geo.admin.ch SearchServer).
The discovery entry point: returns matching layer ids you can then pass to geo_identify, geo_find or geo_layer_info. Data source: geo.admin.ch SearchServer.
Inputs: params (required). Returns: result
geo_zoning_atBRead-only
Harmonised building zone(s) at an LV95 point (ch.are.bauzonen, ARE).
Returns the harmonised main-use zone type. Data source: ch.are.bauzonen.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 9 tools
Each tool targets a distinct operation: catalog search, point height, feature identification, attribute find, municipality lookup, zoning lookup, elevation profile, layer metadata, coordinate conversion. The geo_* prefix plus the typed suffix makes each tool's purpose unambiguous, and even the related point-lookup tools (identify, municipality, zoning) are clearly differentiated by what they return.
The geo_ prefix is consistent throughout, but the second half mixes nouns (_layer, _height, _identify, _find, _municipality_at, _zoning_at, _elevation_profile, _layer_info, _convert_coordinates). Most tools use a clear noun/action, though identifications/discovery verbs vary. Overall the pattern is predictable and readable.
9 tools is well-scoped for a swiss geodata server covering discovery, lookup, spatial analysis, and coordinate handling. Each tool handles a distinct geodata workflow and none feels redundant or extraneous.
The surface covers discovery (search_layers, layer_info), point queries (identify, height, municipality, zoning), feature search (find), geometry analysis (elevation_profile), and coordinate conversion. Minor gaps include no distance/area measurement, no bounding-box search on features, and no direct feature geometry/vector download, but the core spatial query workflows are covered without dead ends.
Maintenance
Related MCP Connectors
MCP server for Japan geodata: cadastral lot numbers (chiban) and reverse geocoding, for AI agents.
Geospatial AI MCP server β satellite imagery, embeddings, weather, GNS governance
MCP server for building and testing AI agents with multi-model experimentation and insights.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn experimental MCP server providing spatial context for LLMs by interfacing with French Geoplateforme services. It enables tasks such as geocoding, altitude lookups, and querying administrative, cadastral, or urban planning data.5 npm4MIT
- AlicenseAqualityBmaintenanceMCP server connecting AI models to Swiss Federal Food Safety and Veterinary Office open data, enabling queries about food recalls, animal disease surveillance, food control results, and more.1134 PyPIMIT
- AlicenseBqualityBmaintenanceAn MCP server providing AI-powered access to Open Data from the City of Zurich, enabling queries to 900+ datasets, real-time environmental and mobility data, geodata, parliamentary proceedings, and more.2666 PyPI9MIT
- AlicenseAqualityBmaintenanceMCP server for Swiss federal geodata -- maps, elevation, geocoding, cadastral extracts, and downloadable datasets via Swisstopo APIs.2039 PyPI12MIT