The homeless hitchhiker, 24, was arrested at 6:30 p.m. at the Greyhound Bus Terminal and charged in the murder last Sunday of Joseph Galfy Jr., the prosecutor's office in Union County, N.J., announced on its website.
Galfy, 73, an attorney, was found dead in his Clark, N.J., home on Monday of blunt-force trauma. In a post on his Facebook page Tuesday, McGillvary claimed he had woken up "in a stranger's house" and found he'd been drugged and raped, the Philadelphia Inquirer reports.
"I believe that everyone is a little safer with this person off the streets," prosecutor Theodore J. Romankow said in a statement Thursday.
McGillvary reportedly cut his famous long hair and got a facial tattoo in recent days, apparently in an effort to avoid detection.
In February, McGillvary became an Internet sensation after he used a hatchet to thwart an attack on a utility worker in California. A profanity-laced video he gave to a local TV news station went viral, even earning him an appearance on Jimmy Kimmel Live!
McGillvary will be held on $3 million bail in the Union County Jail in Elizabeth, N.J.