Utilizing the full potential of reproducible biomass resources is crucial for the sustainable development of humanity. In this study, biochar (MPC) was prepared through the microwave-assisted pyrolysis of sugarcane bagasse. Subsequently, Co nanoparticles were introduced by microwave-assisted hydrothermal treatment to form a highly dispersive Co/MPC material. Characterization results indicated that Co nanoparticles were wrapped by thin carbon layers and uniformly dispersed on a carbon-based skeleton via a microwave-assisted hydrothermal synthesis approach, providing high-activity space. Thus, the prepared material was limited to glassy carbon; on the electrode surface, a cobalt-based sensing platform (Co/MPC/GCE) was built. On the basis of this constructed sensing platform, a linear equation was fitted by the concentration change of current signal I and H2O2. The linear range was 0.55–100.05 mM; the detection limit was 1.38 μM (S/N = 3); and the sensitivity was 103.45 μA cm−2 mM−1. In addition, the effect this sensor had on H2O2 detection of actual water samples was conducted by using a standard addition recovery method; results disclosed that the recovery rate and RSD of H2O2 in tap water samples were 94.0–97.6% and 4.1–6.5%, respectively.