Although microglia are macrophages of the central nervous system, their involvement is not limited to immune functions. The roles of microglia during development in humans remain poorly understood due to limited access to fetal tissue. To understand how microglia can impact human neurodevelopment, the methyl-CpG binding protein 2 (MECP2) gene was knocked out in human microglia-like cells (MGLs). Disruption of the MECP2 in MGLs led to transcriptional and functional perturbations, including impaired phagocytosis. The co-culture of healthy MGLs with MECP2-knockout (KO) neurons rescued synaptogenesis defects, suggesting a microglial role in synapse formation. A targeted drug screening identified ADH-503, a CD11b agonist, restored phagocytosis and synapse formation in spheroid-MGL co-cultures, significantly improved disease progression, and increased survival in MeCP2-null mice. These results unveil a MECP2-specific regulation of human microglial phagocytosis and identify a novel therapeutic treatment for MECP2-related conditions.