The document presents a study on the implementation of an adaptive notch filter (ANF) for shunt active power filters (APF) operating under indirect and direct current control modes, aimed at efficiently mitigating harmonics in three-phase systems. Through MATLAB simulations, the research demonstrates that the ANF effectively extracts both fundamental and harmonic signals, achieving harmonic mitigation levels well below the IEEE standard. The findings indicate that while both control methods are effective, the indirect current control method outperforms direct current control in terms of harmonic mitigation efficiency.