The presence of nodularin-R (NOD-R) in water has gained considerable attention because of its widespread distribution and high toxicity. In this study, an accurate and rapid visible-light-driven self-powered photoelectrochemical (PEC) biosensor was developed by integrating a portable paper-based electrode with a custom-built miniaturized PEC detection device. The newly designed system successfully achieved on-site detection of NOD-R in real water samples based on PEC technology. First, target recognition triggers the initiation of the hybridization chain reaction to generate double-stranded DNA. The thus-formed double-stranded DNA entrapped methylene blue (MB), and the dye molecules were irradiated with visible light for conversion to leuco-MB in the presence of ascorbic acid. The resulting leuco-MB species significantly amplified the PEC signal output of TiO 2 -MXene, enabling NOD-R detection. Under optimal conditions, the proposed PEC assay strategy demonstrated NOD-R detection within a concentration range from 20 fg mL −1 to 10 ng mL −1 with a detection limit of 19.6 fg mL −1 . In addition, a custom-built miniaturized PEC detection device conveniently integrates the detection component with the light source, enabling the real-time collection of results via a wireless module. This innovative self-powered PEC platform provides significant advancements in smooth and intelligent detection compared to traditional PEC detection devices.