A novel magnetic covalent organic framework was synthesized via a one-step coating approach with solvothermal reaction employing 2,4,6-tris(4-aminophen-yl)-1,3,5-triazine and 2,4,6-triformylphloroglucinol as two building blocks by covalent bonding. The prepared magnetic covalent organic frameworks were properly characterized by different techniques and employed as adsorbents of magnetic solid-phase extraction. An analytical method was developed for the simultaneous determination of five fungicides in two Chinese herbal medicine samples via magnetic solid-phase extraction coupled to ultra high performance liquid chromatography with tandem mass spectrometry analysis. Under optimized magnetic solid-phase extraction conditions, the method exhibited satisfactory recoveries (74.0-109.6%) with relative standard deviations of 0.4-4.6%, low limits of detection (0.003-0.015 μg/kg), and good linearity (R2 > 0.9960). Compared with the traditional extraction method, the proposed method required a lower amount of adsorbent (3 mg) and extraction time (5 min). The adsorbent also had favorable reusability (not less than eight times). Therefore, the magnetic covalent organic frameworks could be a promising adsorbent for the extraction and quantitation of fungicides in Chinese herbal medicines.