Aiming at the torque and flux ripples in the direct torque control and the time-varying parameters for permanent magnet synchronous motor (PMSM), a model predictive direct torque control with online parameter estimation based on the extended Kalman filter for PMSM is designed. By predicting the errors of torque and flux based on the model and the current states of the system, the optimal voltage vector is selected to minimize the error of torque and flux. The stator resistance and inductance are estimated online via EKF to reduce the effect of model error and the current estimation can reduce the error caused by measurement noise. The stability of the EKF is proved in theory. The simulation experiment results show the method can estimate the motor parameters, reduce the torque, and flux ripples and improve the performance of direct torque control for permanent magnet synchronous motor (PMSM).