Accumulating studies have shown the effects of gut microbiota management tools in improving depression. We conducted a meta-analysis to evaluate the effects of prebiotics, probiotics, and synbiotics on patients with depression. We searched six databases up to July 2022. In total, 13 randomized controlled trials (RCTs) with 786 participants were included. The overall results demonstrated that patients who received prebiotics, probiotics or synbiotics had significantly improved symptoms of depression compared with those in the placebo group. However, subgroup analysis only confirmed the significant antidepressant effects of agents that contained probiotics. In addition, patients with mild or moderate depression could both benefit from the treatment. Studies with a lower proportion of females reported stronger effects for alleviating depressive symptoms. In conclusion, agents that manipulate gut microbiota might improve mild-to-moderate depression. It is necessary to further investigate the benefits of prebiotic, probiotic and synbiotic treatments relative to antidepressants and follow up with individuals over a longer time before these therapies are implemented in clinical practice.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12888-023-04963-x.