Brain development and neural circuit function depend on the formation and termination of excitatory synapses. The regulation of excitatory synapse plasticity has long been associated with neuronal activity. In addition to neuronal activity, emerging data show that body metabolism affects synaptic plasticity. However, it is unclear how neuronal activity and metabolic signaling may interact to control the number and function of excitatory synapses. The nutrient sensor O-GlcNAc transferase (OGT), an enzyme that catalyzes O-GlcNAcylation of cytoplasmic and nuclear proteins depending on the metabolic state of the body, has been implicated in excitatory synapse maturation, but its activity-dependent roles and underlying mechanisms are unclear. Here, we investigated how OGT regulates excitatory synapse structure, number and AMPA-type glutamate receptors (AMPARs) in cultured hippocampal neurons under normal and activity-suppressed conditions. We show that OGT overexpression selectively enhances accumulation of the AMPARs subunit GluA1 in dendritic spines at a mature developmental stage (DIV14), but not during early development (DIV7). Chronic suppression of neuronal activity with tetrodotoxin (TTX) abolished the OGT-dependent increase in GluA1 expression, indicating that OGT-mediated regulation of AMPARs is activity-dependent. In parallel, OGT overexpression promoted coordinated growth and maturation of excitatory synapses, increasing the size and intensity of postsynaptic PSD-95 and presynaptic vGluT1 puncta, particularly at colocalized synaptic sites. These structural effects, as well as OGT-induced increases in excitatory synapse number, were eliminated by activity blockade. Together, our findings identify the nutrient sensor OGT as an activity-dependent regulator of excitatory synapse maturation and AMPARs accumulation, revealing a molecular mechanism by which neuronal activity and metabolic signaling can be integrated to shape synaptic connectivity and function.