The photovoltaic grid-connected junction box combines the DC inputs of up to 24 photovoltaic cell components in series into one or multiple outputs, with each output equipped with fuses, lightning arresters, and circuit breakers. This simplifies the input wiring of DC distribution cabinets and inverters, providing protection against lightning, short circuits, and grounding. The junction box is available in two types: intelligent and non-intelligent. The intelligent lightning protection junction box has a current monitoring unit in its interior that can monitor the current input of each photovoltaic cell series and the total output voltage, as well as the temperature inside the box, the status of the lightning arrester, and the status of the circuit breaker.