BackgroundIdiopathic pulmonary fibrosis (IPF) is an irreversible lung disease with unclear pathological mechanisms. In this study, we utilized bidirectional Mendelian randomization (MR) to analyze the relationship between serum metabolites and IPF, and conducted metabolic pathway analysis. AimTo determine the causal relationship between serum metabolites and IPF using MR analysis. MethodsA two-sample MR analysis was conducted to evaluate the causal relationship between 824 serum metabolites and IPF. The inverse variance weighted (IVW) method was used to estimate the causal relationship between exposure and results. Sensitivity analysis was conducted using MR Egger, weighted median, and maximum likelihood to eliminate pleiotropy. Additionally, metabolic pathway analysis was conducted to identify potential metabolic pathways. ResultsWe identified 12 serum metabolites (6 risks and 6 protective) associated with IPF from 824 metabolites. Among them, 11 were known and 1 was unknown. 1-Eicosatrienoylglycophorophospholine and 1-myristoylglycophorophospholine were bidirectional MR positive factors, with 1-myristoylglycophorophospholine being a risk factor (1.0013, 1.0097) and 1-eicosatrienoylglycophorine being a protective factor (0.9914, 0.9990). The four lipids (1-linoleoylglycerophoethanolamine*, total cholesterol in large high-density lipoprotein [HDL], cholesterol esters in very large HDL, and phospholipids in very large HDL) and one NA metabolite (degree of unsaturation) were included in the known hazardous metabolites. The known protective metabolites included three types of lipids (carnitine, 1-linoleoylglycerophoethanolamine*, and 1-eicosatrienoylglycerophophophorine), one amino acid (hypoxanthine), and two unknown metabolites (the ratio of omega-6 fatty acids to omega-3 fatty acids, and the ratio of photoshopids to total lipids ratio in chylomicrons and extremely large very low-density lipoprotein [VLDL]). Moreover, sn-Glycerol 3-phosphate and 1-Acyl-sn-glycero-3-phosphocline were found to be involved in the pathogenesis of IPF through metabolic pathways such as Glycerolide metabolism and Glycerophospholipid metabolism. ConclusionOur study identified 6 causal risks and 6 protective serum metabolites associated with IPF. Additionally, 2 metabolites were found to be involved in the pathogenesis of IPF through metabolic pathways, providing a new perspective for further understanding the metabolic pathway and the pathogenesis of IPF.