An apparatus for automatically disinfecting piping for medical uses includes a main controller including a control center module, an administration controller, and an electric valve controller; a disinfection solution machine connected to a main pipe including first branch pipes each provided with an administration motor control valve and connected to medical devices, second branch pipes each connected to the first branch pipe, and drains each connected to the first branch pipe, first electric valves each is provided between the medical device and the first branch pipe, second electric valves each is provided in the second branch pipe, third electric valves each is provided in the drain; and a reverse osmosis water filter being in fluid communication with a purified water reservoir having an outlet connected to the first branch pipes, and a feedback end connected to the second branch pipes.