4,4',4″-Triphenylamine tricarboxylate (TPA-COOH) with a distinct molecular rotor structure was reacted with rare-earth (RE) metal ions to obtain seven dynamic RE-based luminescent MOFs (RE-LMOFs) (i.e., emission colors in the blue, yellow-green, red, and near-infrared regions and emission peak wavelengths between 400 and 1600 nm) via the effective transfer of absorbed energy from TPA-COOH to the RE metal ions through the antenna effect. Due to the large energy level difference between RE ions, it was rare in the early days to use the same ligand to construct energy-level matching RE-LMOF homologues with multiple RE metal centers. The uncoordinated oxygen atoms on the molecular rotor linkers in RE-LMOFs provide active sites that can specifically capture highly toxic metal ions and strong oxidative pollutants. The limit of detection (LOD) of RE-LMOF for Al(III) ions is far below the maximum concentration of Al(III) ions in drinking water stipulated by the U.S. Environmental Protection Agency (USEPA) and that for H2O2 is much lower than the H2O2 content in cancer cells, showing excellent application potential for diagnosing early cell cancelation.