Data source: SMHI (Swedish Meteorological and Hydrological Institute)
https://context.gnist.ai/mcp/smhi-warnings/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
get_weather_warningsGet current SMHI weather warnings for Sweden.
Returns active weather warnings from the Swedish Meteorological and
Hydrological Institute (SMHI). Warnings cover meteorological events
(wind, snow, rain, thunder, fire risk) and hydrological events
(flooding, high water levels).
Warning levels: MESSAGE (informational), YELLOW (moderate),
ORANGE (significant), RED (extreme).
Returns:
List of warnings with severity, affected areas, and time periods.
| Parameter | Type | Required | Description |
|---|---|---|---|
warning_level | any | optional | Filter by warning level code: MESSAGE, YELLOW, ORANGE, or RED. Omit for all levels. |
event_type | any | optional | Filter by event type code: THUNDER, WIND, SNOW, RAIN, FIRE, HIGH_TEMPERATURES, etc. Omit for all types. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_weather_warnings",
"arguments": {}
}
}get_warning_metadataList available SMHI warning levels and event types.
Returns the full set of warning level codes (MESSAGE, YELLOW, ORANGE, RED)
and event type codes (THUNDER, WIND, SNOW, etc.) used in Swedish weather
warnings. Useful for understanding the classification system before
querying active warnings.
Returns:
Warning levels and event types with their descriptions.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_warning_metadata",
"arguments": {}
}
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/smhi-warnings/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
},
)
print(resp.json())