A variety of contaminants in food is an important aspect affecting food safety. Due to the presence of its trace amounts and the complexity of food matrix, it is very difficult to effectively separate and accurately detect them. The magnetic metal-organic framework (MMOF) composites with different structures and functions provide a new choice for the purification of food matrix and enrichment of trace targets, thus providing a new direction for the development of new technologies in food safety detection with high sensitivity and efficiency. The MOF materials composed of inorganic subunits and organic ligands have the advantages of regular pore structure, large specific surface area and good stability, which have been thoroughly studied in the pretreatment of complex food samples. MMOF materials combined different MOF materials with various magnetic nanoparticles, adding magnetic characteristics to the advantages of MOF materials, which are in terms of material selectivity, biocompatibility, easy operation and repeatability. Combined with solid phase extraction (SPE) technique, MMOF materials have been widely used in the food pretreatment. This article introduced the new preparation strategies of different MMOF materials, systematically summarizes their applications as SPE adsorbents in the pretreatment of food contaminants and analyzes and prospects their future application prospects and development directions.