Current distortion is a critical issue of power quality because the low frequency harmonics injected by adjustable speed drives increase heating losses in transmission lines and induce torque flickering in induction motors, which are widely used in mining facilities. Although classical active filtering techniques mitigate the oscillatory components of imaginary power, they may not be sufficient to clean the sensitive nodes of undesirable power components, some of which are related to real power. However, the usage of power electronic converters for distributed generation and energy storage, allows the integration of complementary power quality control objectives in electrical systems, by using the same facilities required for active power transferring. This paper proposes a predictive control-based scheme for mitigating the current distortion in the coupling node between utility grid and the mining facility power system. Instead of the classical approach of active filtering, this task is included as a secondary level objective control referred into the microgrid control hierarchy. Hardware-in-the-Loop simulation results showed that the proposed scheme is capable of bounding the current distortion, according to IEEE standard 1547, for both individual harmonics and the total rated current distortion, through inequality constraints of the optimization problem.