By combining MR with transcriptomics data to explore genetic causality, we performed pathway enrichment analyses and identified three markers: CTSB, IL10, and AGER. These markers can serve as causal diagnostic indicators of immune cell-IPF interactions, offering valuable insights into the validation of a cohort of IPF patients. Here, CTSB is linked to idiopathic pulmonary fibrosis.