In the context of rural revitalization and carbon peaking and carbon neutrality goals, a model of township micro-energy network is established. Firstly, the mathematical models of garbage power generation and biogas production from anaerobic digestion of sludge are built in view of the characteristics of energy in rural areas. An electric vehicle load prediction model is established considering the development of rural transportation industry and tourism. Secondly, the carbon emissions from farming, breeding, and purchased energy are modeled, and the carbon reduction from domestic waste treatment, biogas export, and electric vehicle are also considered to illustrate the carbon emission characteristics from production and living in rural areas. Finally, with the lowest energy cost and lowest carbon emission of the township micro-energy network as the objective functions, the multi-objective optimization problem is solved using the normal boundary intersection (NBI) and the TOPSIS. The optimal energy consumption decision of the township under the premise of economy and low carbon is obtained through specific cases. The role of energy equipment with rural characteristics is analyzed to provide a theoretical basis for promoting the construction of zero-carbon villages.