In this work, a new electrochemical sensor for the detection of 5-Fluorouracil (5-FU) as a liver cancer medicine in serum samples is developed and evaluated. Green synthesized Zinc Oxide (ZnO) nanorods and a modified glassy carbon electrode (ZnO@ZIF-8/GCE) are used in the sensor, which shows encouraging findings in terms of selectivity, stability, and sensitivity. High sensitivity and selectivity towards 5-FU are demonstrated by the ZnO@ZIF-8 nanocomposite electrode, even in presence of a variety of potential electroactive interferences. The ZnO@ZIF-8/GCE’s stability and repeatability in identifying 5-FU were examined using Differential Pulse Voltammetry (DPV) analysis. The low detection limit (DL) of the sensor system was found to be 0.022 µM. The DL is defined as the change in peak current by three relative standard deviations. The range of the linear determination is 2 µM–660 µM. The ZnO@ZIF-8/GCE’s applicability in identifying 5-FU was assessed by determining 5-FU in human-serum specimens using DPV and the manufactured sensor. The Relative Standard Deviation (RSD) values varied between 3.85 % and 4.42 %, while the recoveries ranged from 98.20 % to 99.44 %. In the context of monitoring cancer treatment, this research constitutes a major advancement in the field of electrochemical sensing.