The invention discloses an automatic manufacturing and maintaining device for a rock test piece. The device is characterized by comprising a test piece box, a moistening box, a mold, a stirring barrel, a stirring blade, a stirring rod, a motor (stirring), a servo motor, a vertical column, a cross beam, a screw rod, a polishing rod, a nut, a hydraulic cylinder, an arc-shaped clamp, a hydraulic press head, a connecting rod (stirring), a hydraulic pump, a connecting rod (hydraulic pump), an oil pipe (1), an oil pipe (2), a motor (workbench), a rack, a workbench, a humidity controller, a mold base, a humidity sensor, a mold, a control panel, a spray nozzle and a mold bracket which are connected with each other. The automatic stirring and automatic unloading of the rock-similar test piece can be realized; the model material can be automatically compressed; the automatic manufacturing for the rock test piece can be realized; the model test piece is maintained under the same humidity, so that the uniform of the maintaining humidity can be guaranteed and the accuracy of the test piece manufacturing can be further guaranteed.