API & MCP
Everything a person can do on Energy Grid Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://energygridexplorer.usefulweb.site/api/v1/calculate– run Energy Grid ExplorerGET https://energygridexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Energy Grid Explorer
Pulls public net electricity generation per source, load, cross-border physical flows and day-ahead prices from the Energy-Charts API by Fraunhofer ISE for a country and date range, then computes energy per source, renewable share, peak and minimum load, net imports per neighbour and price statistics. Paste saved Energy-Charts JSON to analyse offline.
| Field | Type | Default | Description |
|---|---|---|---|
source | select (live, pasted) | "live" | Data source |
country | select (de, at, be, bg, ch, cy, cz, dk, ee, es, fi, fr, gr, hr, hu, ie, it, lt, lu, lv, nl, no, pl, pt, ro, se, si, sk, uk, ba, ge, md, me, mk, rs, ua, xk, eu) | "de" | Country |
startDate | date | — | From (local date). Default: yesterday. Energy-Charts interprets dates in Central European time. |
endDate | date | — | To (local date, inclusive). Max 31 days per request. |
includePrices | boolean | true | Day-ahead prices |
includeFlows | boolean | true | Cross-border physical flows |
pastedPower | textarea | — | Pasted /public_power JSON |
pastedPrice | textarea | — | Pasted /price JSON (optional) |
pastedFlows | textarea | — | Pasted /cbpf JSON (optional) |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://energygridexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
energy_grid_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=energy-grid-explorer
{
"mcpServers": {
"energy-grid-explorer": { "type": "http", "url": "https://energygridexplorer.usefulweb.site/mcp" }
}
}