The agricultural sector exhibits significant differences in production methods, efficiency, and models compared to other industries. The question remains whether the application of artificial intelligence (AI) in agriculture can positively impact total factor productivity (TFP). This study investigates the effect and mechanism of AI application on the TFP of agricultural enterprises, using A-share listed agricultural companies from 2011 to 2022 as the research sample. The findings reveal that AI acts as an "agricultural accelerator" for production efficiency, significantly enhancing the TFP of agricultural enterprises. This conclusion holds even after a series of robustness tests and the use of instrumental variables to address endogeneity. In terms of the impact mechanism, AI promotes TFP improvement in agricultural enterprises by enhancing innovation capacity, optimizing the human capital structure, and reducing costs while increasing efficiency. Additionally, the impact of AI is more pronounced in enterprises whose main business is edible agricultural products, larger-scale operations, private enterprises, and those located in the eastern regions. This study provides theoretical guidance for developing precise AI application plans for agricultural enterprises in China and other developing countries, and offers important policy implications for sustainable agricultural development.