You can call someone who isn't nice "mean":
A: Can I have some?
A: You're so mean!
You can also say that someone is "mean to" another person:
My brother was so mean to me when we were growing up.
This word sounds a little childish. It's a word that children often use.