MCP server · Claude, ChatGPT, Cursor, VS Code
Electricity price forecasts in your AI assistant
Ask your assistant “When should I charge my car tonight in DK1?” and it answers with real numbers: published day-ahead prices, our forecast for the hours nobody has published yet, and grid CO2 for 37 European bidding zones.
Server address: https://api.energypriceforecast.eu/mcp
- no account and no key needed: price forecast up to 48 hours, CO2 up to 120 hours
- with a Private Pro key: price forecast up to 120 hours
- every hour is labelled as published price or forecast
What the assistant can look up
| Tool | What it returns |
|---|---|
list_zones | The 37 zones with currency, whether published prices are passed on (otherwise forecast only, for licence reasons) and CO2 availability. |
get_price_forecast | Hourly or quarter-hourly prices, each marked day_ahead (published) or forecast, with a hint where a price spike is possible. |
find_cheapest_window | The cheapest block of N hours in the coming hours or before a deadline, plus the greenest and a combined price/CO2 block, and how often this pick hit the real cheapest block over the last 30 days. Give the energy in kWh and it adds the cost and the saving against charging straight away. |
compare_charging_days | Charge 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 says how often waiting a day actually paid off over the last 30 days. |
get_co2_forecast | Grid CO2 intensity (gCO2e/kWh, consumption-based) hour by hour, up to 120 hours. |
get_forecast_quality | How accurate the forecast for a zone was over the last 30 days, measured against the prices published afterwards. |
Prices are wholesale base prices without grid fees, taxes or VAT. A cheap hour only saves money with a dynamic electricity contract.
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?”
- “I need 30 kWh for my car. Should I charge tonight or wait until tomorrow night, and how much would I save?”
- “How reliable is the forecast for NO2?”
Set it up
Claude (claude.ai and the desktop app)
Under Settings → Connectors, add a custom connector with the address https://api.energypriceforecast.eu/mcp. No sign-in is needed.
ChatGPT
Turn on developer mode in the settings (Apps & Connectors → Advanced), then create a connector with the same address and no authentication.
Claude Code
claude mcp add --transport http energypriceforecast https://api.energypriceforecast.eu/mcp
Cursor, VS Code and other clients
{
"servers": {
"energypriceforecast": {
"type": "http",
"url": "https://api.energypriceforecast.eu/mcp"
}
}
}
Menu names in the assistants change from time to time. The server speaks MCP over Streamable HTTP and needs no session. It is listed in the official MCP Registry as eu.energypriceforecast/electricity-price-forecast; documentation and issues on GitHub.
Send your personal key as a header on the connection: Authorization: Bearer YOUR_KEY (or X-API-Key). The key is never a question to the assistant, so it does not end up in your chat history. Clients that let you set headers, such as Claude Code, Cursor and VS Code, support this; the custom connectors in claude.ai and ChatGPT currently use the free horizon.
claude mcp add --transport http energypriceforecast https://api.energypriceforecast.eu/mcp --header "Authorization: Bearer YOUR_KEY"
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. The same data is also available as a plain REST API.