In this work, CoNiWO4 nanocomposite was used as an electrochemical sensor for the simultaneous electrochemical detection of tramadol and serotonin. The nanocomposite was synthesized using a hydrothermal method and characterized via XRD, SEM, TGA, Zeta, UV, and FTIR. The sensor was developed by depositing CoNiWO4-NPs onto the glassy carbon electrode surface. Tramadol and serotonin were detected by employing cyclic voltammetry (CV), differential pulse voltammetry (DPV), electrochemical impedance spectroscopy (EIS), and chronoamperometry. Analytes were detected at different pH, concentrations, and scan rates. The prepared sensor showed a 0–60 µM linear range, with a LOD of 0.71 µM and 4.29 µM and LOQ of 14.3 µM and 2.3 µM for serotonin and tramadol, respectively. Finally, the modified electrode (CoNiWO4–GCE) was applied to determine tramadol and serotonin in biological samples.