Electricity Maps MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Electricity Maps MCP or direct API to check carbon intensity, compare electricity mixes, track renewable energy, and view day-ahead prices through natural language.

Electricity Maps logoElectricity Maps
Api Key

Electricity Maps is a data service for grid carbon intensity, power mix, and energy market data. It helps teams track emissions, renewable energy, power flows, and prices by zone.

49 Tools

Try Electricity Maps now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Electricity Maps
Try asking
TOOLS

Supported Tools

Every Electricity Maps action and event your agent gets out of the box.

Get Carbon Intensity Forecast

Get a grid-average or fossil-only carbon intensity forecast for a zone.

Get Carbon Intensity History

Get the last 24 hours of grid-average or fossil-only carbon intensity for a zone.

Get Carbon Intensity Latest

Get the latest grid-average or fossil-only carbon intensity for a zone.

Get Carbon Intensity Past

Get grid-average or fossil-only carbon intensity for a zone at a given datetime.

Get Carbon Intensity Past Range

Get grid-average or fossil-only carbon intensity for a zone over a datetime range.

Get Electricity Flows Forecast

Get the electricity flows forecast for a zone.

Get Electricity Flows History

Get the last 24 hours of electricity flows for a zone.

Get Electricity Flows Latest

Get the latest electricity flows for a zone.

Get Electricity Flows Past

Get the electricity flows for a zone at a given datetime.

Get Electricity Flows Past Range

Get the electricity flows for a zone and a given datetime range.

Get Electricity Mix Forecast

Get the electricity mix forecast for a zone.

Get Electricity Mix History

Get the last 24 hours of electricity mix for a zone.

Get Electricity Mix Latest

Get the latest electricity mix for a zone.

Get Electricity Mix Past

Get the electricity mix for a zone at a given datetime.

Get Electricity Mix Past Range

Get the electricity mix for a zone and a given datetime range.

Get Electricity Source Forecast

Get forecasted electricity generation values for the selected source_type in a zone.

Get Electricity Source History

Get the last 24 hours of electricity generation values for the selected source_type in a zone.

Get Electricity Source Latest

Get the latest electricity generation values for the selected source_type in a zone.

Get Electricity Source Past

Get electricity generation values for the selected source_type in a zone at a given datetime.

Get Electricity Source Past Range

Get electricity generation values for the selected source_type in a zone over a given datetime range.

Get Energy Share Forecast

Get the carbon-free or renewable electricity share forecast for a zone.

Get Energy Share History

Get the last 24 hours of carbon-free or renewable electricity share for a zone.

Get Energy Share Latest

Get the latest carbon-free or renewable electricity share for a zone.

Get Energy Share Past

Get the carbon-free or renewable electricity share at a given datetime.

Get Energy Share Past Range

Get carbon-free or renewable electricity share values over a datetime range.

Get Grid Level Forecast

Get forecasted carbon-intensity, carbon-free-percentage, or renewable-percentage grid levels.

Get Grid Level Latest

Get the latest carbon-intensity, carbon-free-percentage, or renewable-percentage grid level.

Get Grid Level Past

Get a carbon-intensity, carbon-free-percentage, or renewable-percentage grid level for an exact past hourly bucket.

Get Grid Level Past Range

Get carbon-intensity, carbon-free-percentage, or renewable-percentage grid levels over an hourly range of at most 10 days.

Get Load Forecast

Get a net, total, or total-reported electricity load forecast.

Get Load History

Get the last 24 hours of net, total, or total-reported load.

Get Load Latest

Get the latest net, total, or total-reported electricity load value.

Get Load Past

Get net, total, or total-reported load at a given datetime.

Get Load Past Range

Get net, total, or total-reported load over a datetime range.

Get Day-Ahead Locational Marginal Price Actual

Get actual day-ahead locational marginal prices for a pricing node and datetime range.

Get Day-Ahead Locational Marginal Price History

Get the last 24 hours of day-ahead locational marginal prices for a pricing node.

Get Day-Ahead Locational Marginal Price Latest

Get the latest day-ahead locational marginal price for a pricing node.

Get Day-Ahead Locational Marginal Price Past

Get the day-ahead locational marginal price for a pricing node at a given datetime.

Get Day-Ahead Locational Marginal Price Past Range

Get day-ahead locational marginal prices for a pricing node and past datetime range of at most 10 days.

Get Day-Ahead Price Actual

Get settled and published day-ahead prices for a zone and datetime range.

Get Day-Ahead Price Combined

Get both actual and forecasted day-ahead prices for a zone in a single response.

Get Day-Ahead Price Forecast

Get the day-ahead price forecast for a zone.

Get Day-Ahead Price History

Get the last 24 hours of day-ahead price for a zone.

Get Day-Ahead Price Latest

Get the latest day-ahead price for a zone.

Get Day-Ahead Price Past

Get the day-ahead price for a zone at a given datetime.

Get Day-Ahead Price Past Range

Get the day-ahead price for a zone and a given datetime range.

Get Zone

Get metadata for a single Electricity Maps zone.

List Updates Since

List data points for a zone that have been updated since a given datetime.

List Zones

List all commercially available Electricity Maps zones.

SETUP GUIDE

Connect Electricity Maps MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["electricity_maps"],
  mcp: true,
});
Create a session scoped to Electricity Maps and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Check the current carbon intensity and electricity mix in California.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Electricity Maps request
SETUP GUIDE

Connect Electricity Maps API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["electricity_maps"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Electricity Maps
3

Run Electricity Maps tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Check the current carbon intensity and electricity mix in California." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Electricity Maps tool calls through the session, and print the final answer

Why Use Composio?

AI Native Electricity Maps Integration

  • Supports both Electricity Maps MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, comparing, and querying grid data by zone

Secure API Key Auth

  • Connect Electricity Maps with your API key through a secure credential flow
  • Central place to manage, scope, and revoke Electricity Maps access
  • Keep API keys out of prompts, source code, and agent responses

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Clear schemas help agents select the right Electricity Maps endpoint and zone parameters
  • Comprehensive execution logs show what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC lets you control which agents and users can access Electricity Maps
  • Scoped access helps limit agents to the grid data they need
  • Full audit trails support review and compliance for energy data workflows

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Electricity Maps.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Electricity Maps tool your agent needs.Free to start.

Start building