This research article focuses on enhancing power quality and stability at wind farm terminals integrated with weak grids through a fuzzy logic-based Unified Power Quality Compensator (UPQC). The proposed method effectively regulates voltage and mitigates disturbances from wind power fluctuations and load changes, showing improved performance in Total Harmonic Distortion (THD) reduction when compared to traditional PI controllers. Simulation results demonstrate the strategy's effectiveness in maintaining power quality and stabilizing the wind farm's operational conditions.