Given the difficulty in manually adjusting the position and posture of the pile body during the pile driving process, the improved Denavit-Hartenberg (D-H) parameter method is used to establish the kinematics equation of the mechanical arm, based on the motion characteristics of each mechanism of the mechanical arm of the pile driver, and forward and inverse kinematics analysis is carried out to solve the equation. The mechanical arm of the pile driver is modeled and simulated using the Robotics Toolbox of MATLAB to verify the proposed kinematics model of the mechanical arm of the pile driver. The Monte Carlo method is used to investigate the working space of the mechanical arm of the pile driver, revealing that the arm can extend from the nearest point by 900 mm to the furthest extension of 1800 mm. The actuator’s lowest point allows for a descent of 1000 mm and an ascent of up to 1500 mm. A novel multi-strategy grey wolf optimizer (GWO) algorithm is proposed for robotic arm three-dimensional (3D) path planning, successfully outperforming the basic GWO, ant colony algorithm (ACA), genetic algorithm (GA), and artificial fish swarm algorithm (AFSA) in simulation experiments. Comparative results show that the proposed algorithm efficiently searches for optimal paths, avoiding obstacles with shorter lengths. In robotic arm simulations, the multi-strategy GWO reduces path length by 16.575% and running time by 9.452% compared to the basic GWO algorithm.