The utility model relates to a magnetic connector, which comprises a first connecting seat, a second connecting seat, a first adsorption piece and a second adsorption piece, at least one of the first adsorption piece and the second adsorption piece is a
magnet, the first connecting seat is provided with a first groove body, the first adsorption piece is arranged in the first groove body, and the second adsorption piece is provided with an adsorption part; one of the first connecting seat and the second connecting seat is provided with an
insertion part, the other one of the first connecting seat and the second connecting seat is provided with an accommodating part, when the first connecting seat and the second connecting seat are connected, the adsorption part is inserted into the first groove body and is adsorbed with the first adsorption piece, the
insertion part is inserted into the accommodating part, and the operation head lamp comprises a head lamp support, a head lamp and a magnetic connector. According to the utility model, through a multiple anti-falling structure, the
magnet cannot fall off even if the
magnet is suddenly demagnetized and invalid; on the basis of not
increasing weight and parts, the
magnetism is effectively enhanced, the structure is compact and small, and the occupied space is extremely small; the head lamp is accurate in positioning and connection, firm in fixation, high in safety and convenient to replace at any time.