mcp-edf
v0.3.0Model Context Protocol server for EDF Suivi Conso: daily electricity and gas consumption, costs and contracts
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
edf_auth_status EDF: Auth Status
Whether the server is signed in to EDF, which home it reads (the login picks the account, and an account can hold several homes), when the 20-minute login runs out and how it is renewed, and where it is stored. Signed out, returns the steps to sign in. Call this first when a data tool answers signedIn: false. Like any tool call, it may renew a lapsed login silently through Safari (a background tab that closes itself).
edf_auth_login EDF: Login
Sign in to EDF. On macOS this opens the EDF login in a Safari tab and catches the one-time code when EDF redirects back: if Safari is already signed in to EDF it completes in a second or two with nothing to do; otherwise Safari comes forward and the user logs in as usual. The first run triggers macOS's 'allow to control Safari' prompt. Waits up to wait_seconds, then keeps listening in the background for 5 minutes: call edf_auth_status afterwards. Elsewhere, pass redirect_url instead (see that argument). Logging in again replaces the stored login. An EDF login lasts 20 minutes; after that the s…
| Parameter | Type | Description |
|---|---|---|
redirect_url | string | Manual fallback, without Safari automation: the full address the browser landed on after logging in, https://suiviconso.edf.fr/openid?code=…&state=…. The Suivi Conso page uses and erases the code… |
wait_seconds | integer | How long to wait for the login before returning. Defaults to 90 (MCP calls time out near 120). |
edf_auth_logout EDF: Logout
Revoke the stored access token at EDF (best effort) and delete it locally, which also ends silent renewal: no Safari tab opens until the next edf_auth_login. It does not sign Safari out of EDF. Recoverable by calling edf_auth_login again.
edf_get_contracts EDF: Contracts
The home's EDF contracts. Electricity: the tariff option (BASE, HPHC for peak/off-peak, TEMPO…), the subscribed power in kVA and EDF's tariff code, as a history of versions, since EDF writes a new one at every price or option change; `current` is the one in force. For options with off-peak hours, the meter's calendar (e.g. "HC 01:30-07:00"). Gas: tariff code, consumption option and price zone, or null with no gas contract. Call it to learn the option before reading costs by tariff heading.
edf_get_electricity_consumption EDF: Electricity Consumption
Electricity used per day or per month, in kWh and in euros, from the Linky meter via EDF Suivi Conso. Each row has the total cost, the daily share of the subscription (standing_charge_eur), and, on a peak/off-peak or Tempo contract, the split by tariff heading. `total` sums the range and gives the average price per kWh. Costs are EDF's own estimate at the contract's prices, taxes included; they track the bill closely but are not the invoice. Rows flagged `nature` other than REAL are estimates. Use step=month for anything over a few months: a year of days is ~25 kB.
| Parameter | Type | Description |
|---|---|---|
from * | string | First day, inclusive, as YYYY-MM-DD in Paris time, e.g. 2026-10-01. |
step | string | day: one row per day (at most 400 days). month: one row per calendar month (at most ~3 years). |
to | string | Last day, INCLUSIVE, as YYYY-MM-DD, e.g. 2026-10-31. Defaults to yesterday: the meters report once a day, and a day's figures usually land the next morning around 08:00. |
edf_get_electricity_load_curve EDF: Electricity Load Curve
The Linky load curve: energy per 30 minutes (or per hour) as compact rows of [start, kWh, average kW], with the range total and the peak interval. Use it to see when power is drawn (night vs day, a heater, a car charging); use edf_get_electricity_consumption for daily or monthly totals and costs. Paris local times. At most 7 days at 30m, 31 days at 1h, since a single day is 48 rows. The curve only exists if load-curve collection is switched on for the meter (it is on Suivi Conso's hourly view).
| Parameter | Type | Description |
|---|---|---|
from * | string | First day, inclusive, as YYYY-MM-DD in Paris time, e.g. 2026-10-01. |
resolution | string | 30m: the meter's native step (at most 7 days). 1h: hourly sums (at most 31 days). |
to | string | Last day, INCLUSIVE, as YYYY-MM-DD, e.g. 2026-10-31. Defaults to yesterday: the meters report once a day, and a day's figures usually land the next morning around 08:00. |
edf_get_electricity_max_power EDF: Electricity Max Power
The highest power drawn each day, in kVA, as [date, max_kva] rows, with the range maximum and the subscribed power of the current contract to compare against. Use it to decide whether the subscription (e.g. 6, 9, 12 kVA) is too high or close to tripping. The meter's history goes back years; this filters it to the range asked.
| Parameter | Type | Description |
|---|---|---|
from | string | First day, inclusive, YYYY-MM-DD. Defaults to 30 days before `to`. |
to | string | Last day, INCLUSIVE, as YYYY-MM-DD, e.g. 2026-10-31. Defaults to yesterday: the meters report once a day, and a day's figures usually land the next morning around 08:00. |
edf_get_gas_consumption EDF: Gas Consumption
Gas used per day or per month from the Gazpar meter via EDF Suivi Conso: kWh, m³, the conversion factor between them, and euros (energy plus the daily share of the subscription). `total` sums the range. Costs are EDF's estimate at the contract's prices, taxes included. Daily figures need a communicating Gazpar meter and arrive a day or two late; months are available further back. Answers 404 on an account with no gas contract.
| Parameter | Type | Description |
|---|---|---|
from * | string | First day, inclusive, as YYYY-MM-DD in Paris time, e.g. 2026-10-01. |
step | string | day: one row per day (at most 400 days). month: one row per calendar month. |
to | string | Last day, INCLUSIVE, as YYYY-MM-DD, e.g. 2026-10-31. Defaults to yesterday: the meters report once a day, and a day's figures usually land the next morning around 08:00. |
edf_get_weather EDF: Weather
The weather at the home's weather station, as Suivi Conso shows it beside the consumption: the average outdoor temperature per day (to 0.1 °C) with the sky (sunny, sunny spells, overcast, light rain…), or per month (whole °C). Use it to read consumption against the weather: heating demand follows the temperature, cooling the heat, and a sunny day lowers heating needs. The sky is one coarse label per day; for sunshine hours or solar radiation use an external weather archive. Same Paris-time days as the consumption tools, so rows line up with edf_get_electricity_consumption and edf_get_gas_c…
| Parameter | Type | Description |
|---|---|---|
from * | string | First day, inclusive, as YYYY-MM-DD in Paris time, e.g. 2026-10-01. |
step | string | day: temperature and sky per day (at most 400 days). month: temperature only. |
to | string | Last day, INCLUSIVE, as YYYY-MM-DD, e.g. 2026-10-31. Defaults to yesterday: the meters report once a day, and a day's figures usually land the next morning around 08:00. |
edf_compare_years EDF: Compare Years
Each month of a year against the same month of the year before, from EDF's own comparison: kWh and euros both years and the change in %, for electricity or gas. `total_complete_months` sums only months present in both years. EDF rounds to whole kWh and euros. These are raw figures, NOT weather-adjusted: pair them with edf_get_weather (step=month) to tell a colder winter from a change in the home, or use edf_compare_periods for EDF's weather verdict on electricity.
| Parameter | Type | Description |
|---|---|---|
energy * | string | Which meter to compare. |
year | integer | The year to compare with the one before, e.g. 2026. Defaults to the current year. |
edf_compare_periods EDF: Compare Periods
Electricity used in one period against a reference period (by default the same dates a year earlier), with EDF's weather verdict: whether the period was warmer, similar or colder than the reference, and whether consumption was higher, similar or lower. Use it to ask "did we use more this summer than last, and was it hotter?". The verdict is qualitative and reads temperature only: the kWh are NOT weather-adjusted, and in summer "colder" just means cooler, which lowers a cooling load rather than raising a heating one. Electricity only; EDF answers FLUID_NOT_SUPPORTED for gas, so use edf_compare_…
| Parameter | Type | Description |
|---|---|---|
from * | string | First day of the period, inclusive, e.g. 2026-06-01. |
reference_from | string | First day of the reference period. Defaults to `from` a year earlier. |
reference_to | string | Last day of the reference period, inclusive. Defaults to `to` a year earlier. |
to | string | Last day of the period, inclusive, e.g. 2026-08-31. Defaults to yesterday. |
edf_get_usage_breakdown EDF: Usage Breakdown
EDF's ESTIMATE of where the energy went over the last 12 months, by use (heating, hot water, cooking, fridge and freezer, washing, lighting…), in kWh, euros and %. For electricity it adds EDF's estimate of electric heating per month as [month, kWh, €] rows. This is a model (`model` names EDF's algorithm) fed by the home profile declared on suiviconso.edf.fr, not a measurement: `profile_declares_air_conditioning` shows one profile field that changes it most. A profile that predates new equipment skews it, so update the profile on the site first. For measured figures use the consumption tool…
| Parameter | Type | Description |
|---|---|---|
energy * | string | Which meter's breakdown. |
edf_request EDF: Request
Escape hatch: GET any Suivi Conso API path for this home, returning the raw JSON (cut at 60,000 characters). GET only; the same login and home headers as the other tools. Prefer the dedicated tools: their output is shaped, this one's is not. Paths seen in the Suivi Conso site include /v2/sites/-/elec-price-changes (beginTs, endTs), /v1/sites/-/billing-windows (fluids=ELEC,GAS), /v2/sites/-/elec-tariff-calendars (date=2026-11-11, a bare date), /v1/sites/-/usage-breakdowns (ts, fluid=ELEC|GAS), /v2/sites/-/forecast-consumptions (beginDate, endDate, fluid, strategy=ESTIMATION_AFTER_REAL). `-` sta…
| Parameter | Type | Description |
|---|---|---|
path * | string | API path under https://suiviconso.edf.fr/api, e.g. /v2/sites/-/elec-tariff-calendars. |
query | object | Query parameters, e.g. {"date": "2026-11-11"}. Timestamps (beginTs, beginDate, ts) want an offset: 2026-11-01T00:00:00+01:00. v1 begin-date/end-date want 2026-11-01. |