This article presents a model predictive control (MPC) strategy to find the optimal switching time sequences of networked switched systems with uncertainties. First, based on predicted trajectories under exact discretization, a large-scale MPC problem is formulated; second, a two-level hierarchical optimization structure coupled with a local compensation mechanism is established to solve the formulated MPC problem, where the proposed hierarchical optimization structure is actually a recurrent neural network consisting of a coordination unit (CU) at the upper level and a series of local optimization units (LOUs) related to each subsystem at the lower level. Finally, a real-time switching time optimization algorithm is designed to calculate the optimal switching time sequences.