The invention relates to an environment-friendly numerical control machine tool with a cleaning function. The environment-friendly numerical control machine tool with the cleaning function comprises amain machine, a main body, a glass pane and a base, and further comprises a recycling mechanism and a cleaning mechanism, wherein the cleaning mechanism comprises a driving assembly, a lifting plate,a rotating shaft, a roller brush, two first bearings, two rotating assemblies and two connecting assemblies, the recycling mechanism comprises a filter screen, a collecting box, a vibration assemblyand a transmission assembly, and the vibration assembly comprises a crankshaft, a rotating block, a knocking plate, a connecting rod and two second bearings. According to the environment-friendly numerical control machine tool with the cleaning function, the function of recycling cooling liquid through the recycling mechanism can be achieved, the cooling liquid is saved, the environment friendliness of the machine tool is improved, the roller brush can be driven to move up and down while rotating through the cleaning mechanism, the function of cleaning the glass pane is achieved, and chippingsare prevented from adhering to the glass pane and affecting observation of a user.