The simulation of neurons receiving stimulation and transmitting signals by proton conduction has great potential applications in electrochemistry and biology. In this work, copper tetrakis(4-carboxyphenyl)porphyrin (Cu-TCPP), which is a proton conductive metal organic framework (MOF) with photothermal response, is adopted as the structural framework, with the in situ co-incorporation of polystyrene sulfonate (PSS) and sulfonated spiropyran (SSP) to prepare the composite membranes. The resultant PSS-SSP@Cu-TCPP thin-film membranes were used as the logic gates i.e., NO gate, NOR gate and NAND gate because of the photothermal effect of Cu-TCPP MOFs and the photoinduced conformational changes of SSP. This membrane exhibits the high proton conductivity of 1.37 × 10-4 S cm-1. Under the conditions of 55 °C and 95% relative humidity (RH), using 405 nm laser irradiation with 400 mW cm-2 and 520 nm laser irradiation with 200 mW cm-2 as inputs, the device can be adjusted between various steady states, and the value of the conductivity is regarded as the output with different thresholds in different logic gates. Before and after laser irradiation, the electrical conductivity changes dramatically, and the ON/OFF switching ratio reached 1068. The application of three logic gates is realized by constructing circuits with LED lights. Depending on the convenience of light and the easy measurement of conductivity, this kind of device with light source as input and electrical signal as output provides the possibility to realize the remote control of chemical sensors and complex logic gates devices.