In their quest to enhance energy efficiency and carbon footprint management, many enterprises are turning their attention towards optimizing their facilities through amplified data monitoring and innovative control methods. In this context, this research highlights a practical solution in a commercial building located in the United States. It explains the creation, implementation, and costs of a universally applicable model predictive control (MPC) framework for the building’s heating, ventilation, and air conditioning (HVAC) system. The paper elaborates on both the hardware and software used to accumulate pertinent data and the formulation of the MPC system. This approach leverages cloud-based microservices and can be seamlessly integrated into current building management systems. In this regard, this paper presents three innovative strategies: Proportional–integral (PI)+Preheating, MPC, and occupancy-based control. These scenarios were designed to improve energy efficiency and thermal comfort significantly by reducing temperature fluctuations and adhering more closely to the setpoint temperature. The implementation of these strategies resulted in substantial energy savings, with reductions in energy consumption of 12.83%, 19.21%, and 14.98%, respectively.