GnistAI GnistAI
Log in

Electricity Maps

Real-time energy grid data — carbon intensity, generation mix, and power breakdown by zone.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Environment

Data source: Electricity Maps

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/electricity-maps/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-electricity-maps": {
      "url": "https://context.gnist.ai/mcp/electricity-maps/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/electricity-maps/" \
  -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_carbon_intensity", "arguments": {"zone": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/electricity-maps/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/electricity-maps/get_carbon_intensity?zone=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/electricity-maps/get_carbon_intensity",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "zone": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc electricity-maps

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_carbon_intensity
Get the carbon intensity of electricity production for a grid zone.
ParameterTypeRequiredDescription
zonestringrequiredElectricity Maps zone code (e.g. "NO", "DE", "FR", "GB", "US-CAL-CISO"). See https://app.electricitymaps.com for a full list of zone codes.
datetimeanyoptionalOptional ISO 8601 datetime string to look up historical intensity. If omitted, returns the latest available value. Historical data covers approximately the past 24 hours.
get_grid_mix
Get the current electricity production breakdown by energy source for a grid zone.
ParameterTypeRequiredDescription
zonestringrequiredElectricity Maps zone code (e.g. "NO", "DE", "FR", "GB", "US-CAL-CISO").
forecast_intensity
Get predicted carbon intensity for a grid zone over the coming hours.
ParameterTypeRequiredDescription
zonestringrequiredElectricity Maps zone code (e.g. "NO", "DE", "FR", "GB", "US-CAL-CISO").
hours_aheadintegeroptionalHow many hours of forecast to return (1–48, default 24). (default: 24)
find_greenest_region
Compare carbon intensity across multiple grid zones and rank them by greenness.
ParameterTypeRequiredDescription
zoneslist[string]requiredList of Electricity Maps zone codes to compare (e.g. ["NO", "SE", "FI", "DE", "FR"]).
window_hoursintegeroptionalAveraging window in hours (1 = current value, default 1). Values > 1 average over recent history for a smoother signal. (default: 1)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related