The invention discloses automatic lead welding equipment for a junction box of a solar panel. The automatic lead welding equipment for the junction box of the solar panel comprises a rack, a transmission device, an auxiliary supporting device, a moving platform, a horizontal guide mechanism, a Z-axis guide mechanism, a welding head mechanism and a pressing device, and the auxiliary supporting device, the transmission device and the moving platform are fixed to the rack from top to bottom in sequence; the horizontal guide mechanism is installed on a moving shelf of the moving platform, the Z-axis guide mechanism is installed on a Y-direction guide assembly push plate of the horizontal guide mechanism, the welding head mechanism is installed on a Z-direction guide assembly push plate of theZ-axis guide mechanism, and the pressing device is installed on a locating plate of the Z-axis guide mechanism. Through the mode, the automatic lead welding equipment is compact in structure and steady in running, a floating assembly sufficiently guarantees the welding quality, and the pesudo welding phenomenon generated during welding is avoided; a welding pencil cleaning device conducts automatic cleaning, the cleanliness of the welding position is guaranteed, the cleaning time is saved, and the welding quality is also guaranteed.