GnistAI GnistAI
Log in

SMHI Weather Warnings (Sweden)

Swedish weather warnings from SMHI — impact-based warnings for meteorological and hydrological events including wind, snow, rain, thunder, fire risk, flooding, and high sea levels.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Environment

Data source: SMHI (Swedish Meteorological and Hydrological Institute)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/smhi-warnings/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-smhi-warnings": {
      "url": "https://context.gnist.ai/mcp/smhi-warnings/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/smhi-warnings/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/smhi-warnings/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/smhi-warnings/report_feedback?feedback=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/smhi-warnings/report_feedback",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "feedback": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc smhi-warnings

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

get_weather_warnings
Get current SMHI weather warnings for Sweden.
ParameterTypeRequiredDescription
warning_levelanyoptionalFilter by warning level code: MESSAGE, YELLOW, ORANGE, or RED. Omit for all levels.
event_typeanyoptionalFilter by event type code: THUNDER, WIND, SNOW, RAIN, FIRE, HIGH_TEMPERATURES, etc. Omit for all types.
get_warning_metadata
List available SMHI warning levels and event types.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related