Environment
Data source: SMHI (Swedish Meteorological and Hydrological Institute)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/smhi-warnings/
3 endpoints available:
GET /rest/smhi-warnings/get_weather_warningsGET /rest/smhi-warnings/get_warning_metadataGET /rest/smhi-warnings/report_feedback
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())
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_warningsGet current SMHI weather warnings for Sweden.
| 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. |
get_warning_metadataList available SMHI warning levels and event types.
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |