Repository avatar
Other Tools
v0.2.1
active

electricity-price-forecast

eu.energypriceforecast/electricity-price-forecast

Electricity price and grid CO2 forecasts for 37 European bidding zones, free for private use.

Documentation

Energy Price Forecast EU – MCP server

A remote Model Context Protocol server that gives AI assistants (Claude, ChatGPT, Cursor, VS Code, Claude Code and any other MCP client) electricity price and grid CO2 forecasts for 37 European bidding zones.

Ask your assistant "I need 30 kWh for my car. Should I charge tonight or wait until tomorrow night?" and it answers with real numbers: published day-ahead prices where they are licensed, our forecast for the hours nobody has published yet, and the measured accuracy of that forecast.

https://api.energypriceforecast.eu/mcp
  • Streamable HTTP, stateless, no account and no sign-in
  • Free for private use: price forecast up to 48 hours, CO2 up to 120 hours
  • With a Private Pro key: price forecast up to 120 hours
  • Every value is labelled as published price (day_ahead) or forecast
  • Listed in the official MCP Registry as eu.energypriceforecast/electricity-price-forecast

The server is hosted by Energy Price Forecast EU; there is nothing to install. This repository holds the documentation and the registry entry (server.json).

Set it up

Claude (claude.ai and the desktop app): Settings → Connectors → add a custom connector with the address above. No authentication.

ChatGPT: turn on developer mode (Settings → Apps & Connectors → Advanced), then create a connector with the address above and no authentication.

Claude Code:

claude mcp add --transport http energypriceforecast https://api.energypriceforecast.eu/mcp

Cursor, VS Code and other clients (mcp.json):

{
  "servers": {
    "energypriceforecast": {
      "type": "http",
      "url": "https://api.energypriceforecast.eu/mcp"
    }
  }
}

Menu names in the assistants change from time to time; the current steps are at energypriceforecast.eu/en/mcp-server (Deutsch).

120 hours with a Private Pro key

Send the key as a header on the connection, never inside a chat message:

claude mcp add --transport http energypriceforecast https://api.energypriceforecast.eu/mcp \
  --header "Authorization: Bearer YOUR_KEY"

X-API-Key: YOUR_KEY works as well. Clients that let you set headers (Claude Code, Cursor, VS Code) support this; the custom connectors in claude.ai and ChatGPT currently use the free horizon.

Tools

ToolWhat it returns
list_zonesThe 37 zones with currency, whether published day-ahead prices are passed on (otherwise forecast only, for licence reasons) and CO2 availability.
get_price_forecastHourly or quarter-hourly prices, each marked day_ahead or forecast, with a hint where a price spike is possible.
find_cheapest_windowThe cheapest block of N hours in the coming hours or before a deadline, plus the greenest and a combined price/CO2 block and the 30-day hit rate of this pick. With energy_kwh it adds the cost and the saving against charging straight away.
compare_charging_daysCharge now or wait? Compares the cheapest window of the next 24 hours with the following days and only advises waiting when the gap is larger than the measured forecast error. Also returns how often waiting a day actually paid off over the last 30 days.
get_co2_forecastGrid CO2 intensity (gCO2e/kWh, consumption-based, life-cycle factors) hour by hour, up to 120 hours.
get_forecast_qualityHow accurate the forecast for a zone was over the last 30 days, measured against the prices published afterwards.

All tools are read-only.

Zones: DE, NL, BE, FR, AT, CH, CZ, PL, SK, HU, SI, HR, RO, BG, GR, ES, PT, FI, GB, DK1, DK2, NO1–NO5, SE1–SE4 and the Italian zones ITN, IT_CNOR, IT_CSUD, IT_SUD, IT_CALA, IT_SICI, IT_SARD.

Example questions

  • "I need to charge 4 hours before 7 am tomorrow. When is it cheapest in Germany?"
  • "When is the power in France greenest tomorrow?"
  • "Is tomorrow or the day after cheaper for running the heat pump in SE3?"
  • "How reliable is the forecast for NO2?"

What the numbers mean

  • Prices are wholesale base prices without grid fees, taxes or VAT, in the market currency per kWh. A cheap hour only saves money with a dynamic (hourly) electricity contract.
  • Forecast hours can still change; published day-ahead hours are fixed.
  • Forecast accuracy is measured openly for every zone, including where it is weak: energypriceforecast.eu/en/forecast-quality.

Rules and limits

  • Free use is private and non-commercial, also through an AI assistant. The assistant may repeat the values with the source "Energy Price Forecast EU (energypriceforecast.eu)".
  • Building the server into your own products or assistants for others needs a separate agreement: API for business.
  • Without a key, requests are limited per minute; a key counts against its 500 calls per day.
  • Full terms (German): API-Nutzungsbedingungen. Data sources and their licences: energypriceforecast.eu/data-sources/en.

The same data is available as a plain REST API (OpenAPI), in the Home Assistant integration and the ioBroker adapter.

Protocol details

  • Transport: Streamable HTTP, JSON responses, no SSE stream, no session (POST only; a plain GET returns a short description).
  • Protocol versions: 2025-11-25, 2025-06-18, 2025-03-26.
  • Tool results carry structuredContent plus a text copy.

Feedback

Issues and ideas are welcome in this repository's issue tracker.

The documentation in this repository is MIT licensed. The forecast data is subject to the terms above.

No installation packages available.