Gastric cancer (GC) poses a significant global health challenge, demanding a detailed exploration of its molecular landscape. Studies suggest that exposure to environmental pollutants can lead to changes in microRNA (miRNA) expression patterns, which may contribute to the development and progression of GC. MiRNAs have emerged as crucial regulators implicated in GC pathogenesis. The largest GC serum miRNA dataset to date, comprising 1417 non-cancer controls and 1417 GC samples was used. We conducted a comprehensive analysis of miRNA expression profiles. Differential expression analysis, co-expression network construction, and machine learning models were employed to identify key serum miRNAs and their association with clinical parameters. Weighted Gene Co-expression Network Analysis (WGCNA) and immune infiltration analysis were used to validate the importance of the key miRNA. A total of 1766 differentially expressed miRNAs were identified, with miR-1290, miR-1246, and miR-451a among the top up-regulated, and miR-6875-5p, miR-6784-5p, miR-1228-5p, and miR-6765-5p among the top down-regulated. WGCNA revealed that modules M1 and M5 were significantly associated with GC subtypes and disease status. MiRNA-target gene network analysis identified prognostically significant genes TP53, EMCN, CBX8, and ALDH1A3. Machine learning models LASSO, SVM, randomforest, and XGBOOST demonstrated the diagnostic potential of miRNA profiles. Tissue and serum miR-187 emerged as an independent prognostic factor, influencing patient survival across clinical parameters. Gene expression and immune cell infiltration were different in tissues stratified by miR-187 expression. In summary, the integration of differential gene expression, co-expression analysis, and immune cell profiling provided insights into the molecular intricacies of GC progression.