Bisphenols and benzophenones are two typical kinds of endocrine-disrupting compounds (EDCs) that have been extensively detected in water environments, posing unanticipated risks to aquatic organisms and humans. It is urgent to develop efficient sample pretreatment methods for precise measurement of such EDCs. In this study, a magnetic and multi-shelled metal-organic framework derivative material has been prepared to extract and enrich trace bisphenols and benzophenones from water. Via a solvothermal reaction induced by sodium citrate followed by a carbonization treatment, a ZIF-67@ZIF-8 derived CoZn-magnetic hierarchical carbon (CoZn-MHC) material has been synthesized as a high-performance magnetic solid-phase extraction (MSPE) adsorbent. This adsorbent exhibited a good specific surface area (213.80 m2⋅g−1) and a saturation magnetization of 63.2 emu·g−1. After the optimization of several parameters (including adsorbent dosage, extraction time, pH, ionic strength, desorption solvent, and solvent volume), an efficient MSPE method for several EDCs (comprising bisphenols and benzophenones) was developed with a good linear range (R2 ≥ 0.990), a high sensitivity range (LODs: 0.793–5.37 ng⋅L−1), and good reusability (RSD ≤4.67 % in five consecutive tests). Furthermore, the material exhibited commendable resistance to matrix interference in natural water samples with the recovery rates of target compounds ranging from 74.8 % to 107 %. We envision that the preparation strategy of this functional metal-organic framework (MOF)-based adsorbent for EDCs may provide insights for relevant research in the future.