The reaction of 3 H2 + CO2 -> CH3OH + H2O is exergonic, so the H2 already brings all the energy needed.