Endometriosis, identified by the abnormal growth of endometrial cells beyond the inner lining of the uterus, often manifests through symptoms like painful menstruation and challenges in conceiving. Observational studies suggest that endometriosis is often comorbid with mental disorders, including anxiety and depression. The nature of these connections, whether they are causal, is still debated and calls for further empirical evidence. We utilized a bidirectional 2-sample Mendelian randomization (MR) approach, harnessing genome-wide association study data to explore the connections among depression, anxiety, neuroticism, and endometriosis. To scrutinize the causative connections between mental health issues and endometriosis, Inverse Variance Weighting (IVW) was employed as the primary analytical tool, complemented by Weighted Median Estimation, Simple mode, Weighted mode, and MR-Egger regression for additional analysis. To examine the potential for reverse causation, reverse MR was applied. To strengthen the reliability of our findings, we carried out sensitivity analyses that included heterogeneity tests, tests for pleiotropy, and leave-one-out analyses. The IVW analysis revealed a significant correlation between the genetic inclination towards depression and a heightened risk of developing endometriosis [Odds Ratio (OR) = 1.151, 95% Confidence Interval (CI) = 1.025–1.293, P = .017]. Similarly, a genetic predisposition to neuroticism was significantly associated with an increased risk of endometriosis (OR = 1.128, 95% CI = 1.038–1.226, P = .004). However, no causative link was found between genetic susceptibility to anxiety and the occurrence of endometriosis. Reverse MR analysis did not support a bidirectional genetic susceptibility between endometriosis and psychiatric disorders. The MR analysis presents genetic data supporting the notion that depression and neuroticism are risk factors for endometriosis. Conversely, it found no evidence of a causal connection between anxiety and the development of endometriosis. Enhancing mental health treatment should be considered a preventive measure against endometriosis.