BackgroundLow immune function after laparoscopic total gastrectomy puts patients at risk of infection-related complications. Low-dose naloxone (LDN) can improve the prognosis of patients suffering from chronic inflammatory diseases or autoimmune diseases. The use of LDN during perioperative procedures may reduce perioperative complications. The purpose of this study was to examine the effects of LDN on endogenous immune function in gastric cancer patients and its specific mechanisms through a randomized controlled trial.MethodsFifty-five patients who underwent laparoscopic-assisted total gastrectomy were randomly assigned to either a naloxone group (n = 23) or a nonnaloxone group (n = 22). Patients in the naloxone group received 0.05 µg/kg-1.h− 1naloxone from 3 days before surgery to 5 days after surgery via a patient-controlled intravenous injection (PCIA) pump, and patients in the nonnaloxone group did not receive special treatment. The primary outcomes were the rates of postoperative complications and immune function assessed by NK cell, CD3+ T cell, CD4+ T cell, CD8+ T cell, WBC count, neutrophil percentage, and IL-6 and calcitonin levels. The secondary outcomes were the expression levels of TLR4 (Toll-like receptor), IL-6 and TNF-α in gastric cancer tissue.ResultsCompared with the nonnaloxone group, the naloxone group exhibited a lower incidence of infection (in the incision, abdomen, and lungs) (P < 0.05). The numbers of NK cells and CD8+ T cells in the naloxone group were significantly greater than those in the nonnaloxone group at 24 h after surgery (P < 0.05) and at 96 h after surgery (P < 0.05). Compared with those in the nonnaloxone group, the CD3 + T-cell (P < 0.05) and CD4 + T-cell (P < 0.01) counts were significantly lower in the naloxone group 24 h after surgery. At 24 h and 96 h after surgery, the WBC count (P < 0.05) and neutrophil percentage (P < 0.05) were significantly greater in the nonnaloxone group. The levels of IL-6 (P < 0.05) and calcitonin in the nonnaloxone group were significantly greater at 24 h after surgery. At 24 h following surgery, the nonnaloxone group had significantly greater levels of IL-6 (P < 0.05) and calcitonin than did the naloxone group. Compared with those in the naloxone group, the expression levels of TLR4 (P < 0.05) in gastric cancer tissue in the naloxone group were greater; however, the expression levels of IL-6 (P < 0.01) and TNF-α (P < 0.01) in the naloxone group were greater than those in the nonnaloxone group.ConclusionLaparoscopic total gastrectomy patients can benefit from 0.05 ug/kg− 1. h− 1 naloxone by reducing their risk of infection. It is possible that LDN alters the number of cells in lymphocyte subpopulations, such as NK cells, CD3 + T cells, and CD4 + T cells, and the CD4+/CD8 + T-cell ratio or alters TLR4 receptor expression in immune cells, thereby altering immune cell activity.Trial registrationThe trial was registered at the Chinese Clinical Trial Registry on 24/11/2023 (ChiCTR2300077948).