In this present study, we explored the catalytic behaviors of the in situ generated metal nanoparticles, i.e., Pt/Ni, embedded in laser-induced carbon nanofibers (LCNFs) and their potential for H2O2detection under physiological conditions. Furthermore, we demonstrate current limitations of laser-generated nanocatalyst embedded within LCNFs as electrochemical detectors and possible strategies to overcome the issues. Cyclic voltammetry revealed the distinctive electrocatalytic behaviors of carbon nanofibers embedding Pt and Ni in various ratios. With chronoamperometry at  +0.5 V, it was found that modulation of Pt and Ni content affected only current related to H2O2but not other interfering electroactive substances, i.e., ascorbic acid (AA), uric acid (UA), dopamine (DA), and glucose. This implies that the interferences react to the carbon nanofibers regardless of the presence of metal nanocatalysts. Carbon nanofibers loaded only with Pt and without Ni performed best in H2O2detection in phosphate-buffered solution with a limit of detection (LOD) of 1.4 µM, a limit of quantification (LOQ) of 5.7 µM, a linear range from 5 to 500 µM, and a sensitivity of 15 µA mM−1cm−2. By increasing Pt loading, the interfering signals from UA and DA could be minimized. Furthermore, we found that modification of electrodes with nylon improves the recovery of H2O2spiked in diluted and undiluted human serum. The study is paving the way for the efficient utilization of laser-generated nanocatalyst-embedding carbon nanomaterials for non-enzymatic sensors, which ultimately will lead to inexpensive point-of-need devices with favorable analytical performance.Graphical abstractSupplementary InformationThe online version contains supplementary material available at 10.1007/s00216-023-04640-8.