MOSFET gets unusually hot in a SEPIC converter
You need to be driving the MOSFET gate much better than what you appear to be doing to get it to switch efficiently. Look at the spec for the FQP30N06 - gate turn on threshold (Vgs(threshold)) might be as high as 4V. Also look at figure 1 - this confirms that you should be using a much higher gate drive voltage than what you are driving it with: -



Also, the edges of the waveform are really poor - you are not going to get decent rise and fall times from an IO pin because the gate-source capacitance is going to slow things down.

Consider changing your drive circuit.