It is a closed cycle modular device for treatment of solid and liquid waste that can be successively coupled highlighting the third control valve (15) and module management the threaded accessory (16) for coupling the water inlet (17) the macerated fluid intake manifold (18) the heat recovery piping (19) the treated water collector (20) the water outlet from the treatment system (21) and the water outlet from energy recovery (22) modularity and heat recovery are technical advances and added values of the invention which adapts to the location and needs for treating waste in sanitary industrial or other waters