The invention discloses a spray cleaning agent for a metal assembly. The cleaning agent is prepared from polyether carboxylate, carboxylate, block polyether, an alcohol ether surfactant, sodium gluconate, diethylenetriam inepentaacetate, ethylene diamine tetraacetic acid disodium salt, sodium metasilicate, sodium benzoate, triazole, triethanolamine, alcohols, glycol ether and deionized water. The cleaning agent is applicable to the oil-removing and rust-preventing cleaning of black metals, non-ferrous metals and assemblies formed by the black metals and the non-ferrous metals, has extremely high cleaning performance and a relatively long corrosion inhibition period, cannot cause the change of the color, is environment-friendly and low-foam, does not contain substances such as phosphorus and sodium nitrite, cannot pollute the environment, is particularly applicable to the spray cleaning at normal temperature, and is low in energy consumption in the cleaning process, the residue is avoided, corrosion spots are not generated, and waste liquor of the cleaning agent is can be easily disposed. The corrosion inhibition period of a copper-aluminum assembly exceeds 10 days; the corrosion inhibition period of a brass-cast iron assembly exceeds 7 days; the corrosion inhibition period of an aluminum-cast iron assembly exceeds 7 days; and the corrosion inhibition period of a copper tin-aluminum-low-carbon steel assembly exceeds 10 days.