Skip to main content
Glama

weather-mcp

The weather in Norway by voice, from MET Norway's open data, as an MCP server and an optional claude-voice plugin.

It gives a voice session five tools. weather_now(place?, lat?, lon?, accuracy_m?) says the weather right now, and from MET's radar whether rain is coming in the next two hours. weather_forecast(day?, place?, lat?, lon?, accuracy_m?) says one day, up to about nine days ahead: the temperature range, rain, wind, and the sky in the morning, at midday and in the evening. weather_week(until?, place?, lat?, lon?, accuracy_m?) says the coming days, five from tomorrow or up to until, one short line a day, then the wettest and the driest. weather_hours(from_time, to_time?, place?, day?, lat?, lon?, accuracy_m?) says one clock hour, or the hours between two: "at 15", "from 14 to 18" or "tomorrow between 8 and 12". weather_detail(what, day?, from_time?, to_time?, place?, lat?, lon?, accuracy_m?) says one detail beyond the basics, as Yr's app shows it: the UV index on a clear sky, humidity, dew point, fog, or the wind with its gusts and direction. It says the value and the time it is for, now if no time is given, and a range or a peak over a span. It also says sunrise and sunset, the moon's phase, and moonrise and moonset, for a day, from MET's sunrise service; in the polar night the sun "does not rise".

A day is said as the owner says it, in Norwegian or English: "i morgen", "fredag", "on Friday", "neste fredag", "20.11" or "20. november". A time is "15", "15:00", "15.00", "kl. 15" or "3 pm"; a bare hour is on a 24-hour clock, and the answer says it back. The plugin works the date out itself, from today in Oslo. Beyond the first two and a half days MET gives six-hour blocks, so a range there starts with "about". The first four read the same forecast from MET, so asking them all asks once; weather_detail reads MET's complete forecast, which carries the details, or its sunrise service. A place is a name in Norway, as spoken: "Bergen", or "Moen i Agder" when a name is shared. The voice sends the phone's position, so "the weather here" is where you are. A named place comes first, then the position, then home. The answer is one short sentence to read aloud.

Data from MET Norway (NLOD 2.0 and CC BY 4.0), and place names from Kartverket (CC BY 4.0).

MET's terms of service ask a person to read and accept them before use. The owner of this repository accepted them on 2026-11-14. Anyone running their own copy must read and accept them too.

Set up

MET refuses requests that do not say who is asking. So the config must name a contact, and there is no default. The server refuses to start without one. Use your own fork's URL or your own website, not this one. Write ~/.config/weather-mcp/config.toml:

contact = "https://github.com/roykollensvendsen/weather-mcp"

[home]              # optional; rounded to 2 decimals, about 1 km
name = "<the name you say>"
lat = 0.00
lon = 0.00

Home stays in that file. It is never in this repository, its tests or its logs. The phone's position is never logged or written anywhere. It is rounded like home before MET is asked, and kept in memory only.

Forecasts are kept in ~/.cache/weather-mcp/forecasts.json, so a restart never asks MET again too early. Only you can read it. It holds each point asked about, rounded, home included, but never the phone's position. A place whose forecast expired over a day ago is dropped, except home. Delete the file at any time; it is rebuilt.

Then start the server for a voice session:

$ weather-mcp serve --help
usage: weather-mcp serve [-h] [--config FILE] [--simulate]

options:
  -h, --help     show this help message and exit
  --config FILE  the config file, if not the usual one
  --simulate     use made-up weather and places; touches no network

To try the tools by voice without MET, Kartverket or a config, serve with --simulate. The weather and the one place, Testheim, are made up, and every answer starts "Simulated:".

Related MCP server: mcp-met-no

The gates

Every one of these runs in continuous integration, and all of them run here:

$ uv run ruff check .
All checks passed!
uv run ruff format --check .   # layout
uv run mypy src                # types
python scripts/private_data_scan.py --tracked --history   # nothing private, ever
uv run pytest -q               # behaviour
python scripts/mutate.py       # that each rule's own test can fail

CONTRIBUTING.md says what each one is for, and decisions/ records the choices that shaped them, including how a change is made here.

Licence

GPL-3.0-or-later. See LICENSE.

Available Tools

1 tool
weather_nowA
Read-only

The weather right now. 'place' is a place in Norway as the owner said it, such as 'Bergen' or 'Moen i Agder'; omit it for home. Data from MET Norway and Kartverket.

Inputs: place. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of confusing it with another. Its purpose (current weather for a Norwegian place) is clearly stated.

    Naming Consistency5/5

    With a single tool, there is no convention to violate; 'weather_now' is lowercase snake_case and reads clearly. Consistency would only become an issue if more tools were added.

    Tool Count3/5

    One tool is very thin for a weather server — the surface is a single query. It earns its place, but a lone tool makes the server borderline under-scoped rather than well-scoped.

    Completeness2/5

    Only current conditions are available; there is no forecast (hourly/daily), no historical data, and no way to resolve or search places beyond passing a free-text name. These are significant gaps that will cause agent failures for common weather requests like 'will it rain tomorrow?'.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLM-friendly weather tools and Norwegian place name resolution via MCP, enabling weather forecasts, air quality, marine conditions, and activity planning.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables access to MET Norway weather data including global forecasts, Nordic nowcast, sunrise/sunset times, air quality, and ocean forecasts via natural language queries.
      59 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables natural-language access to MET Norway weather forecasts, including hourly forecasts worldwide and place-name geocoding, via MCP tools.
      8
      36 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to retrieve global hourly weather forecasts, Nordic minute-by-minute precipitation nowcasts, and location search results using place names or coordinates.
      MIT