Skip to main content

Swiss Weather MCP Server

Logo PyPI License Release Tests

An MCP server that gives AI applications weather information for places across Switzerland:

  • Forecasts for today and the next 8 days: temperature, rain, sunshine, wind, clouds and freezing level
  • Measurements from about 160 MeteoSwiss and 200 SLF mountain stations: now, on past days, and where in Switzerland it is warmest, coldest, windiest, wettest or sunniest
  • Snow and avalanches: snow depth, new snow and the SLF avalanche bulletin
  • Sun and Moon: rise and set times, civil twilight and the Moon's phase

Not an official product of MeteoSwiss, SLF or swisstopo. See Data Sources.

Answers pass through an AI model and can be wrong. Use them at your own risk, without liability. Before going into the mountains, check the official avalanche bulletin and the MeteoSwiss forecast.

Demo

https://github.com/user-attachments/assets/0379b24c-48ef-4634-a0a2-09923324c27b

Quick Start

The server runs with uv, so install it first.

Then add this to your AI app's MCP config file:

{
  "mcpServers": {
    "swiss-weather": {
      "command": "uvx",
      "args": ["swiss-weather-mcp@latest"]
    }
  }
}

uvx downloads the server on first use, and @latest makes it check for a new release on each start. If your app cannot find uvx, replace uvx with the full path that which uvx prints. If the file already has content, add only the "swiss-weather" entry inside its "mcpServers".

In Claude Desktop and Claude Code

Instead of the config file, install the plugin.

Claude Desktop: download the desktop extension, double-click it and select Install. Or go to Customize > Plugins > Add > Add marketplace, enter cuolm/claude-plugins and add Swiss Weather.

Claude Code:

claude plugin marketplace add cuolm/claude-plugins
claude plugin install swiss-weather-mcp@cuolm

In Pi

pi mcp add swiss-weather --exposure direct -- uvx swiss-weather-mcp@latest

Setup in AI Apps shows the setup in Pi + llama.cpp, Claude Desktop and Unsloth Desktop step by step, with videos.

Installation

Install the server once with uv, instead of having uvx start it, as in Quick Start:

uv tool install swiss-weather-mcp

Over stdio

Your AI app starts the server itself. Add this to its MCP config file:

{
  "mcpServers": {
    "swiss-weather": {
      "command": "swiss-weather-mcp"
    }
  }
}

If your app cannot find swiss-weather-mcp, use the full path that which swiss-weather-mcp prints.

Over Streamable HTTP

The server runs on its own, and your AI app connects to it by URL. Start it with:

swiss-weather-mcp --transport=streamable-http --host=localhost --port=8050

The server has no login, so anyone who can reach its port can use it. Keep it on your own computer with --host=localhost, as above.

Then add its URL to your AI app's MCP config file:

{
  "mcpServers": {
    "swiss-weather": {
      "url": "http://localhost:8050/mcp/"
    }
  }
}

To use another port, change 8050 in --port and in the URL. --help lists all flags. Cache and Downloads explains where the server keeps its files and what --cache-all-forecast-points does.

With Docker

The image runs the server over streamable HTTP and needs no uv:

docker run -p 127.0.0.1:8050:8050 ghcr.io/cuolm/swiss-weather-mcp:latest

Then add its URL to your AI app's MCP config file:

{
  "mcpServers": {
    "swiss-weather": {
      "url": "http://localhost:8050/mcp/"
    }
  }
}

To use another port, change the first 8050 in -p and the one in the URL, for example when Docker says address already in use because another program already uses 8050.

The 127.0.0.1 in -p keeps the server on your computer. Without it, Docker opens the port to your whole network, and anyone there could use the server, as it has no login.

The Docker images are built and published automatically by GitHub Actions to the project's GitHub Container Registry, tagged :latest (newest release) and by version. Each docker run starts a new container with an empty cache. Mount a volume to keep it, for example -v swiss-weather-cache:/home/app/.cache/swiss-weather-mcp.

Available Tools

Times are Swiss local time (see Times). Every tool with a location also takes an optional near, needed only when several places share the name (see Locations). Answers name the forecast point when it is not next to the place (see Forecast Points).

Tool Answer
forecast_daily(location, start_date, days) 1 to 9 days: lowest and highest temperature, rain, weather with an emoji
forecast_rain(location, start, end) Chance and amount of rain, and the weather, in 3-hour blocks
forecast_temperature(location, start, end) Temperature and its likely range, hour by hour or for one hour
forecast_sunshine(location, start, end) Hours of sunshine over a period, or in one hour
forecast_wind(location, when) Mean speed, gusts and direction
forecast_cloud_cover(location, when) Total cloud cover and its low, medium and high layers
forecast_freezing_level(location, when) Height of the 0 °C line
measurements_current(location) What a station near the place measures now (see Measurements)
measurements_history(location, start_date, days, values) 1 to 366 past days: lowest, mean and highest temperature, rain, sunshine, strongest gust, snow depth and new snow
measurements_snow(location) Snow depth now, and new snow of the last 24 hours and 3 days (see Measurements)
measurements_extremes(extreme) Where it is warmest, coldest, windiest, wettest or sunniest now, or where the snow is deepest (deepest_snow) or most new snow fell (most_new_snow)
avalanche_bulletin(location) SLF avalanche bulletin valid now: danger level, avalanche problems and texts (see Avalanche Bulletin)
astronomy_sun(location, date) Sunrise, sunset and civil twilight
astronomy_moon(location, date) Moonrise, moonset, phase and how much is lit
current_date_and_time() Today's weekday and the Swiss time now

Details

  • Setup in AI Apps: Pi + llama.cpp, Claude Desktop and Unsloth Desktop, step by step
  • How It Works: times, places, forecast points, each tool in detail, forecast medians, cache and downloads
  • Development: running from source, the test client with a demo video, and the project structure

Data Sources

The server does not collect or share personal data. It only downloads the public data listed above from MeteoSwiss, SLF and swisstopo, and writes its logs only where it runs.

Support

Questions and bugs: GitHub Issues.

License

Licensed under the Apache License 2.0.

Metadata

Release files for swiss-weather-mcp 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swiss-weather-mcp 0.6.0
File Size Uploaded Provenance Actions
swiss_weather_mcp-0.6.0.tar.gz 168.2 kB With provenance Details for swiss_weather_mcp-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swiss-weather-mcp 0.6.0
File Interpreter ABI Platform Actions
swiss_weather_mcp-0.6.0-py3-none-any.whl Python 3 none any Details for swiss_weather_mcp-0.6.0-py3-none-any.whl

Total release size: 296.4 kB

Release files / swiss_weather_mcp-0.6.0.tar.gz

Download URL swiss_weather_mcp-0.6.0.tar.gz
Size 168.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4a6385443eaf2d47de6c743155f69558d5169c1b63354f022de26bed40874b9d
BLAKE2b-256 checksum
How to use checksums
f17ed6ff8a6b11ab8a87b81b1d02231807818a965287e5882fca24201c428348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / swiss_weather_mcp-0.6.0-py3-none-any.whl

Download URL swiss_weather_mcp-0.6.0-py3-none-any.whl
Size 128.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28f51d8a8b4db370651335b1bdbc2a3582553e284b968bcbb6395f3d4eaaa77c
BLAKE2b-256 checksum
How to use checksums
29df1c45f2f6d6fcb4c67a11a1246ddedea13eca75e5bbffc5d80352f6328c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for swiss-weather-mcp 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for swiss_weather_mcp-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page