Based on a special homemade interface, the molecularly imprinted stir bar sorptive extraction was coupled to high performance liquid chromatography for the online desorption and analysis. During desorption, the analytes desorbed from stir bar were delivered to a sample loop and then was introduced into liquid chromatography for further analysis. The online desorption and introduction processes were real-time monitored by the ultraviolet detector of the liquid chromatography system. In this way, the method sensitivity and reproducibility was improved for the introduction timing of the desorption solvent with greatest concentration of the target analytes was accurately controlled. To demonstrate the feasibility of the method, terbuthylazine imprinted stir bar was synthesized and used for the analysis of nine triazines in rice. Under the optimized conditions, limits of detection of 0.02-0.11 μg/L and precision within 4.3-7.2% were achieved. The new method was compared with other two traditional offline desorption procedures, i.e. ultrasonic-assisted desorption and static thermal desorption. The comparison results showed that the proposed method is accurate, precise, fast, and suitable for the trace analysis of complex samples.