The invention discloses a device for delivering medicine to the meibomian glands, which includes a handle, a treatment head, and a meibomian gland drug delivery patch. A control system is installed in the handle, and the treatment head is detachably connected to the meibomian gland. On the upper end of the handle, an electromagnet is arranged in the treatment head, and the meibomian gland drug delivery patch is magnetically connected with the treatment head through the electromagnet, and the meibomian gland drug delivery patch is provided on the left side. There is a microneedle drug delivery component, the drug layer is arranged inside the microneedle drug delivery component, and the electromagnetic control module of the control system intermittently controls the power on and off of the electromagnet to drive the treatment head and the meibomian gland The dosing patch is intermittently clamped and released on the patient's upper and lower eyelids. The invention has the advantages of fast and efficient administration, comfort and convenience, reasonable design, good therapeutic effect, safe and painless drug delivery, and the like.