Question: how thick mdf for shelves?
Answer: MDF can be finished with paint or varnish - it should always be sealed in some way, not left bare. Consider 18mm thick MDF as a minimum and have supports no more than 500mm apart for all but the lightest load. When using 25mm thick MDF, the spacing of the supports can be reduced to 700mm apart.