The large-scale integration of renewable energy sources and power electronic devices has led to increasingly dispersed and networked characteristics of power quality disturbances in distribution systems. Traditional control devices, limited by their fixed-point control, no longer meet the development needs of modern distribution systems. Considering the distribution and structural characteristics of the current new-type sources and loads, a multifunctional inverter power quality coordinated control strategy based on comprehensive evaluation is proposed. This strategy aims to achieve power quality coordinated control by utilizing optimal compensation capacity while the grid-connected inverter provides active power output. Firstly, the traditional ipiq power quality detection method is analyzed and improved to enable detection of harmonics, reactive power, and three-phase imbalance currents in single-phase systems or three-phase four-wire systems. Secondly, in the power quality assessment, a balanced algorithm is employed to obtain the comprehensive evaluation index of power quality, thereby improving the deficiencies of single-weight evaluation. Next, to ensure the grid-connected inverter achieves optimal power quality coordinated control with minimal compensation capacity, an optimization compensation function is established between compensation capacity and comprehensive power quality index. This function is optimized using non-dominated sorting genetic algorithm to enhance equipment utilization and system economy. Finally, the feasibility and effectiveness of the proposed method are validated through simulations, demonstrating the achievement of optimal capacity configuration for power quality coordinated control while ensuring active power output by the grid-connected inverter.