1H NMR-based metabolic profiling combined with multivariate data analysis was used to explore the metabolic phenotype of functional dyspepsia (FD) in stressed rats and evaluate the intervention effects of the Chinese medicine Weikangning (WKN). After a 7-day period of model establishment, a 14-day drug administration schedule was conducted in a WKN-treated group of rats, with the model and normal control groups serving as negative controls. Based on 1H NMR spectra of urine and serum from rats, PCA, PLS-DA, and OPLS-DA were performed to identify changing metabolic profiles. According to the key metabolites determined by OPLS-DA, alterations in energy metabolism, stress-related metabolism, and gut microbiota were found in FD model rats after stress stimulation, and these alterations were restored to normal after WKN administration. This study may provide new insights into the relationship between FD and psychological stress and assist in research into the metabolic mechanisms involved in Chinese medicine.