The residue of chlortetracycline is potentially hazardous to human health; it is meaningful to exploit a portable, rapid, sensitive, and selective method for detection of chlortetracycline (CTC). In this study, a novel fluorescence bionic sensing probe (NH 2 -MIL-53&N,P-CDs@MIP) was successfully prepared based on the nitrogen and phosphorus codoped carbon dots decorated iron-based metal−organic frameworks combining with molecular imprinted polymer for the detection of CTC. A fluorescence intensity-responsive "on−off" detection of CTC on account of the inner-filter effect (IFE) was achieved by NH 2 -MIL-53&N,P-CDs@MIP. Under the optimal conditions, the fluorescence quenching degree of NH 2 -MIL-53&N,P-CDs@MIP presented a good linear relationship with the CTC concentration in the range 0.06−30 μg mL −1 and the limit of detection (LOD) was 0.019 μg mL −1 . The fluorescent probe was applied to detect CTC in milk samples, and experimental results showed a good recovery rate (88.73%− 96.28%). Additionally, a smartphone-integrated fluorescence sensing device based on NH 2 -MIL-53&N,P-CDs@MIP was exploited to replace the expensive and bulky fluorescence spectrophotometer for quantitative determination of CTC with the LOD of 0.033 μg mL −1 . The sensing system showed high selectivity, strong stability, high specificity, and portability, which provide a great strategy for the quantitative detection of antibiotic residue.