This study described the preparation of an azide covalent organic framework-embedded molecularly imprinted polymers (COFs(azide)@MIPs) platform for urea adsorption and indirect ethyl carbamate (EC) removal from Chinese yellow rice wine (Huangjiu). By modifying the pore surface of COFs using the copper-catalyzed azide-alkyne cycloaddition (CuAAC) reaction, COFs(azide) with a high fluorescence quantum yield and particular recognition ability were inventively produced. In order to selectively trap urea, the COFs(azide) were encased in an imprinted shell layer via imprinting technology. With a detection limit (LOD) of 0.016 μg L-1 (R2 = 0.9874), the COFs(azides)@MIPs demonstrated a good linear relationship with urea in the linear range of 0–5 μg L-1. Using real Huangjiu samples, the spiking recovery trials showed the viability of this sensing platform with recoveries ranging from 88.44 % to 109.26 % and an RSD of less than 3.40 %. The Huangjiu processing model system achieved 38.93 % EC reduction by COFs(azides)@MIPs. This research will open up new avenues for the treatment of health problems associated with fermented alcoholic beverages, particularly Huangjiu, while also capturing and removing hazards coming from food.