In this paper, a single-stage three-level z-source inverter is utilized for connecting PV panels to the grid. The use of a three-level z-source inverter not only allows adjustment of output voltage but also facilitates the elimination of harmonic components. To extract maximum power from the PV panels, a model predictive control (MPC) strategy based on maximum power point tracking (MPPT) is employed. This method allows the MPC to predict the optimal operating point one step ahead, resulting in a faster response compared to conventional perturb and observe (P&O) method under rapid changes. Finally, the three-level z-source inverter is simulated using MATLAB/Simulink software, and its performance using the MPC method is analyzed. The simulation results have verified that the converter operates effectively.