
Swiss Geodata Mcp
io.github.malkreide由 GitHub 帳號 malkreide 發布v0.1.1更新於 Oct 24, 2026
Swiss federal geodata (geo.admin.ch): layers, spatial identify, zoning, heights, LV95 conversion
概覽
已棄用的 MCP 伺服器,讓助理以唯讀方式存取瑞士聯邦地理資料(geo.admin.ch):圖層檢索、空間辨識、建築分區、高程與 LV95 座標轉換。
- 可以做什麼
- 以關鍵字檢索約 700 個聯邦圖層目錄,並查看圖層的可查詢欄位與圖例
- 在任一圖層的 LV95 座標點上辨識地物,或依屬性值尋找圖層要素
- 查詢某點所屬的市鎮與邦,以及該點的建築分區
- 取得某點的地形高程,以及沿線的海拔剖面
- 透過官方 REFRAME 服務在 WGS84 與 LV95 之間轉換座標
- 適用情境
- 適合回答與瑞士地點相關的問題:某基地適用哪種分區、某座標屬於哪個市鎮、某條路線的高程或坡度,或某主題是否有聯邦資料。請注意 README 已將其標示為棄用,建議改用涵蓋相同能力的後繼伺服器。
- 執行需求
- 以 Python 套件形式在本機執行,透過 uvx 啟動(需 Python 工具鏈)。不需 API 金鑰或帳號,但需連網存取公開的 geo.admin.ch 服務。選用環境變數 SWISS_GEODATA_TRANSPORT、HOST、PORT 可切換為 HTTP 傳輸。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Swiss Geodata Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
⚠️ 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
[CI] [PyPI] [Python] [License: MIT] [swiss-public-data-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.
Demo query (anchor example)
→ 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:
→ 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.
Tools (9)
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)
Quick start
Claude Desktop
Cloud / Render.com (Streamable HTTP)
Configuration
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
Project structure
Known 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:
Tool mapping
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.
來源:README.md,提交 aca8dbe
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分