The mining rope shovel (MRS) is one of the core pieces of equipment for open-pit mining, and is currently moving towards intelligent and unmanned transformation, replacing traditional manual operations with intelligent mining. Aiming at the demand for online planning of an intelligent shovel excavation trajectory, an MRS excavating trajectory planning method based on material surface perception is proposed here. First, point cloud data of the material stacking surface are obtained through laser radar to perceive the excavation environment and these point cloud data are horizontally calibrated and filtered to reconstruct the surface morphology of the material surface to provide a material surface model for calculation of the mining volume in the subsequent trajectory planning. Second, kinematics and dynamics analysis of the MRS excavation device are carried out using the Product of Exponentials (PoE) and Lagrange equation, providing a theoretical basis for calculating the excavation energy consumption in trajectory planning. Then, the trajectory model of the bucket tooth tip is established by the method of sixth-order polynomial interpolation. The unit mass excavation energy consumption and unit mass excavation time are taken as the objective function, and the motor performance and the geometric size of the MRS are taken as constraints. The grey wolf optimizer is used for iterative optimization to realize efficient and energy-saving excavation trajectory planning of the MRS. Finally, trajectory planning is carried out for material surfaces with four different shapes (typical, convex, concave, and convex–concave). The results of experimental validation show that the actual hoist and crowd forces are essentially consistent with the planned hoist and crowd forces in terms of the peak value and trend variations, verifying the accuracy of the calculation model and confirming that the full bucket rate and various parameters meet the constraints. Therefore, the trajectory planning method based on material surface perception are feasible for application to different excavation conditions.