Skip to main content
ClaudeWave

Download MeteoSwiss Open Government Data — weather stations, radar, hail, forecasts and climate series — via Python API, CLI, or MCP server, as DataFrames, Parquet, xarray Datasets or Zarr stores

MCP ServersOfficial Registry42 stars1 forksPythonMITUpdated today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
Last scanned: 6/11/2026
Install in Claude Code / Claude Desktop
Method: pip / Python · foehn
Claude Code CLI
claude mcp add foehn -- python -m foehn
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "foehn": {
      "command": "python",
      "args": ["-m", "foehn"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install foehn
Use cases

MCP Servers overview

<h1 align="center">
  <img src="https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/banner.svg" alt="foehn" width="600">
</h1>

<p align="center">
  <strong>MeteoSwiss Open Data — Python API, CLI & MCP server · tabular as DataFrames/Parquet, gridded as xarray/Zarr</strong>
</p>

<p align="center">
  <a href="https://pypi.org/project/foehn/">
    <img src="https://img.shields.io/pypi/v/foehn.svg" alt="PyPI Latest Release">
  </a>
  <a href="https://pypi.org/project/foehn/">
    <img src="https://img.shields.io/pypi/pyversions/foehn.svg" alt="Python Versions">
  </a>
  <a href="https://github.com/kayhendriksen/foehn/blob/main/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License">
  </a>
  <a href="https://scorecard.dev/viewer/?uri=github.com/kayhendriksen/foehn">
    <img src="https://api.scorecard.dev/projects/github.com/kayhendriksen/foehn/badge" alt="OpenSSF Scorecard">
  </a>
  <a href="https://pypi.org/project/foehn/">
    <img src="https://img.shields.io/pypi/dm/foehn.svg" alt="Monthly Downloads">
  </a>
</p>

---

foehn downloads every [MeteoSwiss OGD](https://github.com/MeteoSwiss/opendata) collection via the STAC API, converts CSV/TXT station data to Parquet with [Polars](https://pola.rs), and opens gridded collections — NetCDF climate grids, GRIB2 forecasts, and ODIM radar composites — as [xarray](https://xarray.dev) Datasets or [Zarr](https://zarr.dev) stores. It can optionally ingest everything into [Databricks](https://www.databricks.com) Unity Catalog Delta tables on a daily schedule, and ships an [MCP server](https://modelcontextprotocol.io) so LLMs can query Swiss weather data directly.

<p align="center">
  <img src="https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/mcp_demo.png" alt="Daily weather in Bern, powered by foehn" width="700">
</p>
<p align="center">
  <em>Daily weather in Bern, powered by foehn's MCP server and MeteoSwiss open data.</em>
</p>

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

```bash
pip install foehn
foehn download
```

Recent data (Jan 1 to yesterday) is downloaded and converted to Parquet under `./data/meteoswiss/`.

<img src="https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/cli_demo.gif" alt="foehn CLI demo" width="800">

---

## Installation

**From PyPI:**
```bash
pip install foehn
```

**From source:**
```bash
git clone https://github.com/kayhendriksen/foehn
cd foehn
pip install -e .
```

**With extras:**
```bash
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

```python
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](docs/python-api.md).

---

## CLI

```bash
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](docs/cli.md).

---

## Gridded data

```python
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](docs/grids.md).

---

## MCP server

```json
{
  "mcpServers": {
    "foehn": {
      "command": "foehn",
      "args": ["mcp"]
    }
  }
}
```

Give any MCP-compatible LLM live access to MeteoSwiss data. See the [full MCP server documentation](docs/mcp-server.md).

---

## Documentation

| | |
|---|---|
| [Collections](docs/collections.md) | All 20+ MeteoSwiss datasets, categories, and time slice conventions |
| [Python API](docs/python-api.md) | Loading data, metadata, downloading, and Parquet conversion |
| [Gridded data](docs/grids.md) | NetCDF grids as xarray Datasets and Zarr stores |
| [CLI](docs/cli.md) | All subcommands, flags, and environment variables |
| [MCP Server](docs/mcp-server.md) | Setup, configuration, and available tools |
| [Databricks Pipeline](docs/databricks.md) | 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

<!-- mcp-name: io.github.kayhendriksen/foehn -->
climatedatabricksmeteoswissopen-dataparquetpolarspythonweatherxarrayzarr

What people ask about foehn

What is kayhendriksen/foehn?

+

kayhendriksen/foehn is mcp servers for the Claude AI ecosystem. Download MeteoSwiss Open Government Data — weather stations, radar, hail, forecasts and climate series — via Python API, CLI, or MCP server, as DataFrames, Parquet, xarray Datasets or Zarr stores It has 42 GitHub stars and was last updated today.

How do I install foehn?

+

You can install foehn by cloning the repository (https://github.com/kayhendriksen/foehn) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is kayhendriksen/foehn safe to use?

+

Our security agent has analyzed kayhendriksen/foehn and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains kayhendriksen/foehn?

+

kayhendriksen/foehn is maintained by kayhendriksen. The last recorded GitHub activity is from today, with 0 open issues.

Are there alternatives to foehn?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy foehn to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: kayhendriksen/foehn
[![Featured on ClaudeWave](https://claudewave.com/api/badge/kayhendriksen-foehn)](https://claudewave.com/repo/kayhendriksen-foehn)
<a href="https://claudewave.com/repo/kayhendriksen-foehn"><img src="https://claudewave.com/api/badge/kayhendriksen-foehn" alt="Featured on ClaudeWave: kayhendriksen/foehn" width="320" height="64" /></a>

More MCP Servers

foehn alternatives