What size of an inverter generator would you need to run a MacBook Pro?

Look on the AC power adapter and read its rating in watts. You will need an inverter with at least that output capacity.