Diroximel fumarate (DRF) is a new oral fumarate applied in the treatment of multiple sclerosis (MS). The present work introduces a new method for the detection of DRF drugs through a molecularly imprinted polymer (MIP). The MIP was synthesized on the glassy carbon electrode (GCE) using the electropolymerization of monomer α‑cyclodextrin (α-CD) and the DRF template. In this sense, an electrochemical sensor incorporating a MIP was designed particularly to detect DRF for the first time. The modified GCE was investigated via differential pulse voltammetry (DPV), electrochemical impedance spectroscopy (EIS), cyclic voltammetry (CV), and scanning electron microscopy (SEM). The designed sensor provided acceptable selectivity, reproducibility, repeatability, and stability. Additionally, the modified electrode showed a good linear response from 0.01 to 1300 nM with a low detection limit (LOD) of 0.0033 nM. The MIP/GCE was applied for DRF detection in a real sample with success. To find out the reliability of the proposed strategy, high performance liquid chromatography (HPLC) technique was employed to detect DRF in the real sample.