Our study, employing Mendelian Randomization, reveals a significant causal relationship between acute pancreatitis and specific immune cell traits, particularly highlighting that CD127 on CD28+ CD45RA- CD8br T cells contributes to 5.296% of the increased risk of sepsis in AP patients. Here, IL7R is linked to alkaline phosphatase measurement.