This work aims to explore optimization methods for the design of earthen buildings in rural Fujian to achieve low-carbon emissions and improve the structural stability of earthen buildings. First, parametric modeling and optimization algorithms are employed through the Grasshopper platform. An intelligent earthen building design is created by combining the optimization of factors such as the structure of earthen buildings, building materials, and orientation. Then, a comparison is made with the unoptimized, energy-efficient, and carbon emission reduction designs. Finally, the work concludes that the proposed design significantly optimizes the total carbon emissions, energy consumption, structural stability, and economic aspects. The proposed design scheme achieves the highest carbon emission reduction effect, with a reduction rate of 34.64%. The proposed design exhibits lower maximum stress and higher minimum safety factor in terms of structural stability compared to other scenarios, along with smaller structural displacement. It also performs well in terms of initial investment, annual operating costs, and construction period. The significance of this work lies in providing scientific guidance for the design and construction of rural earthen buildings, promoting the organic integration of rural development with low-carbon initiatives. This indicates that the use of intelligent optimization methods for earthen building design is feasible and can yield positive results in practice.