The homeless man who allegedly threatened to kill Michael Strahan went on a CRAZY rant in court Monday ... calling the judge the n-word and accusing his lawyer of belonging to the Illuminati.
Andre Johnson was in court for his arraignment and repeatedly demanded new legal representation ... saying his lawyer is part of the Illuminati -- the secret society that allegedly runs the world.
According to the NY Post ... the judge ordered Johnson to take a mental competency exam, and he yelled ... "That's some bullsh*t n****r!"
Johnson was arrested July 1st when he pulled a knife on a security guard outside the "Good Morning America" studio and said he was there to kill Strahan. He's been charged with 3 counts of attempted assault.