Lung cancer's high incidence and dismal prognosis with traditional treatments like surgery and radiotherapy necessitate innovative approaches. Despite advancements in nanotherapy, the limitations of single-treatment modalities and significant side effects persist. To tackle lung cancer effectively, we devised a temperature-sensitive hydrogel-based local injection system with near-infrared triggered drug release. Utilizing 2D MXene nanosheets as carriers loaded with R837 and cisplatin (DDP), encapsulated within a temperature-sensitive hydrogel-forming PEG-MXene@DDP@R837@SHDS (MDR@SHDS), we administered in situ injections of MDR@SHDS into tumor tissues combined with photothermal therapy (PTT). The immune adjuvant R837 enhances dendritic cell (DC) maturation and tumor cell phagocytosis, while PTT induces tumor cell apoptosis and necrosis by converting light energy into heat energy. Material characterization employed transmission electron microscopy, X-ray photoelectron spectroscopy, phase transition temperature, and near-infrared thermography. In vitro experiments assessed Lewis cell proliferation and apoptosis using CCK-8, Edu, and TUNEL assays. In vivo experiments on C57 mouse Lewis transplant tumors evaluated the photothermal effect via near-infrared thermography and assessed DC maturation and CD4+/CD8+ T cell ratios using flow cytometry. The in vivo anti-tumor efficacy of MDR@SHDS was confirmed by tumor growth curve recording and HE and TUNEL staining of tumor sections. The hydrogel exhibited excellent temperature sensitivity, controlled release properties, and high biocompatibility. In vitro experiments revealed that MDR@SHDS combined with PTT had a greater inhibitory effect on tumor cell proliferation compared to MDR@SHD alone. Combining local immunotherapy, chemotherapy, and PTT yielded superior anti-tumor effects than individual treatments. MDR@SHDS, with its simplicity, biocompatibility, and enhanced anti-tumor effects in combination with PTT, presents a promising therapeutic approach for lung cancer treatment, offering potential clinical utility.