Abnormal levels of penciclovir (PCV) in humans may lead to inflammation and renal impairment, and its frequent detection in the aquatic environment poses environmental hazards. Consequently, timely detection and regulation of PCV concentrations in the human body are crucial for drug research, disease diagnosis, and environmental protection. In this study, a PCV electrochemical sensing platform based on MoS2NSs@AgNPs/MWCNTs-COOH was constructed by in situ reduction of silver nanoparticles (AgNPs) on MoS2 nanosheets (MoS2NSs) and complexed with carboxylated multi-walled carbon nanotubes (MWCNTs-COOH). The synergistic effect of highly conductive AgNPs, high surface area MoS2NSs, and MWCNTs-COOH increased the electron transfer rate at the electrode surface and thus effectively promoted the electrooxidation process of PCV. The electrochemical performance of the sensor was investigated and optimized by cyclic voltammetry (CV) and linear scanning voltammetry (LSV). The linear response of PCV under optimal conditions was in the range of 0.5–200.0 µM, with a limit of detection (LOD) of 0.039 µM (S/N = 3), and recoveries of 98.1–101.1 %, 95.6–101.6 %, 97.0–103.6 %, and 96.0–100.9 %. The results show that the constructed MoS2NSs@AgNPs/MWCNTs-COOH /GEC sensing platform has the advantages of high sensitivity, fast response speed, and strong anti-interference ability. This work is the first to develop an electrochemical sensing platform for PCV based on MoS2NSs@AgNPs/MWCNTs-COOH, providing a new PCV quantitative detection solution.