The security of energy systems has always been one of the most important issues of energy systems operation. The multi-carrier multi-microgrid (MCMMG) is one of the novel structures in the power system. High penetration of renewable resources and their uncertainty, their ability to operate in isolation mode, and the presence of energy hubs in MCMMG systems increase the importance of security assessment in this type of system. This paper presents a decentralized risk-based security-constrained optimal power flow model for an MCMMG system. The stochastic nature of wind energy, photovoltaic generation, and electrical and heating loads are considered in the proposed model. In the model, the risk level of the system is determined by considering both the electrical and natural gas (NG) networks' contingencies. The proposed model is decomposed into three types of subproblems with the augmented Lagrangian relaxation (ALR) method: The subproblem related to the multi-microgrid operator level, the NG network subproblem, and the individual microgrid level subproblem. The decomposed problem is solved using MATLAB software. According to the results, the proposed model can secure the system from high costs that may impose on the system due to the contingency occurrence.