Analysis of drugs clinically and their identification in biological samples are of utmost importance in the process of therapeutic drug monitoring, also in pharmacokinetic investigations and tracking of illicit medications. These investigations are carried out using a variety of analytical methods, including potentiometric electrodes. Potentiometric electrodes are a wonderful solution for researchers because they outperform other methods in terms of sustainability, greenness, and cost effectiveness. In the current study, ion-selective potentiometric sensors were assembled for the aim of quantification of the anticancer drug Letrozole (LTZ). The first step was fabrication of a conventional sensor based on the formation of stable host–guest inclusion complex between the cationic drug and 4-tert-butylcalix-8-arene (TBCAX-8). Two additional sensors were prepared through membrane modification with graphene nanocomposite (GNC) and polyaniline (PANI) nanoparticles. Linear responses of 1.00 × 10–5–1.00 × 10–2, 1.00 × 10–6–1.00 × 10–2 and 1.00 × 10–8–1.00 × 10–3 with sub-Nernstian slopes of 19.90, 20.10 and 20.30 mV/decade were obtained for TBCAX-8, GNC, and PANI sensors; respectively. The developed sensors were successful in determining the drug LTZ in bulk powder and dosage form. PANI modified sensor was used to determine LTZ in human plasma with recoveries ranging from 88.00 to 96.30%. IUPAC recommendations were followed during the evaluation of the electrical performance of the developed sensors. Experimental conditions as temperature and pH were studied and optimized. Analytical Eco-scale and Analytical GREEness metric were adopted as the method greenness assessment tools.