I wouldn't just go buy 'stuff' and put it in the engine bay of a boat, unless it was 'certified' to be there. . . (SAE J1171 as an example)
The idea of having auxiliary power would be so you don't have to run the main engines when you want/need power (AC or DC) . . . right?
So, if you were going to 'hang' a generator off the main engine, for the purpose of Aux. power, you'd still have to 'condition' the power (Volts/Hertz, etc.) . . . right? all the while still needing to run the main engine.
It may be better to have an 'approved' 90 (ish) amp alternator running off the engine to charge a battery bank and use a marine inverter to get the power conditioning.
If you are just needing to 'camp out' for the night, I've seen some folks use the small Walmart style generators on the swim platform. Not sure how entirely 'safe' that was though as far as electric shock and CO poisoning.
For the electrical engineers of the world, they can probably figure this stuff out. For the rest of us, there are the specifically purposed and approved solutions.