MDF works... I believe there are different gracdes (density) in MDF... Pick the right one and you just need to seal the sides and bottom... probably shave it (depending on thickness) till you get the optimum holding power.
My vacuums have problems holding MDF thinner thanĀ 12mm.
If your first cut is too short... Take the second cut from the longer end... LBD