A punctal plug (400) or lacrimal insert comprising a microelectromechanical system pump (412) and associated reservoir may be utilized to deliver precise dosages of an active agent into the eye though the tear film. The microelectromechanical system pump comprises four main components namely, a reservoir (414), a pump (416), a series of valves and a vent (418). The microelectromechanical system pump is positioned within a cavity (408) in the punctal plug.