the mdf has not been contamined with water or has expanded with moisture.
I would first clean the surface with a good cleaner. Then remove all the hardware. Rough up sand to make the primer seat properly, then prime with several light coats. Let dry properly, apply finish coat. would suggest latex paint on both applications.