The invention discloses an environmental-friendly anti-rust metal cleaning agent, which is prepared from the following raw materials of modified quaternary ammonium salt surfactant, a nonionic surfactant, an anionic surfactant, sodium tungstate, zinc carbonate, acrylic acid-maleic anhydride copolymer sodium salt, sodium polyacrylate, sodium molybdate dihydrate, sodium tetraborate, D-limonene, Schiff base corrosion inhibitors, cosolvents, anti-foaming agents, ethanol and water, wherein the nonionic surfactant is a mixture of alkylphenol ethoxylates, coco fatty acid diethanol amide, sorbitan fatty acid ester and FMEE; the anionic surfactant is a mixture of sodium dodecyl benzene sulfonate and sodium lauryl alcohol polyoxyethylene ether sulfate. The environmental-friendly anti-rust metal cleaning agent provided by the invention has the advantages that the cleaning efficiency is high; the detergency power is strong; after the cleaning, no residue is left; the antirust performance is good;the environmental-friendly effect is achieved.