BackgroundSodium-glucose cotransporter 2 inhibitors (SGLT2i) initially emerged as oral antidiabetic medication but were subsequently discovered to exhibit pleiotropic actions. Insomnia is a prevalent and debilitating sleep disorder. To date, the causality between SGLT2 inhibitors and insomnia remains unclear. This study aims to evaluate the causality between SGLT2 inhibitors and insomnia and identify potential plasma protein mediators. MethodsUsing a two-sample Mendelian Randomization (MR) analysis, we estimated the causality of SGLT2 inhibition on insomnia and sleep duration. Additionally, employing a two-step and proteome-wide MR analysis, we evaluated the causal link of SGLT2 inhibition on 4907 circulating proteins and the causality of SGLT2 inhibition-driven plasma proteins on insomnia. We applied a false discovery rate (FDR) correction for multiple comparisons. Furthermore, mediation analyses were used to identify plasma proteins that mediate the effects of SGLT2 inhibition on insomnia. ResultsSGLT2 inhibition was negatively correlated with insomnia (odds ratio [OR] = 0.791, 95 % confidence interval [CI] [0.715, 0.876], P = 5.579*10^-6) and positively correlated with sleep duration (β = 0.186, 95 % CI [0.059, 0.314], P = 0.004). Among the 4907 circulating proteins, diadenosine tetraphosphatase (Ap4A) was identified as being linked to both SGLT2 inhibition and insomnia. Mediation analysis indicated that the effect of SGLT2 inhibition on insomnia partially operates through Ap4A (β = −0.018, 95 % CI [−0.036, −0.005], P = 0.023), with a mediation proportion of 7.7 %. ConclusionThe study indicated a causality between SGLT2 inhibition and insomnia, with plasma Ap4A potentially serving as a mediator.