wsl-envidat-mcp
Click on "Install 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., "@wsl-envidat-mcpSearch for forest inventory data in the canton of 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.
π¨π Part of the Swiss Public Data MCP Portfolio
wsl-envidat-mcp π²βοΈβ°οΈ
MCP server connecting AI models to Swiss environmental research data from WSL via EnviDat β forest, snow, avalanches, natural hazards and biodiversity, no API key required.
Phase
This server is in Phase 1: Read-only Wrapper.
Property | Status |
Read tools | β
10 tools, all |
Write tools | β none (EnviDat is read-only public data) |
Semantic Layer | β οΈ partial β three domain tools curate Solr queries |
OAuth / Auth Gateway | β not required (Public Open Data, no API key) |
Container hardening | β multi-stage Dockerfile, non-root |
Test suite | β 38 offline unit tests + 31 live integration tests |
Audit run | β 2026-05-27 (mcp-audit-skill v1.0.0) |
Phase-2 ideas (caching layer, semantic aggregation tool combining forest +
snow + hazard data into a "Lage-Γbersicht"): tracked under docs/.
Overview
The WSL (EidgenΓΆssische Forschungsanstalt fΓΌr Wald, Schnee und Landschaft / Swiss Federal Research Institute for Forest, Snow and Landscape) is one of Europe's leading environmental research institutes. Its open data platform EnviDat provides access to 1,000+ research datasets, time series of up to 130 years, and data from 6,000+ monitoring stations.
This MCP server exposes the EnviDat CKAN API as 10 tools and 2 resources, enabling AI assistants to search, filter and retrieve WSL research data by keyword, domain, or geographic bounding box β all without an API key.
Anchor demo query: "How was air quality and forest health around Schulhaus Leutschenbach in Zurich β and what does the WSL say about the current forest condition in the canton?"
Demo
Features
10 tools covering full-text search, domain-specific queries, spatial search, and curated thematic tools (avalanche, forest, natural hazards)
2 MCP resources for organizations and research domains
5 research domains: Forest Β· Biodiversity Β· Natural Hazards Β· Snow & Ice Β· Landscape
815+ datasets, time series since 1890, data from the SLF avalanche research institute
No API key required β all data publicly accessible via open licenses
Dual transport: stdio (Claude Desktop / local) + Streamable HTTP (cloud deployment)
Model-agnostic: works with Claude, GPT-4, and any MCP-compatible client
Prerequisites
Python 3.11+
piporuv/uvxInternet connection (live API calls to envidat.ch)
Installation
# Recommended: uvx (no installation needed)
uvx wsl-envidat-mcp
# Or with pip
pip install wsl-envidat-mcp
# Development
git clone https://github.com/malkreide/wsl-envidat-mcp.git
cd wsl-envidat-mcp
pip install -e ".[dev]"Quickstart
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"wsl-envidat": {
"command": "uvx",
"args": ["wsl-envidat-mcp"]
}
}
}Restart Claude Desktop, then ask:
"What WSL datasets exist on fatal avalanche accidents in Switzerland?"
"Show me forest inventory data from the LFI for the canton of Zurich."
"Which natural hazard research data does the SLF publish on EnviDat?"
"Are there WSL datasets on drought conditions in summer 2022?"
"What biodiversity data is available for alpine ecosystems?"
Configuration
No API key required. Optional environment variables:
Variable | Default | Description |
|
| Transport mode: |
|
| Bind address for |
|
| Port for Streamable HTTP mode |
Cloud Deployment (Streamable HTTP)
For use via claude.ai in the browser (e.g. on managed workstations without local software):
# Local: keep MCP_HOST at its default 127.0.0.1
MCP_TRANSPORT=streamable-http PORT=8000 python -m wsl_envidat_mcp.server
# Container: bind to all interfaces inside the container only
MCP_TRANSPORT=streamable-http MCP_HOST=0.0.0.0 PORT=8000 python -m wsl_envidat_mcp.serverπ‘ "stdio for the developer laptop, streamable-http for the browser."
β οΈ Multi-Replica Cloud Deployments: Session state lives in the server. Run a single replica or enable sticky sessions (Railway/Render setting, or
sessionAffinity: ClientIPon Kubernetes Services).
β οΈ Multi-Tenant / Unauthenticated Streamable HTTP: This server has no auth layer (
auth_model: none). Streamable HTTP without a reverse-proxy + OAuth/API-Gateway is intended only for single-user deployments (e.g. one user's claude.ai browser session). For multi-tenant use, front the server with an authenticating gateway.
Container image (recommended for cloud)
A hardened multi-stage image is published to GitHub Container Registry on
every main push and semver tag. Runs as non-root (uid=1000), no build
tools in the runtime layer, multi-arch (linux/amd64 + linux/arm64).
docker run --rm -p 8000:8000 \
--read-only --tmpfs /tmp \
--cap-drop=ALL --security-opt=no-new-privileges \
ghcr.io/malkreide/wsl-envidat-mcp:latestKubernetes hardening (excerpt):
securityContext:
runAsNonRoot: true
runAsUser: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities: { drop: ["ALL"] }Available Tools
Tool | Description |
| Unified search β combine |
| Full metadata, DOI, download URLs for a specific dataset |
| List all WSL research units on EnviDat |
| Details of a specific research unit incl. datasets |
| Browse available tags/keywords |
| Most recently updated datasets |
| SLF avalanche & snow data (incl. fatal accidents since 1936) |
| Forest data incl. National Forest Inventory (LFI) & Sanasilva |
| Natural hazard datasets (landslides, rockfall, floods) |
| Catalog overview and statistics |
Example Use Cases
Query | Tool |
"Fatal avalanche accidents in Valais since 2000?" |
|
"Forest health data for canton Zurich?" |
|
"Landslide risk datasets near Brienz?" |
|
"Most recent WSL publications on biodiversity?" |
|
"Which datasets cover the area around Lake Constance?" |
|
"How many datasets does SLF publish?" |
|
Resources
URI | Description |
| Research unit (e.g. |
| Domain overview with top datasets |
Valid domain values: wald, biodiversitaet, naturgefahren, schnee_eis, landschaft
Architecture
βββββββββββββββββββ βββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββ
β Claude / AI ββββββΆβ WSL EnviDat MCP ββββββΆβ envidat.ch β
β (MCP Host) βββββββ (MCP Server) βββββββ β
βββββββββββββββββββ β β β CKAN API (REST/JSON) β
β 10 Tools Β· 2 Resources β β Solr full-text search β
β Stdio | Streamable HTTP β β 1,000+ research datasetsβ
β β β 815+ open datasets β
β server.py β β Time series since 1890 β
β api_client.py β ββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββInfrastructure Components
Component | Metaphor | Function |
| Librarian | Handles all HTTP requests to EnviDat CKAN API |
| Reception desk | Registers all 10 tools and 2 resources with FastMCP |
Domain filters | Filing cabinet | Pre-configured keyword sets per research domain |
Bounding box search | Map overlay | Spatial filtering via lat/lon coordinates |
Project Structure
wsl-envidat-mcp/
βββ src/wsl_envidat_mcp/
β βββ __init__.py # Package
β βββ server.py # MCP server β 10 tools, 2 resources
β βββ api_client.py # HTTP client for EnviDat CKAN API
βββ tests/
β βββ test_integration.py # 11 live API integration tests
βββ .github/workflows/
β βββ ci.yml # GitHub Actions CI (Python 3.11β3.13)
βββ pyproject.toml # Project config (hatchling build backend)
βββ CHANGELOG.md
βββ CONTRIBUTING.md
βββ LICENSE # MIT
βββ README.md # This file (English)
βββ README.de.md # German versionCombination with Other MCP Servers
This server is part of the Swiss Open Data MCP Portfolio and integrates well with:
Combination | Use Case |
+ | Urban climate + forest condition around Zurich |
+ | Population data + environmental quality |
+ | Avalanche risk + public transport connections |
+ | Forest protection law + actual LFI forest condition |
+ | Compare environmental education data internationally |
Known Limitations
Solr search:
ORis treated as a stopword β use single, specific search terms per queryDomain search: Results depend on WSL's internal keyword tagging β not all datasets are tagged consistently
Spatial search: Bounding box filtering is approximate; verify coordinates with individual dataset metadata
Live API: All tools make live calls to envidat.ch β results depend on availability of the public API
Languages: Dataset metadata is primarily in English and German; some older entries may be in German only
Safety & Limits
Read-only: All tools perform HTTP GET requests only β no data is written, modified, or deleted on EnviDat.
No personal data: The API returns research metadata, dataset descriptions, and download URLs. No personally identifiable information (PII) is processed or stored by this server.
Rate limits: The EnviDat CKAN API is public without documented rate limits. Use
limitandrowsparameters conservatively. The server enforces a 30-second timeout per request.Data freshness: All tools make live API calls β results reflect the current state of the EnviDat catalog at query time. No caching is performed by this server.
Terms of service: Data is subject to the EnviDat Terms of Use. Individual datasets are published under various open licenses (Creative Commons, CC0) β see dataset metadata.
No guarantees: This is a community project, not affiliated with WSL or EnviDat. Availability depends on the upstream EnviDat API.
Testing
# Unit tests β offline, no network access, all CKAN responses mocked via respx
PYTHONPATH=src pytest -m "not live"
# Live integration tests β actual HTTP calls to envidat.ch
PYTHONPATH=src pytest -m live
# Linting
ruff check src/
ruff format --check src/CI runs the offline suite on every PR. The live suite runs only on main
pushes and manual workflow_dispatch triggers, so build status is not
coupled to upstream availability.
Changelog
See CHANGELOG.md
Contributing
See CONTRIBUTING.md
License
MIT License β see LICENSE
Data on EnviDat is published under various open licenses (Creative Commons, CC0) β see individual dataset metadata.
Author
Hayal Oezkan Β· malkreide
Credits & Related Projects
Data: EnviDat β WSL Swiss Federal Research Institute for Forest, Snow and Landscape
Protocol: Model Context Protocol β Anthropic / Linux Foundation
Portfolio: Swiss Public Data MCP Portfolio
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/wsl-envidat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server