What do you call a person who has to be the center of attention?

A person who needs to be the center of attention might be described as a narcissist, exhibitionist, or possibly an egotist, a show-off, or a grandstander.

I would simply categorize them as 'insecure'.