Gastric cancer currently has no effective treatment due to its high metastasis and heterogeneity. It has been reported that ropivacaine (Rop) can inhibit the growth, migration, and invasion of gastric cancer. However, the therapeutic mechanism of Rop still needs to be further explored to provide insights for its clinical application. This study aimed to explore the effects of Rop on the growth, migration, and invasion of gastric cancer cells and the underlying mechanisms. The expression levels of SNX10 were assessed in gastric cancer tissues and cell line AGS by qRT‐PCR. Cell Counting Kit‐8 (CCK8) assay, wound‐healing assay, and transwell assay were then used to examine the effects of Rop on the AGS cell viability, migration, invasion, and proliferation, respectively. Additionally, colony formation assay was used to measure cell proliferation ability, and flow cytometry was used to detect apoptosis level. Protein levels of SNX10, SRC, and STAT3 were detected by western blot. According to the experimental results, the decreased SNX10 mRNA expression was observed in gastric cancer tissue and cell line AGS. Rop inhibited the proliferation, migration, and invasion of AGS cells, but promoted apoptosis and upregulated SNX10 expression. Moreover, Rop inhibited the expression of MMP‐2 and MMP‐9, phosphorylation of SRC and STAT3. SNX10 knockdown could reverse Rop‐induced anticancer effects. Collectively, Rop showed a potential role in preventing proliferation and metastasis of gastric cancer. The action mechanism of Rop may be related to the upregulation of SNX10 expression and further inhibition of SRC/STAT3 signaling pathway. Our findings provide new insights into the anticancer properties of Rop.