In recent years, the use of clean energies has become much more important due to the increase of environmental pollutants and the reduction of fossil fuel resources. Another important parameter in the establishment of energy systems is the assessment of the risks caused by the construction of the system and the provision of operational solutions to manage and reduce these risks. In this research, a new multi-generation system that is activated using solar and biomass energies has been evaluated thermodynamically and thermo-risky. This system consists of a Brayton cycle, a steam Rankine cycle, a transcritical CO2 cycle, a proton membrane electrolyzer (PEME) unit, and an internal combustion engine (ICE). A notable characteristic of the proposed system is its capability to recover waste heat from the gas turbine cycle, which is subsequently utilized to drive both a steam Rankine cycle and a transcritical CO2 cycle. The sensitivity analysis has been performed to investigate the effects of the input parameters on the system performance and finally, an optimization for the effective parameters of the system has been conducted. The results of the calculations show that the proposed system has energy and exergy efficiencies of 22.05 % and 15.93 %, respectively. The risk analysis was conducted by considering the potential hazards such as jet fires, jet of combusted gases, and system overpressure. The analysis indicates that the system poses a low level of risk. The overall risk, along with the risk per unit of system exergy, has been estimated at 4.247 × 10–8 injuries/year and 3.73 × 10–11 injuries/year.kW, respectively. In optimal conditions, the energy and exergy efficiency of the system reaches 25.79 % and 19.08 %.