yr-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yr-mcpWill it rain in Bergen this weekend?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| 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. |
| Minute-by-minute precipitation for the next ~90 minutes (Nowcast 2.0). Nordic region only. |
| 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 installClaude Code
claude mcp add --scope user yr -- node /path/to/yr-mcp/server.jsClaude 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_forecastwithplace: "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
Forecast data: MET Norway Locationforecast 2.0 and Nowcast 2.0, licensed under NLOD / CC BY 4.0.
Location search: Yr's location registry (
www.yr.no/api/v0/locations).
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
This server cannot be deployed
Maintenance
Related MCP Connectors
Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.
Nordic weather: forecasts, warnings, HD radar, rain nowcast, lightning, aurora, satellite AI.
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
MET Norway weather (api.met.no behind yr.no) — global forecast, sunrise, ocean
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.-
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.6Creative Commons Zero v1.0 Universal
- AlicenseNot gradedqualityCmaintenanceEnables access to MET Norway weather data including global forecasts, Nordic nowcast, sunrise/sunset times, air quality, and ocean forecasts via natural language queries.4MIT
- FlicenseAqualityCmaintenanceEnables AI assistants to retrieve current weather and forecasts for any location, with optional natural language explanations.1-