Skip to main content
Glama

yr-mcp

An MCP server for weather data from Yr / MET Norway — the Norwegian Meteorological Institute's free, open weather API.

Ask your AI assistant things like "Will it rain in Bergen this weekend?" or "Do I need an umbrella in the next hour?" and it can answer with real forecast data. Forecasts work worldwide; minute-by-minute precipitation nowcasts cover the Nordic region.

No API key required.

Tools

Tool

Description

get_forecast

Weather forecast (Locationforecast 2.0): hour-by-hour temperature, wind, precipitation and weather symbol, plus a daily summary for the full ~10-day forecast period. Takes a place name or coordinates. Works globally.

get_nowcast

Minute-by-minute precipitation for the next ~90 minutes (Nowcast 2.0). Nordic region only.

search_location

Search Yr's location registry. Returns name, region, coordinates, elevation and time zone — useful for disambiguating place names.

get_forecast and get_nowcast accept either a place name (the top search hit is used) or explicit lat/lon coordinates. Times are converted to the location's local time zone.

Related MCP server: Weather MCP Server

Installation

Requires Node.js 18 or newer.

git clone https://github.com/fredrsat/yr-mcp.git
cd yr-mcp
npm install

Claude Code

claude mcp add --scope user yr -- node /path/to/yr-mcp/server.js

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "yr": {
      "command": "node",
      "args": ["/path/to/yr-mcp/server.js"]
    }
  }
}

Any other MCP client that supports stdio transport works the same way: run node server.js and speak MCP over stdin/stdout.

Example

User: Will it rain in Trondheim tomorrow?

The assistant calls get_forecast with place: "Trondheim" and answers from the daily summary:

Dagsoversikt:
2026-09-12  12.2–13.8°C  nedbør 7.8 mm  vind opptil 8.9 m/s  cloudy
...

Data sources and terms of use

The server follows MET's terms of service: it sends an identifying User-Agent header and truncates coordinates to four decimals. If you fork this project, please change the USER_AGENT constant in server.js to identify your own deployment.

Weather data © MET Norway.

License

MIT

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
    -
  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.
    6
    Creative Commons Zero v1.0 Universal
  • 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.
    4
    MIT