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 one tool so far, weather_now(place?). With no place it answers for home. A place is a name in Norway, as spoken: "Bergen", or "Moen i Agder" when a name is shared. 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.

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. 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]

options:
  -h, --help     show this help message and exit
  --config FILE  the config file, if not the usual one

Related MCP server: MCP-server-weather

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
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.
      301 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
      49 npm
      MIT