In this research, a novel, selective, and efficient porous adsorbent nano-composite comprising a molecularly imprinted polymer and a metal–organic framework (MIP@MOF) was employed for sampling, extraction and analysis of diazinon from the air by a needle trap device (NTD), for the first time. The synthesized MIP@MOF sorbent was characterized by the FT-IR, XRD, FE-SEM, TEM, and EDS techniques. Then, the effective parameters of the sampling (temperature and humidity) and desorption (time and temperature) process were optimized by response surface methodology (RSM). The optimum values of temperature and humidity of the sampling chamber were estimated to be 20 °C and 25.0%, respectively. Also, the highest response during the analyte desorption was obtained at 262 °C and 4.5 minutes. For more details, the performance of the MIP@MOF:NTD method was evaluated by determination of important parameters such as repeatability, reproducibility, the limit of detection (LOD), and the limit of quantification (LOQ), and then compared with the NIOSH 5600 standard method. The values of LOD and LOQ for the targeted analyte were determined to be 0.02 and 0.1 μg m−3, respectively. Also, the repeatability and reproducibility of the proposed method were obtained in the range of (3.9–5.1)% and (5.1–6.4)%, respectively, which proved the acceptable precision of the method. Furthermore, the results of this study exhibited a high correlation coefficient (R2 = 0.9781) between the proposed method and the recommended NIOSH method. Finally, the proposed procedure was utilized for sampling and determination of the airborne diazinon in real conditions. These results indicated that the proposed MIP@MOF:NTD method can be employed as a fast, simple, environmentally friendly, selective, and effective procedure for sampling and determining diazinon in air.