MIL‐101(Cr) is an excellent metal–organic framework with high surface area and nanoscale cavities, making it promising in solid‐phase extraction. Herein, we used MIL‐101(Cr) as a solid‐phase extraction packing material combined with fast detection of direct analysis in real time mass spectrometry (DART‐MS) for the analysis of triazine herbicides. After systematic optimization of the operation parameters, including the gas temperature of DART, the moving speed of the 1D platform, solvent for desorption, amount of MIL‐101(Cr) extraction time, eluent volume and salt concentration, this method can realize the simultaneous detection of five kinds of triazine herbicides. The limits of detection were 0.1∼0.2 ng/mL and the linear ranges covered more than two orders of magnitude with the quantitation limits of 0.5∼1 ng/mL. Moreover, the developed method has been applied for the analysis of lake water samples and the recoveries for spiked analytes were in the range of 85∼110%. These results showed that solid‐phase extraction with metal–organic frameworks is an efficient sample preparation approach for DART‐MS analysis and could find more applications in environmental analysis.