Coal mines derive a large amount of various associated resources that can be used for production and living needs during the mining process. In order to realize the recycling of coal associated resources, a typical architecture of coal mine comprehensive energy system including the recycling of coal derived resources is proposed. Firstly, according to the coal mine resource endowment and its geological characteristics, the corresponding mine integrated energy system is constructed. Then, the refined two-stage P2G technology is combined with the mine integrated energy system to realize the complete consumption of wind and light and the efficient utilization of energy. Finally, the stepped carbon trading mechanism is used to further constrain the carbon emissions and realize the further reduction of carbon emissions in the mining area. The simulation model of the integrated mine energy system is established in MATLAB and the GUROBI solver is called to solve the results. The simulation results show that the method can effectively reduce carbon emissions, realize the complete consumption of wind and light and the efficient use of energy.