FWIW, just straight shellac works great for sealing MDF.

Get some unwaxed shellac flakes and mix a 1-pound cut (1:1 ratio - eg 100g flakes to 100ml methylated spirits).

You can mix up as little or as much as you want/need.