Stationary 3D equilibria can form in fusion plasmas via saturation of magnetohydrodynamic (MHD) instabilities or stimulated by external 3D fields. In these cases the current profile is anomalously broad due to magnetic flux pumping produced by the MHD modes. Flux pumping plays an important role in hybrid tokamak plasmas, maintaining the minimum safety factor above unity and thus removing sawteeth. It also enables steady-state hybrid operation, by redistributing non-inductive current driven near the center by electron cyclotron waves. A validated flux pumping model is not yet available, but it would be necessary to extrapolate hybrid operation to future devices. In this work flux pumping physics is investigated for helical core equilibria stimulated by external 3D fields in DIII-D hybrid plasmas. We show that flux pumping can be produced in a continuous way by an MHD dynamo emf. The same effect maintains helical equilibria in reversed-field pinch (RFP) plasmas. The effective MHD dynamo loop voltage is calculated for experimental 3D equilibrium reconstructions, by balancing Ohm’s law over helical flux surfaces, and is consistent with the expected current redistribution. Similar results are also obtained with more sophisticated nonlinear MHD simulations. The same modelling approach is applied to helical RFP states forming spontaneously in RFX-mod as the plasma current is raised above 0.8–1 MA. This comparison allows to identify the underlying physics common to tokamak and RFP: a helical core displacement modulates parallel current density along flux tubes, which requires a helical electrostatic potential to build up, giving rise to a helical MHD dynamo flow.