BackgroundGastric cancer is a leading cause of cancer-related deaths influenced by both genetic and environmental factors. Triphenyl phosphate (TPP) is a prevalent flame retardant, but its health implications remain to be thoroughly understood. ObjectiveTo explore the link between TPP exposure and gastric cancer by examining gene expression patterns and developing a predictive model. MethodsGene expression data were sourced from The Cancer Genome Atlas (TCGA) and the Comparative Toxicogenomics Database (CTD). Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathways were employed for analysis. Single-sample Gene Set Enrichment Analysis (ssGSEA) was used to obtain phosphate flame retardant-related scores. A predictive model was constructed through differential analysis, univariate COX regression, and LASSO regression. Molecular docking was performed to assess protein interactions with TPP. ResultsssGSEA identified scores related to phosphate flame retardants in gastric cancer, which had a strong association with immune-related traits. Several genes associated with TPP were identified and used to develop a prognostic model that has clinical significance. Molecular docking showed a high binding affinity of TPP with MTTP, a gene related to lipid metabolism. Pathway analysis indicated that TPP exposure contributes to gastric cancer through lipid metabolic processes. ConclusionThe study establishes a potential correlation between TPP exposure and gastric cancer onset, pinpointing key genes and pathways involved. This underscores the significance of environmental factors in gastric cancer research and presents a potential diagnostic tool for clinical application.