In order to solve the problem of measuring the distance and position between the flanges of two pipelines on the seabed, a measuring device for pulling rope in seawater was designed. Aiming at the sealing problem of the key equipment that is the rotating shaft of the rope winch, this paper used the principle of the magnetic coupling to transfer the driving moment, and adopted the method of converting the dynamic seal into the static seal structure to realize the reliable sealing of the motor. Through the experiment of measuring two pipelines with underwater rope pulling device, it was verified that the measuring accuracy of the device meets the design requirements, and the feasibility of the application of magnetic coupling technology in winch is also verified.