Gastric cancer remains a leading cause of cancer-related mortality globally. Traditional open surgery for gastric cancer is often associated with significant morbidity and prolonged recovery. To evaluate the effectiveness of laparoscopic minimally invasive surgery as an alternative to traditional open surgery for gastric cancer, focusing on its potential to reduce trauma, accelerate recovery, and achieve comparable oncological outcomes. This study retrospectively analyzed 203 patients with gastric cancer who underwent surgery at the Shanghai Health Medical College Affiliated Chongming Hospital from January 2020 to December 2023. The patients were divided into two groups: Minimally invasive surgery group (n = 102), who underwent laparoscopic gastrectomy, and open surgery group (n = 101), who underwent traditional open gastrectomy. We compared surgical indicators (surgical incision size, intraoperative blood loss, surgical duration, and number of lymph nodes dissected), recovery parameters (time to first flatus, time to start eating, time to ambulation, and length of hospital stay), immune function (levels of IgA, IgG, and IgM), intestinal barrier function (levels of D-lactic acid and diamine oxidase), and stress response (levels of C-reactive protein, interleukin-6, and procalcitonin). The minimally invasive surgery group demonstrated significantly better outcomes in terms of surgical indicators, including smaller incisions, less blood loss, shorter surgery time, and more lymph nodes dissected (P < 0.05 for all). Recovery was also faster in the minimally invasive surgery group, with earlier return of bowel function, earlier initiation of diet, quicker mobilization, and shorter hospital stays (P < 0.05 for all). Furthermore, patients in the minimally invasive surgery group had better preserved immune function, superior intestinal barrier function, and a less pronounced stress response postoperatively (P < 0.05 for all). Laparoscopic minimally invasive surgery for gastric cancer not only provides superior surgical indicators and faster recovery but also offers advantages in preserving immune function, protecting intestinal barrier function, and mitigating the stress response compared to traditional open surgery. These findings support the broader adoption of laparoscopic techniques in the management of gastric cancer.