Authenticating whole wheat foods poses a significant challenge for both the grain industry and consumers. Alkylresorcinols (ARs), serving as biomarkers of whole wheat, play a crucial role in assessing the authenticity of whole wheat foods. Herein, we introduce a novel molecularly imprinted electrochemical sensor with modifications involving a molecularly imprinted polymer (MIP) and MXene nanosheets, enabling highly sensitive and selective detection of ARs. Notably, we specifically chose 5heneicosylresorcinol (AR21), the predominant homologue in whole wheat, as the template molecule. α-Cyclodextrin and acrylamide served as dual functional monomers, establishing a robust multiple interaction between the MIP and AR21. As a result, the sensor exhibited a wide linear range of 0.005 to 100 μg•mL −1 and a low detection limit of 2.52 ng•mL −1 , demonstrating exceptional selectivity and stability. When applied to commercial whole wheat foods, the assay achieved satisfactory recoveries and accuracy, strongly validating the practicality and effectiveness of this analytical technique.