Aimed at the optimization of operation and dispatching for CCHP microgrid , in order to achieve the goal of energy saving and emission reduction, microgrid operating costs and environmental pollution costs were taken as optimization objectives, a microgrid optimization model including such as wind turbine, microturbine, waste heat boiler and lithium bromide absorption chiller was established. The multi-objective gray wolf optimization algorithm was used to solve the optimization model to obtain the Pareto optimal solution set of the multi-objective problem, and to improve the algorithm for the problems that the microgrid optimization problem has many constraints and the early exploration ability of the algorithm is insufficient. Simulation results show that the improved algorithm has better solution speed and global search performance than the original algorithm. The method in this paper can provide suggestions for optimal dispatch of CCHP microgrids, achieve flexible deployment of microgrids according to user needs, and achieve the goals of reducing operating costs and polluting gas emissions.