Claudin18.2 (CLDN18.2) is a tight junction protein often overexpressed in various solid tumors, including gastrointestinal and esophageal cancers, serving as a promising target and potential biomarker for tumor diagnosis, treatment assessment, and prognosis. Despite its significance, no biosensor has been reported to date for the detection of CLDN18.2. Here, we present the inaugural immunosensor for CLDN18.2. In this study, an amine-rich conducting polymer of polymelamine (PM) was electrografted onto different carbon nanomaterial-based screen-printed electrodes (SPEs), including carbon (C), graphene (Gr), graphene oxide (GO), carbon nanotube (CNT), and carbon nanofiber (CNF) via cyclic voltammetry. A comparative study was performed to explore the best material for the preparation of the PM-modified electrodes to be used as in-situ redox substrate for the immunosensor fabrication. The surface chemistry and structural features of pristine and PM-deposited electrodes were analyzed using Raman and scanning electron microscopy (SEM) techniques. Our results showed that the PM deposited on Gr and CNT/SPEs exhibited the most significant and stable redox behavior in PBS buffer. The terminal amine moieties on the PM-modified electrode surfaces were utilized for immobilizing anti-CLDN18.2 monoclonal antibodies via N-ethyl-N′-(3-(dimethylamino)propyl)carbodiimide/N-hydroxysuccinimide chemistry to construct the electrochemical immunosensor platform. Differential pulse voltammetry-based immunosensing of CLDN18.2 protein on BSA/anti-CLDN18.2/PM-Gr/SPE and BSA/anti-CLDN18.2/PM-CNT/SPE exhibited excellent selectivity against other proteins such as CD1, PDCD1, and ErBb2. The limits of detection of these two immunosensor platforms were calculated to be 7.9 pg/mL and 0.104 ng/mL for the CNT and Gr immunosensors, respectively. This study demonstrated that the PM-modified Gr and CNT electrodes offer promising platforms not only for the reagentless signaling but also for covalent immobilization of biomolecules. Moreover, these platforms offer excellent sensitivity and selectivity for the detection of CLDN18.2 due to its enhanced stable redox activity. The immunosensor demonstrated promising results for the sensitive detection of CLDN18.2 in biological samples, addressing the critical need for early gastric cancer diagnosis.