Electrically conductive hydrogel with photothermal therapy (PTT) is highly desired in assembling self-powered sensing micro-system for personalized healthcare. However, the poor electrical conductivity and low photothermal conversion efficiency (PCE) of carbonized metal–organic framework (CMOF) restricted their practical application. Herein, a unique CMOF@MoS2 heterojunction with abundant defects was elaborately designed via the in situ growth of MoS2 on CMOF for constructing functional hydrogel. The presence of numerous defective sites in MoS2 thin layer accelerated the electrons transport, accompanied with the enhanced electrical conductivity of CMOF@MoS2 hydrogel. Moreover, originating from the spontaneous electrons transfer from MoS2 to CMOF due to the difference of work function, the built-in electric field at CMOF@MoS2 interface driven the fast separation of electron-hole in MoS2 excited by photon, boosting the PCE and PTT performances. When CMOF@MoS2 hydrogel was assembled into micro-system, the flexible sensors delivered ultra-sensitivity (GF = 97.1), fast response behavior (23 ms) and excellent durability over 10,000 cycles. After healthcare monitoring, the damaged tissues can be effectively and timely healed under near-infrared laser irradiation. Our findings provided a sort of novel strategy to rational design and construct advanced sensing micro-system with excellent PTT behavior.