The invention discloses a scanning pipeline leakage detection mechanism, which comprises a base, a pipeline, two sealing mechanisms symmetrically arranged along the pipeline, a connecting pipe, a pressure gauge, a servo motor, a lead screw, a feed nut, and a sliding seat , a support frame, the sealing mechanism also includes a sealing seat, a number of not less than 3 sealing rings uniformly distributed along the sealing seat, a sealing rubber ring, a retaining ring, a steel ball, a rubber sleeve, a first inlet The air passage, the second air inlet passage, the plug, the servo motor drives the connecting pipe to move, and scans the pipe for inspection. When the pressure detected by the pressure gauge exceeds the set value, the servo motor stops and the leaking part is sealed. The device has a simple structure. Through scanning detection, it can perform real-time detection on the entire pipeline to improve safety performance. It adopts a floating design and uses three-stage sealing to effectively prevent the leakage of gas from being discharged, so that the leaked gas is filled with the connecting pipe, which effectively improves detection. precision.