
Foehn
- 42 repo stars
- Updated July 27, 2026
- kayhendriksen/foehn
foehn is a MCP server that connects coding agents to MeteoSwiss open meteorological data via the foehn PyPI package.
About
foehn is a Model Context Protocol server that exposes Swiss meteorological open data from MeteoSwiss to AI coding assistants. Developers shipping location-aware SaaS, outdoor apps, logistics tooling, or research prototypes can register the stdio transport package from PyPI instead of hand-rolling HTTP clients and parsing conventions. Version 0.3.1 is published under the io.github.kayhendriksen/foehn registry name with a simple mcp positional launch pattern, which keeps setup approachable for Claude Code, Cursor, and similar agents. Use it when your feature needs authoritative Swiss weather or climate series inside the build loop—prompting the agent to query parameters, stations, or time ranges while you iterate on backend logic or agent workflows—not as a substitute for global commercial weather APIs or production-grade SLAs you have not validated yourself.
- Stdio MCP server (foehn 0.3.1 on PyPI) for MeteoSwiss open data
- Positional runtime argument mcp for local agent wiring
- Swiss-focused meteorological datasets for apps and automations
- Open-source repo at github.com/kayhendriksen/foehn
- Suitable for solo builders adding weather/climate context to agents
Foehn by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
claude mcp add foehn -- uvx foehnAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 42 |
|---|---|
| Package | foehn |
| Transport | STDIO |
| Auth | None |
| Last updated | July 27, 2026 |
| Repository | kayhendriksen/foehn ↗ |
What it does
Let your coding agent pull Swiss MeteoSwiss open weather and climate series while you prototype dashboards, alerts, or location-aware features.
Who is it for?
Best when you're in Switzerland or building CH-specific products and want agent-accessible MeteoSwiss data during backend and integration work.
Skip if: Skip if you need guaranteed global coverage, enterprise support contracts, or heavy production forecasting without your own reliability layer.
What you get
After you register foehn, your agent can query Swiss meteorological open data in natural language while you integrate features.
- Agent-callable access to Swiss meteorological open data
- Reduced custom HTTP client code for MeteoSwiss during build
- Reproducible local MCP launch via stdio and mcp argument
By the numbers
- Published version 0.3.1 on PyPI registryType
- Stdio transport with positional mcp runtime argument
- Data source: MeteoSwiss open meteorological data
README.md
MeteoSwiss Open Data — Python API, CLI & MCP server · tabular as DataFrames/Parquet, gridded as xarray/Zarr
foehn downloads every MeteoSwiss OGD collection via the STAC API, converts CSV/TXT station data to Parquet with Polars, and opens gridded collections — NetCDF climate grids, GRIB2 forecasts, and ODIM radar composites — as xarray Datasets or Zarr stores. It can optionally ingest everything into Databricks Unity Catalog Delta tables on a daily schedule, and ships an MCP server so LLMs can query Swiss weather data directly.
Daily weather in Bern, powered by foehn's MCP server and MeteoSwiss open data.
Why foehn?
- 20+ collections in one command — weather stations, radar, hail maps, forecasts, climate scenarios, and more
- Tabular and gridded — CSV station data as Polars DataFrames or Parquet; NetCDF, GRIB2 and ODIM radar grids as xarray Datasets or Zarr stores
- MCP server for LLMs — give your favorite LLM live access to MeteoSwiss data with the MCP server
- Significantly smaller on disk — columnar Parquet with Zstandard compression vs. raw CSVs
- Incremental by default — only re-downloads files that changed since your last run, tracked via
_last_run.json - No Spark required locally — download + conversion uses Polars only; Spark is optional for Delta ingestion
- Ships a Declarative Automation Bundle — ready-to-deploy daily job and historical backfill, no pipeline config needed
Quick start
pip install foehn
foehn download
Recent data (Jan 1 to yesterday) is downloaded and converted to Parquet under ./data/meteoswiss/.

Installation
From PyPI:
pip install foehn
From source:
git clone https://github.com/kayhendriksen/foehn
cd foehn
pip install -e .
With extras:
pip install "foehn[databricks]" # PySpark + Delta
pip install "foehn[mcp]" # MCP server
pip install "foehn[grids]" # xarray + Zarr for all gridded data (NetCDF, GRIB2, radar)
Requires Python 3.11 or later.
Python API
import foehn
df = foehn.load("smn", station="BER", frequency="d")
Load data directly into Polars DataFrames, explore metadata, download to disk, and convert to Parquet — all from Python. See the full Python API documentation.
CLI
foehn download smn pollen
foehn load smn --station BER --frequency d
The CLI mirrors the Python API with subcommands for downloading, converting, loading, and inspecting metadata. See the full CLI documentation.
Gridded data
ds = foehn.open_dataset("surface_derived_grid", match="rhiresd") # NetCDF climate grid
ds = foehn.open_dataset("forecast_icon_ch1", match="202605231500-0-t_2m-ctrl") # one GRIB2 field
ds = foehn.open_dataset("radar_precip", match="cpc2613000000") # one radar composite
foehn.to_zarr("surface_derived_grid", match="rhiresd") # Zarr store
NetCDF climate grids/normals/scenarios, GRIB2 forecasts (ICON-CH1/CH2, KENDA), and HDF5/ODIM radar composites all open as xarray Datasets instead of DataFrames. One extra covers them: pip install "foehn[grids]". See the gridded data documentation.
MCP server
{
"mcpServers": {
"foehn": {
"command": "foehn",
"args": ["mcp"]
}
}
}
Give any MCP-compatible LLM live access to MeteoSwiss data. See the full MCP server documentation.
Documentation
| Collections | All 20+ MeteoSwiss datasets, categories, and time slice conventions |
| Python API | Loading data, metadata, downloading, and Parquet conversion |
| Gridded data | NetCDF grids as xarray Datasets and Zarr stores |
| CLI | All subcommands, flags, and environment variables |
| MCP Server | Setup, configuration, and available tools |
| Databricks Pipeline | Declarative Automation Bundle deployment |
Data sources
| STAC API | https://data.geo.admin.ch/api/stac/v1 |
| Documentation | https://opendatadocs.meteoswiss.ch |
| MeteoSwiss OGD | https://github.com/MeteoSwiss/opendata |
License
MIT
Recommended MCP Servers
How it compares
Regional open-data MCP integration, not a hosted global weather API product or a planning skill.
FAQ
Who is Foehn for?
Developers and small teams whose agents need MeteoSwiss open data while coding Swiss-relevant weather or climate features.
When should I use Foehn?
Use it during Build when you are wiring integrations and want the agent to fetch Swiss meteorological series without custom scrapers.
How do I add Foehn to my agent?
Install the Foehn package from PyPI (0.3.1), configure stdio MCP with the mcp positional argument, and point your client at io.github.kayhendriksen/Foehn.