Functionalized MNPs were synthesized to serve as solid-phase extraction sorbents for simultaneous enrichment and detection of endocrine disrupting compounds in milk samples with the aid of GC–MS. Analyte extraction and desorption were carried out quickly and the whole pretreatment process could be accomplished by simple vortex and ultrasonication within 25 min.