The invention discloses a magnetic switch pulse generator for electric pulse rock breaking. The magnetic switch pulse generator comprises a power supply, a rectifying and filtering module, an energy storage module, a switch module, a transformer, a pre-breakdown module, a magnetic switch module and a load, wherein the power supply charges the whole pulse generator, and the rectifying and filtering module rectifies and filters voltage waveforms input by the power supply; the switch module adjusts the discharge frequency of the pulse generator; voltage is boosted through the transformer, the pre-breakdown module continues to boost, and a load channel is punctured by rising edge steepening instantaneous high-pulse voltage; the energy storage module stores energy, and after the pre-breakdown module breaks down the load, the magnetic switch module controls the pre-breakdown module to inject instantaneous pulse energy into the load; and the magnetic switch module has the function of isolating high voltage and high current at the two ends of the load. The system can be flexibly selected and designed according to load types, and has the advantages of high portability, high rock breaking energy consumption efficiency and the like.