Titebond or any other quality aliphatic resin glue will work with MDF.
But since you didn't mention the application, I would advise using some
mechanical fastener along with the glue. Proper fastener usage may
include having to pre-drill for screws designed for MDF type materials.
these pages should get you started.