3D printed solid phase microextraction scaffolds as a novel sorbent were introduced for the extraction of antifungal drugs in wastewater and human plasma prior to their determination by HPLC-UV. The designed adsorbent was prepared as cubic scaffolds using fused deposition modeling (FDM) 3D printer and Polylactic acid (PLA) filament. Scaffold surface was chemically modified using alkaline ammonia solution (Alkali treatment). The application of this new design in the extraction of three antifungal drugs ketoconazole, clotrimazole and miconazole was investigated. Alkali surface modification time was optimized (0.5-5hr) and 4hr selected as the best-modification time. Morphology of the modified surface and its chemical changes were studied using Field Emission Scanning Electron Microscope (FE-SEM) and Attenuated Total Reflectance Fourier Transform Infrared spectroscopy (ATR-FTIR), respectively. Surface wettability of scaffolds was measured by Water Contact Angel (WCA) and the porosity created in the scaffolds was studied by N2 adsorption/desorption studies analysis. Analytical performance of the method, under optimum conditions (extraction time: 25 min, desorption solvent: methanol, volume of desorption solvent: 2 mL, desorption time: 10 min, solution pH: 8, solution temperature: 40 °C, salt concentration: 3 mol L−1) were obtained as 3.10 and 10.0 µg L−1 for LOD and LOQ, respectively. The calibration graphs were linear in the range of 10–150 µg L−1 and 10-100 µg L−1 for wastewater and plasma, respectively.