This study presents multiple schemes for improving power quality in microgrids. These schemes are based on model predictive control (MPC) systems and provide solutions to power quality challenges such as harmonic load sharing, operation mode transfer transients and simultaneous control of voltage and current quality. Some of these solutions such as the MPC-based smart impedance, variable cost event-based operation mode transition control, and droop-based hybrid voltage and current quality control are presented here for the first time. On the other hand, some solutions such as harmonic spectrum shaping are well-known techniques and are applied here for presenting a complete solution pack for solving power quality issues such as resonance. The concept of the adaptive weighting of cost function regarding the grid conditions and the required level of power quality is the core concept that is introduced in this study. After explaining each scheme, by using simulations in MATLAB/SIMULINK, its figure of merits is proved.