The invention relates to the technical field of drill pipe thread cleaning and oiling, and relates to an automatic device for recovering drilling mud, thread cleaning and oiling. With the development concept of green and environmental protection deeply rooted in the hearts of the people, higher requirements are put forward for the recovery and treatment of mud in oil drilling. Mud and sand residues are easy to appear on the thread of the drill pipe joint. If it is not cleaned and oiled, the mud and sand are easy to scratch the drill pipe thread and cause downhole accidents. The present invention has a reasonable and compact structure and is easy to use. It is equipped with a planar movement positioning mechanism (01), a working lifting mechanism (02), a tapping thread cleaning and oiling mechanism (03), a female thread cleaning mechanism (04), and a drilling fluid receiving mechanism (05). ) to realize drilling platform mud recovery, automatic thread cleaning and oiling, which can effectively solve the problem that the mud in the drill string is difficult to be recovered automatically and pollute the table, so that the mud does not fall to the ground. At the same time, the drilling efficiency is improved, downhole drill pipe accidents are reduced, and labor intensity is reduced.