The rising urban land surface temperature (LST) has undoubtedly caused an imminent threat to human habitat. Landscape patterns are among the most significant factors related to LST. However, the marginal effects and thresholds of landscape at optimal grid scale on LST within diverse local climate zones (LCZs) are poorly understood. This study employed the boosted regression trees (BRT) model to evaluate the relative influences and marginal effects of built-up, water, and green landscape metrics on LST at the optimal grid scale across various LCZs. The findings reveal that: (1) The spatial spread trend of LST closely matches the expansion trend of built-up landscapes. (2) Significant variations in average summer LST were observed among LCZs, with LCZ8 (large low-rise) exhibiting the highest temperatures and LCZ11 (dense trees) the lowest. (3) At the optimal scale of 1000 m, the DIVISION metric for water landscapes significantly influenced LCZ6 (open low-rise), LCZ8, and LCZ14 (low plants). (4) In LCZ6 and LCZ8, effective heat mitigation requires increasing water area to 50% and optimizing the water body separation index to 0.88. These findings suggest that heterogeneous landscape heat mitigation strategies should be considered across diverse LCZs in urban areas.