Fabrication of multifunctional metal–organic frameworks nanoparticles via layer-by-layer self-assembly to efficiently discover PSD95-nNOS uncouplers for stroke treatment. Here, NOS1 is linked to stroke disorder.