Accelerating the migration of interfacial carriers in a heterojunction is of paramount importance for driving high-performance photoelectric responses. However, the inferior contact area and large resistance at the interface limit the eventual photoelectric performance. Herein, we fabricated an S-scheme heterojunction involving a 2D/2D dual-metalloporphyrin metal− organic framework with metal-center-regulated CuTCPP(Cu)/CuTCPP(Fe) through electrostatic self-assembly. The ultrathin nanosheet-like architectures reduce the carrier migration distance, while the similar porphyrin backbones promote reasonable interface matching through π−π conjugation, thereby inhibiting the recombination of photogenerated carriers. Furthermore, the metal-center-regulated S-scheme band alignments create a giant built-in electric field, which provides a huge driving force for efficient carrier separation and migration. Coupling with the biomimetic catalytic activity of CuTCPP(Fe), the resultant heterojunction was utilized to construct photoelectrochemical uric acid biosensors. This work provides a general strategy to enhance photoelectric responses by engineering the interfacial structure of heterojunctions.