Estimating the carbon sequestration potential of Moso bamboo (Phyllostachys pubescens) forests and optimizing management strategies play pivotal roles in enhancing quality and promoting sustainable development. However, there is a lack of methods to simulate changes in carbon sequestration capacity in Moso bamboo forests and to screen and optimize the best management measures based on long-term time series data from fixed-sample fine surveys. Therefore, this study utilized continuous survey data and climate data from fixed sample plots in Zhejiang Province spanning from 2004 to 2019. By comparing four different algorithms, namely random forest, support vector machine, XGBoost, and BP neural network, to construct aboveground carbon stock models for Moso bamboo forests. The ultimate goal was to identify the optimal algorithmic model. Additionally, the key driving parameters for future carbon stocks were considered and future aboveground carbon stocks were predicted in Moso bamboo forests. Then formulated an optimal management strategy based on these predictions. The results indicated that the carbon stock model constructed using the XGBoost algorithm, with an R2 of 0.9895 and root mean square error of 0.1059, achieved the best performance and was considered the optimal algorithmic model. The most influential driving parameters for vegetation carbon stocks in Moso bamboo forests were found to be mean age, mean diameter at breast height, and mean culm density. Under optimal management measures, which involve no harvesting of 1–3 du bamboo, 30% harvesting of 4 du bamboo, and 80% harvesting of bamboo aged 5 du and above. Our predictions show that aboveground carbon stocks in Moso bamboo forests in Zhejiang Province will peak at 36.25 ± 8.47 Tg C in 2046 and remain stable from 2046 to 2060. Conversely, degradation is detrimental to the long-term maintenance of carbon sequestration capacity in Moso bamboo forests, resulting in a peak aboveground carbon stock of 29.50 ± 7.49 Tg C in 2033, followed by a continuous decline. This study underscores the significant influence of estimating carbon sequestration potential and optimizing management decisions on enhancing and sustaining the carbon sequestration capacity of Moso bamboo forests.