The invention provides a voltage detection-type active filter for improving electric energy quality of a PCC position. The voltage detection-type active filter comprises a power electronic converter,an LCL filtering circuit, a DC-side capacitor, a network-side current detection interface circuit, a DC-side voltage detection interface circuit, a PPC voltage and zero-crossing detection circuit anda processor, wherein the processor is connected with the power electronic converter, the network-side current detection interface circuit, the DC-side voltage detection interface circuit and the PPC voltage and zero-crossing detection circuit, the power electronic converter is connected with the LCL filtering circuit and the DC-side capacitor, the LCL filtering circuit is connected with the network-side current detection interface circuit, and the DC-side capacitor is connected with the DC-side voltage detection interface circuit. By the voltage detection-type active filter, a PCC harmonic voltage is only extracted, a current is not extracted, the hardware structure is simplified, the influence speed is increased, the designated subharmonic voltage can be eliminated, the voltage detection-type active filter is simple to control and simple and convenient to operate, the method is reasonable, and power grid compensation can be performed in real time.