Phase change materials (PCM) have attracted much attention in the field of thermal energy storage because of exceptional heat storage capacity, stable operating temperature, and recyclability. However, organic phase change materials, represented by palmitic acid (PA), are limited by inherent leakage problem, unsatisfactory thermal responsiveness and inefficient photo-thermal storage capacity, which severely hamper the development of PCMs technology. As a means of addressing these challenges, we developed one novel support material with 2D/0D structure for palmitic acid via thermal polymerization, specifically, in which highly dispersed Ag quantum dots (Ag QDs) was firmly anchored on graphitic carbon nitride (g-C3N4). PA was further infiltrated into the layered structure of nanoporous g-C3N4/Ag QDs to successfully synthesize novel shape-stabilized PA/g-C3N4/Ag QDs composite phase change materials (CPCM). On the one hand, benefiting from the tightly stacked porous structure of g-C3N4/Ag QDs, PA is effectively encapsulated to avoid leakage problem during the solid-liquid transition with a superior adsorption capacity up to 65 %. On the other hand, the combination of g-C3N4 and Ag QDs in PA/g-C3N4/Ag QDs CPCM demonstrated a synergistic effect resulting in faster heat transfer capability and more efficient solar energy capture capability compared to pure PA, which is capable of dual utilization of heat and solar energy. The newly developed PA/g-C3N4/Ag QDs CPCM features a high melting latent heat and an appropriate phase change temperature, which are 128.35 J/g and 61.92 °C, respectively. The corresponding solidification enthalpy and temperature are 121.70 J/g and 60.02 °C. The photo-thermal conversion efficiency of the material is improved to 78.6 %, facilitating a rapid capture and storage of solar energy. Furthermore, through the optimization of the preparation process, Ag QDs are densely anchored on the surface of g-C3N4, which retains the excellent properties of metallic silver while eliminates the metal agglomeration phenomenon after repeated utilization of CPCMs. PA/g-C3N4/Ag QDs CPCM is proved to be extremely recyclable and thermally stable after massive thermal cycles. This innovative and operational encapsulation modified method significantly optimizes the practicality of phase change materials. The obtained shape-stabilized PA/g-C3N4/Ag QDs CPCM is more versatile, and its unique comprehensive properties can provide high-quality materials for photo-thermal storage systems.