smhi-mcp-server
This server provides access to Swedish Meteorological and Hydrological Institute (SMHI) weather data for Sweden, Norway, Finland, Denmark, Estonia, and parts of Latvia/Lithuania.
Get Full Forecast: Retrieve a complete ~10-day weather forecast with all detailed parameters.
Get Current Weather: Obtain current conditions including temperature (°C), humidity (%), wind speed (m/s), pressure (hPa), visibility (km), cloud cover (%), precipitation (mm), and a weather description.
Get Hourly Forecast: Access an hourly forecast for the next 1–48 hours (default 24h) with temperature, wind, precipitation, and conditions.
Get Daily Summary: Receive a daily summary for up to 10 days (default 7) with high/low temperatures, dominant weather, precipitation totals, and max wind speed.
Get Fire Risk: Check wildfire/forest fire risk using the Canadian FWI system, available as daily (~6 days) or hourly (48h) periods.
Get Radar Image: Retrieve the latest Swedish precipitation radar composite image (updated ~5 min) for real-time precipitation over Sweden.
Click on "Install 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., "@smhi-mcp-serverWhat's the current weather in Stockholm?"
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.
SMHI MCP Server
MCP server for Swedish Meteorological and Hydrological Institute (SMHI) weather data, built on SMHI's current snow1g point-forecast API.
SMHI retired its older
pmp3gforecast API on 2026-03-31 in favor ofsnow1g. This project is a fresh implementation against the current API.
Features
get_forecast - Full ~10-day forecast with all parameters
get_current_weather - Current conditions (temperature, wind, precipitation)
get_hourly_forecast - Next 1-48 hours hourly
get_daily_summary - Daily high/low for up to 10 days
get_fire_risk - Wildfire/forest fire risk forecast (Canadian FWI system)
get_radar_image - Latest observed precipitation radar composite for Sweden
Related MCP server: mcp-norwegian-weather
Coverage
Sweden, Norway, Finland, Denmark, Estonia, and parts of Latvia/Lithuania. get_radar_image is Sweden-only.
Installation
Claude Code
Add to your Claude Code settings (~/.claude/settings.json):
{
"mcpServers": {
"smhi": {
"command": "node",
"args": ["/path/to/smhi-mcp-server/dist/index.js"]
}
}
}Build from source
npm install
npm run buildUsage Examples
Get current weather in Stockholm
Tool: get_current_weather
Input: { "latitude": 59.3293, "longitude": 18.0686 }Get weekly forecast for Gothenburg
Tool: get_daily_summary
Input: { "latitude": 57.7089, "longitude": 11.9746, "days": 7 }Check if it will rain in Oslo
Tool: get_hourly_forecast
Input: { "latitude": 59.9139, "longitude": 10.7522, "hours": 12 }Check wildfire risk near Norrköping
Tool: get_fire_risk
Input: { "latitude": 58.5877, "longitude": 16.1924, "period": "daily" }See what's actually raining right now
Tool: get_radar_image
Input: {}API Reference
get_forecast
Get complete ~10-day forecast with all SMHI parameters.
Parameter | Type | Required | Description |
latitude | number | Yes | -90 to 90 |
longitude | number | Yes | -180 to 180 |
get_current_weather
Get current weather conditions.
Parameter | Type | Required | Description |
latitude | number | Yes | -90 to 90 |
longitude | number | Yes | -180 to 180 |
Returns: temperature (°C), humidity (%), wind (m/s), pressure (hPa), visibility (km), cloud cover (%), precipitation (mm), weather description.
get_hourly_forecast
Get hourly forecast.
Parameter | Type | Required | Default | Description |
latitude | number | Yes | - | -90 to 90 |
longitude | number | Yes | - | -180 to 180 |
hours | number | No | 24 | 1-48 |
get_daily_summary
Get daily weather summary.
Parameter | Type | Required | Default | Description |
latitude | number | Yes | - | -90 to 90 |
longitude | number | Yes | - | -180 to 180 |
days | number | No | 7 | 1-10 |
Returns: date, high/low temperature (°C), dominant weather, precipitation sum (mm), max wind speed (m/s).
get_fire_risk
Get wildfire/forest fire risk forecast, based on the Canadian Fire Weather Index (FWI) system as run by SMHI (fwif1g API). Calibrated for Swedish forest and grass fuels.
Parameter | Type | Required | Default | Description |
latitude | number | Yes | - | -90 to 90 |
longitude | number | Yes | - | -180 to 180 |
period | string | No | daily |
|
Returns per time step: fire risk class (1-6) and description, the underlying FWI/ISI/BUI/FFMC/DMC/DC indices (unitless), grass fire risk class, forest dryness class (daily only), temperature (°C)/wind (m/s)/humidity (%), and multi-day precipitation sums (mm).
get_radar_image
Get the latest Swedish precipitation radar composite (mosaic of all Swedish radar stations, SMHI's radar comp product), updated roughly every 5 minutes. Unlike the forecast tools above, this reflects observed precipitation happening right now rather than a prediction.
No input parameters.
Returns the radar image (PNG) plus area, product, and validTime/updated timestamps. Coverage: Sweden only.
Development
npm install
npm run typecheck
npm test
npm run buildData Source
Data provided by SMHI Open Data under CC BY 4.0.
License
MIT
Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that aggregates data from six weather sources to provide current conditions, forecasts, air quality, and aviation METAR information, specifically optimized for European and Nordic locations. It supports multi-source data merging and functions without API keys for several integrated providers.Last updated17MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides current weather conditions and hourly forecasts for locations across Norway using the MET Norway Locationforecast 2.0 API. It features coordinate support, geocoding for any Norwegian location, and built-in configurations for major cities.Last updated214MIT
- Alicense-qualityDmaintenanceMCP Server for global weather, forecasts, air quality, and climate data using Open-Meteo, no API key required.Last updatedMIT
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
MCP server for Statistics Sweden (SCB) - 1200+ tables with population, economy, environment data
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LittleAndi/smhi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server