In the present work, a novel solid‐phase microextraction on a screw (MES) was employed to extract cationic dyes (malachite green, methylene blue, and rhodamine B) from food samples and fish breeding pool water. The sulfonated poly(styrene‐co‐divinylbenzene) was electrophoretically deposited on the surface of the grooves of a screw. Then the screw was placed inside a silicon tube as a holder to create a channel to run a test solution through it. The extracted dyes on the coated screw were eluted by a suitable eluent. High‐performance liquid chromatography with an ultraviolet/visible detector was utilized for the separation and analysis of the analytes. The effective parameters of the analyte extraction efficiency were optimized. Under optimum conditions, the limits of detection were 0.15 μg/L, and calibration curves were linear in the range of 0.50–250.00 μg/L, with coefficients of determination > 0.989 for all studied dyes. The relative standard deviations of intra and inter‐day (n = 3) were in the range of 2.8%–7.0% and 7.0%–9.5%, respectively. The MES was applied as a simple and repeatable method with acceptable relative recoveries (82.0%–103.0%) for the determination of cationic dyes in grape nectar, ice pop, jelly powder, and fish breeding pool water.