BackgroundThe definitive establishment of a causal relationship between gut microbiota and myelodysplastic syndrome (MDS) has not been achieved. Furthermore, the involvement of immune cells in mediating the connection between gut microbiota and MDS is presently unclear.MethodsTo elucidate the bidirectional correlation between gut microbiota and MDS, as well as to investigate the mediating role of immune cells, a bidirectional two-sample, two-step Mendelian randomization (MR) study was conducted. Summary statistics were obtained from genome-wide association studies (GWAS), including MDS (456,348 individuals), gut microbiota (18,340 individuals), and 731 immune cells signatures (3757 individuals).ResultsGenetically predicted eight gut microbiota traits were significantly associated with MDS risk, but not vice versa. Through biological annotation of host-microbiome shared genes, we found that immune regulation may mediate the impact of gut microbiota on MDS. Subsequently, twenty-three immunophenotypes that exhibited significant associations with MDS risk and five of these immunophenotypes were under the causal influence of gut microbiota. Importantly, the causal effects of gut microbiota on MDS were significantly mediated by five immunophenotypes, including CD4 +T cell %leukocyte, CD127 on CD45RA − CD4 not regulatory T cell, CD45 on CD33 + HLA DR + WHR, CD33 on basophil, and Monocyte AC.ConclusionsGut microbiota was causally associated with MDS risk, and five specific immunophenotypes served as potential causal mediators of the effect of gut microbiota on MDS. Understanding the causality among gut microbiota, immune cells and MDS is critical in identifying potential targets for diagnosis and treatment.