These data uncover a novel role for MeCP2 in 5-HT neurons to repress HTR1A expression and drive adult anxiety- and depression-like behaviors in a sex-specific manner. Here, MECP2 is linked to major depressive disorder.