BackgroundThis study aimed to identify metabolic subtypes in ESCA, explore their relationship with immune landscapes, and establish a metabolic index for accurate prognosis assessment.MethodsClinical, SNP, and RNA-seq data were collected from 80 ESCA patients from the TCGA database and RNA-seq data from the GSE19417 dataset. Metabolic genes associated with overall survival (OS) and progression-free survival (PFS) were selected, and k-means clustering was performed. Immune-related pathways, immune infiltration, and response to immunotherapy were predicted using bioinformatic algorithms. Weighted gene co-expression network analysis (WGCNA) was conducted to identify metabolic genes associated with co-expression modules. Lastly, cell culture and functional analysis were performed using patient tissue samples and ESCA cell lines to verify the identified genes and their roles.ResultsMolecular subtypes were identified based on the expression profiles of metabolic genes, and univariate survival analysis revealed 163 metabolic genes associated with ESCA prognosis. Consensus clustering analysis classified ESCA samples into three distinct subtypes, with MC1 showing the poorest prognosis and MC3 having the best prognosis. The subtypes also exhibited significant differences in immune cell infiltration, with MC3 showing the highest scores. Additionally, the MC3 subtype demonstrated the poorest response to immunotherapy, while the MC1 subtype was the most sensitive. WGCNA analysis identified gene modules associated with the metabolic index, with SLC5A1, NT5DC4, and MTHFD2 emerging as prognostic markers. Gene and protein expression analysis validated the upregulation of MTHFD2 in ESCA. MTHFD2 promotes the progression of ESCA and may be a potential therapeutic target for ESCA.ConclusionThe established metabolic index and identified metabolic genes offer potential for prognostic assessment and personalized therapeutic interventions for ESCA, underscoring the importance of targeting metabolism-immune interactions in ESCA. MTHFD2 promotes the progression of ESCA and may be a potential therapeutic target for ESCA.