Environment
Data source: DMI (Danish Meteorological Institute)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/dmi-warnings/
claude_desktop_config.json
{
"mcpServers": {
"gnist-dmi-warnings": {
"url": "https://context.gnist.ai/mcp/dmi-warnings/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/dmi-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/dmi-warnings/
3 endpoints available:
GET /rest/dmi-warnings/get_weather_warningsGET /rest/dmi-warnings/get_warning_causesGET /rest/dmi-warnings/report_feedback
Shell
curl "https://context.gnist.ai/rest/dmi-warnings/report_feedback?feedback=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/dmi-warnings/report_feedback",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"feedback": "example"
},
)
print(resp.json())
Command Line
Command
gc dmi-warnings
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
get_weather_warningsGet current DMI weather warnings for Denmark.
| Parameter | Type | Required | Description |
|---|---|---|---|
severity | any | optional | Filter by minimum warning type: 1=Low, 2=Moderate, 3=Severe, 4=Dangerous. Omit for all levels. |
cause | any | optional | Filter by warning cause code: regn, vind, sne, konvektion, isslag, tage, temperatur, forvand. Omit for all types. |
get_warning_causesList DMI warning cause types and severity levels.
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") |