We formulate and develop a control method for homogeneous charge compression ignition (HCCI) engines using model predictive control (MPC) and models learned from operational data. An HCCI engine is a highly efficient but complex combustion system that operates with a high fuel efficiency and reduced emissions compared to the present technology. HCCI control is a nonlinear, multi-input multi-output problem with state and actuator constraints which makes controller design a challenging task. In this paper, we propose an MPC approach where the constraints are elegantly included in the control problem along with optimality in control. We develop the engine models using experimental data so that the complexity and time involved in the modeling process can be reduced. An extreme learning machine (ELM) is used to capture the engine dynamic behavior and is used by the MPC controller to evaluate control actions. We also used a simplified quadratic programming making use of the convexity of the MPC problem so that the algorithm can be implemented on the engine control unit that is limited in memory. The working and effectiveness of the proposed MPC methodology has been analyzed in simulation using a nonlinear HCCI engine model. The controller tracks several reference signals taking into account the constraints defined by HCCI states, actuators and operational limits.