The invention discloses a surgical mechanical arm joint hydraulic locking power generator. The power generator comprises a supporting mechanism, a transmission mechanism, a thrust mechanism in electric control and a force-generating mechanism, wherein the thrust mechanism contains a lead screw housing; the lead screw housing is fixedly linked with a connection cover of the transmission mechanism, the center axle of the thrust mechanism is vertical to the axle of the transmission mechanism; the force-generating mechanism and the transmission mechanism both have symmetric structures, share the same axle and are fixedly locked through loop nuts arranged on the periphery of the force-generating mechanism, and the supporting mechanism is fixedly linked with the thrust mechanism. The invention provides a hydraulic power source of joint locking to ensure that the mechanical arm can be used as the puncture positioning device and supporting device for the surgery; and the power generator of the invention has the advantages of small volume, compact structure, light weight, large locking torque, convenient operation and maintenance, long service life and the like, and is applicable to joint positioning of the mechanical arm used in the minimally invasive sugery of neurosurgery, chest surgery, orthopeadic surgery, stomatology and the like.