A magnetically recyclable ratiometric Cu2+ fluorescent sensor based on mesoporous silica nanoparticles was fabricated through a novel one-pot self-assembly method.