Sure, MDF is dimensionally stable, but it is not realtively strong in large panels, especially for its weight. A lot of bracing or underlying benchwork will be required.
Use the foam as the benchwork. You can use 2" foam, set into a 1x4 or 1x5 pine frame, with bracing every two feet (i.e. built...