As the adoption of renewable energy sources (RESs) continues to surge, and the concept of microgrids (MGs) gains widespread recognition, the need for efficient battery energy storage system (BESS) management within MGs has become increasingly prominent. This paper introduces a novel Energy Management System (EMS) designed for grid-connected MGs, with the primary objectives of enhancing the energy economics of the MG, minimizing BESS degradation, and ensuring that the point of common coupling (PCC) voltage remains within prescribed limits. The proposed EMS utilizes a finite-horizon Model Predictive Control (MPC) framework to seamlessly coordinate BESS operations, encompassing charging, discharging, and reactive power provision. This coordination is done in conjunction with solar power generation, load demand, electricity pricing, and feed-in tariffs. Furthermore, the EMS accounts for uncertainties related to load and solar demand using a Monte Carlo simulation approach. The optimization goal of the proposed EMS is to minimize the expected total operational cost of the MG over a 24-hour prediction horizon. This cost encompasses both economic costs and battery degradation costs. The optimization process adheres to a set of constraints that consider BESS limitations, such as state of charge (SoC) constraints and charging/discharging limits, as well as inverter capacity limits and PCC voltage requirements. Conducting rigorous case studies on the MATLAB Simscape Electrical platform and validating them in real-time using the OPAL-RT simulator demonstrate the effectiveness of the proposed EMS across diverse operational scenarios and pricing models. The findings of these case studies provide valuable insights into the effectiveness of the EMS in real-world MG applications.