Metabolites associated with microbes regulate human immunity, inhibit bacterial colonization, and promote pathogenicity. Integrating microbe and metabolome research in GC provides a direction for understanding the microbe-associated pathophysiological process of metabolic changes and disease occurrence. The present study included 30 GC patients with 30 cancerous tissues and paired non-cancerous tissues (NCs) as controls. LC-MS/MS metabolomics and 16S rRNA sequencing were performed to obtain the metabolic and microbial characteristics. Integrated analysis of the microbes and metabolomes was conducted to explore the coexistence relationship between the microbial and metabolic characteristics of GC and to identify microbial-related metabolite diagnostic markers. The metabolic analysis showed that the overall metabolite distribution differed between the GC tissues and the NC tissues: 25 metabolites were enriched in the NC tissues and 42 metabolites were enriched in the GC tissues. The α and β microbial diversities were higher in the GC tissues than in the NC tissues, with 11 differential phyla and 52 differential genera. In the correlation and coexistence integrated analysis, 66 differential metabolites were correlated and coexisted, with specific differential microbes. The microbes in the GC tissue likely regulated eight metabolic pathways. In the efficacy evaluation of the microbial-related differential metabolites in the diagnosis of GC, 12 differential metabolites (area under the curve [AUC] >0.9) exerted relatively high diagnostic efficiency, and the combined diagnostic efficacy of 5 to 6 microbial-related differential metabolites was higher than the diagnostic efficacy of a single feature. Therefore, microbial diversity and metabolite distribution differed between the GC tissues and the NC tissues. Microbial-related metabolites may be involved in eight major metabolism-based biological processes in GC and represent potential diagnostic markers.