The invention relates to a boiler with a pipeline impurity cleaning function based on the Internet of Things. The boiler comprises a hearth, a first air outlet pipe, a second air outlet pipe, a descaling mechanism, a filter mechanism and a center control mechanism. The descaling mechanism comprises a first drive assembly, a lifting assembly, at least two drive rods and at least two scraper blades;the filter mechanism comprises two filter assemblies; and each filter assembly comprises a second motor, a cleaning port, a steam pipe, a baffle plate, a filter screen, a limiting block, a torsion spring, an anti-wind plate, a cleaning unit and two air cylinders. In the boiler with the pipeline impurity cleaning function based on the Internet of Things, through the descaling mechanism, water scale on an inner wall of the hearth can be effectively scraped, so that the adhesion amount of the water scale on the inner wall of the hearth is reduced, the heat conduction efficiency of the boiler isimproved, and the practicability of the boiler is improved; and through the filter mechanism, the impurities in the steam pipelines in the boiler can be filtered, so that the steam quality is improved, and the practicability of the boiler is further improved.