Abstract Nonlinear energy sink is a passive energy absorption device that surpasses linear dampers, and has gained significant attention in various fields of vibration suppression. This is owing to its capacity to offer high vibration attenuation and robustness across a wide frequency spectrum. Energy harvester is a device employed to convert kinetic energy into usable electric energy. In this paper, we propose an electromagnetic energy harvester enhanced viscoelastic nonlinear energy sink (VNES) to achieve passive vibration suppression and energy harvesting simultaneously. A critical departure from prior studies is the investigation of the stochastic P-bifurcation of the electromechanically coupled VNES system under narrow-band random excitation. Initially, approximate analytical solutions are derived using a combination of a multiple-scale method and a perturbation approach. The substantial agreement between theoretical analysis solutions and numerical solutions obtained from Monte Carlo simulation underscores the method’s high degree of validity. Furthermore, the effects of system parameters on system responses are carefully examined. Additionally, we demonstrate that stochastic P-bifurcation can be induced by system parameters, which is further verified by the steady-state density functions of displacement. Lastly, we analyze the impacts of various parameters on the mean square current and the mean output power, which are crucial for selecting suitable parameters to enhance the energy harvesting performance.