Determine what thickness of medium density fiberboard, or MDF sheet you need to use by looking at the fronts of your cabinets. If the cabinet doors extend up to within 1/8-inch of the edge of the cabinet, use 3/4-inch thick MDF. If the cabinet doors extend within 3/4-inch of the edge of the cabinet, use 1/2-inch thick MDF.
Cut the MDF to fit the tops of the cabinets with a skill saw.
Screw the MDF in place with wood screws. Always pre-drill pilot holes when working with cabinetry to prevent the wood from splitting when you sink screws into the hard wood. Sink the tops of the screws below the surface of the MDF. Clean off the surface of the MDF to remove any sawdust.