LabscoMCP early access ↗
Davad122MCP SERVER

Household Energy Prediction System

Forecast and explain electricity use for the sample household the project ships with, and pull Spanish grid prices with your own ESIOS token.

by Davad122 ↗Physical Sciences & Scientific ComputingCommunity

LABSCO SUMMARY

A forecast you can interrogate, not just read.

The explainability tool is what separates this from a plain prediction endpoint: you can ask what drives the model's forecast for an appliance over a horizon, then line that against the actual price for the period. The forecasts describe the sample household the models were trained on, not yours, so read it as a worked example of the method. Note the licence before you build on it — the author restricts use to academic evaluation, reference and non-commercial educational purposes with attribution, and asks that commercial use be arranged directly.

What it is

A Python MCP server on top of a master's-thesis energy-prediction system: machine-learning models trained on one sample household (its data ships in the repository), SHAP values that explain them, and the ESIOS API for Spanish electricity prices.

What you get

  • predict_consumption() — the sample household's forecast consumption, in Wh, between a future init_date and end_date
  • get_consumption_analysis() — the sample household's recorded consumption over a date range, broken down by appliance
  • explain_predictions() — SHAP values for a given appliance over a horizon, so the forecast is not a black box
  • get_precio() — electricity prices for a date range and a price_type
  • get_precio_inteligente() — price for a target_date with automatic fallback when the primary source has nothing

Requirements

Python 3.8 or higher, an ESIOS account with Red Eléctrica de España, and the token in ESIOS_API_TOKEN. The client launches it with uv from your clone of the repository, whose bundled data and models the forecast tools read; the ESIOS token is only needed by the two price tools.

Setup effort

Build from source