Abstract Agriculture is the foundation of the national economy, and Chinese agriculture in the digital background should realize the intelligent management of agricultural production To improve the efficiency of international trade of Chinese agricultural products and help Chinese agricultural products occupy a larger share in the international market, this paper takes the clustering algorithm and agricultural IoT technology as the research method applies the improved spectral clustering algorithm for processing agricultural data to extract research data and perform data correction, simulates and evaluates the performance of the algorithm through agricultural IoT data pooling and simulation analysis, and uses the chance routing performance index as the main judgment The variance results are derived from the criteria. The data show that the production of agriculture, forestry, animal husbandry, and fishery has developed qualitatively in the digital background, and the total output value reached 122,874.96 billion yuan in 2021, and the total grain production reached 73,000,000 tons in 2021, with obvious export advantages. The export value of agricultural products has grown from $48.98 billion in 2010 to $85.06 billion in 2021, and the export value of China’s agricultural products exceeded $70 billion in 2014, making China’s international trade in agricultural products fruitful. Based on this, this paper explores the multifaceted achievements and future development path of international trade in agricultural products in the context of digitalization, intending to contribute its share to China’s international trade in agricultural products.