Plant community composition typically undergoes progressive changes along environmental gradients. However, most experimental studies have focused on individual communities, so it remains unclear how exogenous nutrient inputs affect the stability of plant communities along environmental gradients. Along a rainfall gradient on the northern Xizang Plateau, we conducted an 8-year nitrogen (N) addition experiment in four alpine grasslands (alpine desert steppe, ADS; alpine steppe, AS; alpine meadow steppe, AMS; and alpine meadow, AM) and used two-way ANOVA to examine the effects of N addition on the temporal stability of these different alpine grasslands. We found that community aboveground biomass showed saturation trends in AM and AMS with increasing N gradients, while there was no change in AS and a gradual increase in ADS. The temporal stability showed different patterns of gradual decreases in ADS and AM, and a unimodal trend in AMS with increasing N gradients. However, N addition had no effect on the temporal stability of AS. Dominant species stability was the controlling factor for alpine grasslands along the transect, while the effect of asynchrony gradually increased with decreasing precipitation. These findings highlight that community composition, especially the dominant species, along the environmental gradient can mediate the effects of N inputs on community temporal stability. Thus, the conservation and restoration of the dominant species are particularly important under future scenarios of increased atmospheric N deposition.