Exogenous nitrogen (N) input significantly affects arbuscular mycorrhizal fungi (AMF) in terrestrial ecosystems. However, how N input in leguminous plants and inorganic N fertilization affect AMF in forage grass cultivation is still unclear. AMF biodiversity indices and soil properties were measured after N fertilization and low or high density Amorpha fruticosa planting in forage grass cultivation areas under six treatments: control; A. fruticosa under low density (AFD1); A. fruticosa under high density (AFD2); N fertilization (N); A. fruticosa under low density with N fertilization (AFD1N); and A. fruticosa under high density with N fertilization (AFD2N). N fertilization in N and AFD1N treatments significantly increased AMF abundance in July. The highest AMF richness and Chao 1 values occurred in AFD2N and AFD2 treatments in December and July, respectively. The Glomus, Funneliformis, Claroideoglomus, and Septoglomus genera were the most abundant in all samples. Growth stage, legume density, N fertilization, and their interaction significantly impacted AMF community composition. AMF community composition differed significantly between N fertilization treatments (N, AFD1N, and AFD2N) and the control in December, and Septoglomus contributed to most of the changes by significantly decreasing in N fertilization treatments. Glomus contributed most to the A. fruticosa treatment changes, significantly decreasing in the AFD1 treatment in December and increasing in the AFD2 treatment in July compared to the control. AMF community composition at the genus level showed more species-pair interactions, and a higher negative correlation with a dominant driving force in Glomus, Funneliformis, Claroideoglomus, and Septoglomus in the N fertilization treatments. These results suggested that Septoglomus was sensitive to N fertilization while Glomus was sensitive to A. fruticosa N fixing. Higher inter-species competition in the relative abundant taxa among the N fertilization treatments compared to the A. fruticosa planting treatments and control highlighted the AMF community composition response to N input. Our findings provide guidance for the effective agricultural management of forage grass.