In order to improve the sensitivity and stability of the material for the detection of hydrogen peroxide, Ni/N/MPC nanocomposites were synthesized by Ni-based biomass doped with nitrogen. Nickel atoms offer such advantages as good catalytic activity and low cost, while nitrogen doping facilitates the formation of stable hybrid structures and the formation of abundant functional groups on the surface of nanocomposites. The linear equation characterizing the electrode response from the Ni/N/MPC nanocomposites was derived from the relationship between the current signal I and H2O2 concentration, demonstrating a linear range of 0.05-240.15 mmol/L, along with a detection limit of 0.84 μmol/L (S/N=3). In contrast, the electrochemical signals from Ni/NGCE and Ni/N/GCE sensors were significantly lower than those obtained from the composite materials during cyclic voltammetry testing. In practical sample analysis, the recovery rate and RSD of H2O2 in tap water samples were 97.2-98.6 % and 5.5-6.4 %, respectively. The Ni/N/MPC/GCE sensing platform presents excellent stability and enhanced sensitivity.