The Anoplophora glabripennis (Motschulsky) is a phytophagous pest that is seriously endangering Salix babylonica Linn. and S. matsudana Koidz. Poor control can damage local ecosystems, resulting in economic losses and management risks. In the context of climate change, the climatic ecological niche of organisms is no longer compatible with the surrounding environment. To mitigate the effects of climate change, some organisms respond adaptively to climate change through different mechanisms and in different ways. In this study, an optimized MaxEnt model was used to explore the potential distribution areas of A. glabripennis and its host plants, S. babylonica and S. matsudana, in response to current and future climate and to determine their movement routes and relative dynamics. The results show that the optimized model exhibits the lowest complexity and excellent prediction accuracy. It is important to note that both temperature and precipitation are the main environmental factors affecting the distribution of suitable habitats for A. glabripennis and its host plants. This is evidenced by the mean temperature of the warmest quarter and precipitation of the wettest month being the main environmental factors affecting the distribution of suitable habitats for the host plants. Similarly, the minimum temperature of the coldest month and precipitation seasonality are the primary bioclimatic variables constraining the dispersal of A. glabripennis. Under climate change, the suitable areas of both S. babylonica and S. matsudana are declining, while the suitable areas of A. glabripennis are expanding in future climates. Furthermore, three species exhibited a proclivity for migration to higher latitudes in response to climate change. In conclusion, this study contributes to our understanding of the biogeographic characteristics of these A. glabripennis, S. babylonica, and S. matsudana and provides a basis for the formulation of timely conservation strategies to reduce the potential impacts of climate change. This is of great significance for the rational management, utilization, and protection of forest ecosystems in China.