Just use plywood. then you are sure not to fail with your project. MDF is not made to even come close to anything wet. Even if you coated it i would still be worried about the structural properties.
I've been working with wood for years and plywood is 20 times stronger than MDF.
I've been working with wood for years and plywood is 20 times stronger than MDF.