With significant advancements in high-resolution mass spectrometry, there has been a substantial increase in the amount of chemical component data acquired from natural products. Therefore, the rapid and efficient extraction of valuable mass spectral information from large volumes of high-resolution mass spectrometry data holds crucial significance. This study illustrates a targeted annotation of the metabolic products of alkaloid and sesquiterpene components from Dendrobium nobile (D. nobile) aqueous extract in mice serum through the integration of an in-houses database, R programming, a virtual metabolic product library, polygonal mass defect filtering, and Kendrick mass defect strategies. The research process involved initially establishing a library of alkaloids and sesquiterpenes components and simulating 71 potential metabolic reactions within the organism using R programming, thus creating a virtual metabolic product database. Subsequently, employing the virtual metabolic product library allowed for polygonal mass defect filtering, rapidly screening 1705 potential metabolites of alkaloids and 3044 potential metabolites of sesquiterpenes in the serum. Furthermore, based on the chemical composition database of D. nobile and online mass spectrometry databases, 95 compounds, including alkaloids, sesquiterpenes, and endogenous components, were characterized. Finally, utilizing Kendrick mass defect analysis in conjunction with known alkaloids and sesquiterpenes targeted screening of 209 demethylation, methylation, and oxidation products in phase I metabolism, and 146 glucuronidation and glutathione conjugation products in phase II metabolism. This study provides valuable insights for the rapid and accurate annotation of chemical components and their metabolites in vivo within natural products.