Environment
Data source: NVE (Norwegian Water Resources and Energy Directorate)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nve-flood/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nve-flood": {
"url": "https://context.gnist.ai/mcp/nve-flood/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/nve-flood/" \
-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": "get_region_details", "arguments": {"county_id": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/nve-flood/
4 endpoints available:
GET /rest/nve-flood/get_county_overviewGET /rest/nve-flood/get_region_detailsGET /rest/nve-flood/get_flood_warningsGET /rest/nve-flood/report_feedback
Shell
curl "https://context.gnist.ai/rest/nve-flood/get_region_details?county_id=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nve-flood/get_region_details",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"county_id": "example"
},
)
print(resp.json())
Command Line
Command
gc nve-flood
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
get_county_overviewGet current flood warning levels for all Norwegian counties.
get_region_detailsGet municipalities and active warnings for a Norwegian county.
| Parameter | Type | Required | Description |
|---|---|---|---|
county_id | string | required | Norwegian county ID (e.g. '03' for Oslo, '46' for Vestland, '50' for Trøndelag). |
get_flood_warningsGet flood warnings for Norway, optionally filtered by county or municipality.
| Parameter | Type | Required | Description |
|---|---|---|---|
county_id | any | optional | Filter by county ID (e.g. '46' for Vestland). Omit for all of Norway. |
municipality_id | any | optional | Filter by municipality ID (e.g. '0301' for Oslo). Overrides county_id if set. |
start_date | any | optional | Start date in YYYY-MM-DD format. Defaults to today. |
end_date | any | optional | End date in YYYY-MM-DD format. Defaults to 3 days from today. |
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") |