Urolithiasis is a highly prevalent global disease closely associated with metabolic factors; however, the causal relationship between blood metabolites and urolithiasis remains poorly understood. In our study, we employed a bi-directional two-sample Mendelian randomization (MR) analysis to investigate the causal associations between urolithiasis and metabolites. The random-effects inverse-variance weighted (IVW) estimation method was utilized as the primary approach, complemented by several other estimators including MR-Egger, weighted median, colocalization and MR-PRESSO. Furthermore, the study included replication and meta-analysis. Finally, we conducted metabolic pathway analysis to elucidate potential metabolic pathways. After conducting multiple tests for correction, glycerol might contribute to the urolithiasis and dehydroisoandrosterone sulfate (DHEA-S) might inhibit this process. Furthermore, several blood metabolites had shown potential associations with a causal relationship. Among the protective metabolites were lipids (dehydroisoandrosterone sulfate and 1-stearoylglycerol (1-monostearin)), amino acids (isobutyrylcarnitine and 2-aminobutyrate), a keto acid (acetoacetate) and a carbohydrate (mannose). The risk metabolites included lipids (1-palmitoylglycerophosphoethanolamine, glycerol and cortisone), a carbohydrate (erythronate), a peptide (pro-hydroxy-pro) and a fatty acid (eicosenoate). In reverse MR analysis, urolithiasis demonstrated a statistically significant causal relationship with butyrylcarnitine, 3-methyl-2-oxobutyrate, scyllo-inositol, leucylleucine and leucylalanine. However, it was worth noting that none of the blood metabolites exhibited statistical significance after multiple corrections. Additionally, we identified one metabolic pathway associated with urolithiasis. The results we obtained demonstrate the causal relevance between two metabolites and urolithiasis, as well as identify one metabolic pathway potentially associated with its development. Given the high prevalence of urolithiasis, further investigations are encouraged to elucidate the mechanisms of these metabolites and explore novel therapeutic strategies.