Mean spirited describes someone or something that is unkind, motivated by cruelty or intended to be hurtful. (adjective)
An example of a mean spirited person is someone who loves to see others fail.
An example of a mean spirited action is pulling someone's chair out right before they sit down so that they are humiliated when they fall on the floor.