We report the first molecularly imprinted polymer (MIP) based electrochemical sensor for the determination of the antidiabetic drug Linagliptin (LNG) in pure sample, tablets, and spiked human urine and serum samples. Using a graphite electrode, differential pulse voltammetry (DPV) was applied to study the electrochemical behavior of LNG in a Britton Robinson (BR) universal buffer of pH 8 with Ag/AgCl electrode and Pt wire. The sensor is based on the modification of the traditional carbon paste sensor with Itaconic acid as monomer, which cross-linked using ethylene glycol dimethacrylate and multiwalled carbon nanotubes (MWCNTs) as a modifier. The different factors were optimized, such as ratio of MIP components, percentage of MWCNT, pH, accumulation time, accumulation potential and scan rate. The proposed sensor was characterized using electrochemical impedance spectroscopy, Fourier-transform infrared spectroscopy, and Brunauer–Emmett–Teller. DPV was applied to obtain the calibration curve and optimization of different factors, the proposed sensor shows a wide linear range of 1х10-12M (0.47ng/L) to 1х10-7M (47.26µg/L) and limit of detection (LOD)1х10-13M (0.05ng/L) while the limit of quantification (LOQ) was found to be 3.3х 10-13M (0.16ng/L) in addition to good reproducibility and selectivity.