An Energy Management System (EMS) that uses a Model Predictive Control (MPC) to manage the flow of the microgrids is described in this work. The EMS integrates both wind speed and solar radiation predictors by using a time series to perform the primary grid forecasts. At each sampling data measurement, the power of the photovoltaic system and wind turbine are predicted. Then, the MPC algorithm uses those predictions to obtain the optimal power flows of the microgrid elements and the main network. In this work, three time-series predictors are analyzed. As the results will show, the MPC strategy becomes a powerful energy management tool when it is integrated with the Double Exponential Smoothing (DES) predictor. This new scheme of integrating the DES method with an MPC presents a good management response in real-time and overcomes the results provided by the Optimal Power Flow method, which was previously proposed in the literature. For the case studies, the test microgrid located in the CIESOL bioclimatic building of the University of Almeria (Spain) is used.