Based on the excellent properties of luminescent metal-organic frameworks (MOFs), we have developed a compact device utilizing UiO-66-NH2 MOF for accurate detection of phosphates. This material demonstrates exceptional adsorption and sensitive fluorescence response to phosphates, making it ideal for our device. This portable device offers rapid, user-friendly, and reliable phosphate detection, with potential applications in environmental monitoring, agriculture, and biomedical research.