Drug-target MR analysis indicated that genetic mimicry for inhibitor of NPC1L1, PCSK9, ABCG5, ABCG8, and APOC3 were associated with increased IPF risks, with odds ratios (ORs) and 95% confidence intervals (CIs) as follows: 2.74 (1.05–7.12, P = 0.039), 1.36 (1.02–1.82, P = 0.037), 1.66 (1.12–2.45, P = 0.011), 1.68 (1.14–2.48, P = 0.009), and 1.42 (1.20–1.67, P = 3.17×10-5), respectively. Here, NPC1L1 is linked to idiopathic pulmonary fibrosis.