In order to realize the operation mode seamless switching of microgrid, a hybrid control algorithm of energy storage (ES) grid-connected inverter is proposed. Based on utilizing the hierarchical control structure of inverter, for the first time, the two degree of freedom control principle, the current model predictive control and modified droop control are combined. Thereinto, together with current model prediction control, the current inner loop of control layer can eliminate PI controller and PWM regulator. In the voltage outer loop of control layer, the principle of two degrees of freedom is adopted to construct the inverse model of the controlled object. And based on the current model predictive control of inner current loop, the unit transfer function of the control layer is realized. Then, the dynamic full compensation for harmful disturbances can be realized. For the application layer of ES system,, the improved droop control with voltage and frequency as feedback is used to realize the voltage and frequency regulation of islanding microgrid. And because the control layer can be used as the shared layer of ES system, during the switching process of microgrid operation mode, the transient surge current and bus voltage distortion rate of microgrid can be significantly suppressed. At last, the correctness and effectiveness of the proposed hybrid control algorithm are verified by MATLAB/Simulink simulation systemDo not use special characters, symbols, or math in your title or abstract.