In this paper, a consensus-based model predictive control (Cb-MPC) scheme is proposed to control the active power and voltage at all nodes in grid-connected active distribution networks (ADNs) with multiple distributed energy resources (DERs). The proposed design methodology is based on a multiple-input multiple-output (MIMO) model of an ADN which accounts for both the internal and external interactions among the control loops of the DERs. To achieve the control objective, each DER unit is equipped with a controller–observer system. In particular, the observer implements the consensus algorithm to estimate the collective system state by exchanging data only with its neighbors. The scope of the controller is to solve the MPC optimal problem based on its collective state estimate, and, due to the presence of an integral term in the control action, it is robust against any unknown scenarios of the ADN, which are represented by uncertainty in the model parameters. The results of numerical simulations validate the effectiveness of the proposed method in the presence of unknown changes in the operating conditions of the ADN and of communication using a sample and hold function.