A modular centralized oil well control cabinet include a magnet block, Cabinet door, seal strip, Viewing window, connection hinge, A main cabinet body, a fixed iron sheet, an intermediate beam, a first-level transverse plate, a second-level transverse beam, a third-level transverse beam, a distribution box module, an electrical component mount box module, a distribution row module, a height-adjustable sunshade cover structure, a height-adjustable rotate bar structure, a transverse plate, a shock-absorbing cushioning protection bar structure and a base, wherein that magnet block is longitudinally screwed to the middle position on the left side of the cabinet door; The sealing strip is glued at a position around the inner surface of the cabinet door. As that shock absorb buffer rod, the buffspring, the fixing seat, the fixing pipe, the retaining ring, the supporting leg and the connecting seat are arranged, the problem that the oil well control cabinet is easy to sway and easily damagesthe internal devices in case of an emergency is solved, and the shock absorber has a good cushioning and shock absorbing protection effect; The rubber protective sleeve is arranged so as to avoid thebuffer spring from being washed by the rainwater, and can play a protective role.