BackgroundCancer-associated fibroblasts (CAFs) are essential tumoral components of gastric cancer (GC), contributing to the development, therapeutic resistance and immune-suppressive tumor microenvironment (TME) of GC. This study aimed to explore the factors related to matrix CAFs and establish a CAF model to evaluate the prognosis and therapeutic effect of GC.MethodsSample information from the multiply public databases were retrieved. Weighted gene co-expression network analysis was used to identify CAF-related genes. EPIC algorithm was used to construct and verify the model. Machine-learning methods characterized CAF risk. Gene set enrichment analysis was employed to elucidate the underlying mechanism of CAF in the development of GC.ResultsA three-gene (GLT8D2, SPARCandVCAN) prognostic CAF model was established, and patients were markedly divided according to the riskscore of CAF model. The high-risk CAF clusters had significantly worse prognoses and less significant responses to immunotherapy than the low-risk group. Additionally, the CAF risk score was positively associated with CAF infiltration in GC. Moreover, the expression of the three model biomarkers were significantly associated with the CAF infiltration. GSEA revealed significant enrichment of cell adhesion molecules, extracellular matrix receptors and focal adhesions in patients at a high risk of CAF.ConclusionThe CAF signature refines the classifications of GC with distinct prognosis and clinicopathological indicators. The three-gene model could effectively aid in determining the prognosis, drug resistance and immunotherapy efficacy of GC. Thus, this model has promising clinical significance for guiding precise GC anti-CAF therapy combined with immunotherapy.