Although he is portrayed as a hero in the Avengers movies, all I've seen and read of the Hulk in the comics has been in crossovers with other Marvel heroes where he's portrayed as a villain — an unwilling and unintentional villain, but a villain nontheless.
Other famous story arcs involving the Hulk also seem to imply he is acting as a villain and feel to me like the Hulk is more often than not found fighting other superpowered characters within Marvel, especially heroes as the Hulk is sort of the rival.
Is there any reference as to whether the Hulk is internally thought of as a villain or a hero in the MCU and whether there are guidelines for writers about patterns that should be applied to the Hulk?
Note this is evidently an out-of-universe question. I’m just curious as to what status Marvel gives to the Hulk.