For some cultural perspective on the term 'Magic Negro', which has been in use for over 60 years, see the following articles:
Obama the 'Magic Negro' (the LA Times article that inspired the song)
About 'Magic Negro' in film:
The Black Commentator - The Magic Negro
and:
Magical negro - Wikipedia article