Stucco never stands alone.

I use strut to mount the panel and mast. Not only does this allow for the uneven surface, it allows me to sink my lag bolts into the studs, or toggles though the plywood backing (if any).
Where wires exit the back of the panel, I use a chase nipple and threaded coupling to act as a bushing between the box and the wall.