Labsco
MCP SERVER

Sistema de Predicción Energética con IA

by Davad122

Forecast household electricity use, explain the forecast with SHAP, and pull Spanish grid prices — all from the conversation.

Physical Sciences & Scientific Computing
Summary
A forecast you can interrogate, not just read.

The explainability tool is what separates this from a plain prediction endpoint: you can ask which appliance drove a forecast and over what horizon, then line that against the actual price for the period. 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 sitting on top of a domestic energy-consumption prediction system: ensemble machine-learning models for the forecast, SHAP for explainability, and the ESIOS API for electricity prices.

What you get
  • `predict_consumption()` — consumption forecasts between an `init_date` and an `end_date`
  • `get_consumption_analysis()` — historical analysis 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
  • Personalised optimisation recommendations built on the analysis, rather than generic advice
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 the project directory.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary