The clinical efficacy of spectral entropy monitoring in improving postoperative recovery remains unclear. This trial aimed to investigate the impact of M-Entropy (GE Healthcare, Helsinki, Finland) guidance on emergence from anesthesia and postoperative delirium in thoracic surgery. Adult patients undergoing video-assisted thoracoscopic surgery for lung resection at a medical center were randomly allocated into the M-Entropy guidance group (n = 39) and the control group (n = 37). In the M-Entropy guidance group, sevoflurane anesthesia was titrated to maintain response and state entropy values between 40 and 60 intraoperatively. In the control group, the dosing of sevoflurane was adjusted based on clinical judgment and vital signs. The primary outcome was time to spontaneous eye opening. M-Entropy guidance significantly reduced the time proportion of deep anesthesia (entropy value <40) during surgery, mean difference: −21.5% (95% confidence interval (CI): −32.7 to −10.3) for response entropy and −24.2% (−36.3 to −12.2) for state entropy. M-Entropy guidance significantly shortened time to spontaneous eye opening compared to clinical signs, mean difference: −154 s (95% CI: −259 to −49). In addition, patients of the M-Entropy group had a lower rate of emergence agitation (absolute risk reduction: 0.166, 95% CI: 0.005–0.328) and delirium (0.245, 0.093–0.396) at the postanesthesia care unit. M-Entropy-guided anesthesia hastened awakening and potentially prevented emergence agitation and delirium after thoracic surgery. These results may provide an implication for facilitating postoperative recovery and reducing the complications associated with delayed emergence and delirium.