The invention provides an electromagnetic heating curing and forming device and a method for preparing a filament wound composite material pipe body by using the electromagnetic heating curing and forming device, and relates to a heating and curing device and a method for preparing the composite material pipe body by using the heating and curing device. The invention aims to solve the problems of an existing heating and curing device for preparing the composite material pipe body that a heat source of an inner heating and curing core die cannot be obtained easily, the heating efficiency is low, and the heating precision and the heating uniformity are poor. The device comprises an electromagnetic heating coil, an electromagnetic heating power supply, a temperature sensor, heat pipes, a heat conducting medium, a sprayer, a cooling liquid protection cover, a cooling liquid tank, a water pump, a heat radiator and a core die, wherein an interlayer is formed between the outer wall of an inner pipe and the inner wall of an outer wall of the core die; a heat pipe array is distributed in the heat conducting medium in the interlayer; and the electromagnetic heating coil is uniformly arranged outside the tail end of the core die. The method comprises the following steps: the core die is fixed on a main shaft of a winding machine; and the core die is heated and cured simultaneously when being wound, and then heated, cured, and the processed core die is cooled. The electromagnetic heating curing and forming device can be obtained.