Police in Edinburgh, Scotland, said they broke into McGee's flat around 8 a.m. Monday after being alerted by friends who became concerned when the television producer updated his Facebook status to read: "Kevin McGee thinks that death is much better than life."
Three hours after McGee, 32, posted the message, police found him hanged in his apartment.
"Police were called to an address in Bruntsfield Gardens, Edinburgh, at around 8 a.m. yesterday morning, where a 32-year-old man was found dead," Lothian and Borders police said in a statement. "There are no suspicious circumstances, and a report will be sent to the procurator fiscal."
Lucas, 35, who is starring in the West End play "Prick Up Your Ears," was reportedly "utterly destroyed" when he learned of McGee's death. He has since pulled out of the show until further notice. His agency, Troika, said it had no comment.
A friend of Lucas' told The Sun newspaper that "Matt was floored when he heard the news. He always loved Kevin, despite their differences and their difficult marriage."
McGee and Lucas met in 2002, before Lucas became famous for his role on the BBC show "Little Britain." The couple married in 2006, in a civil partnership ceremony with a star-studded guest list that included Sir Elton John and Courtney Love.
McGee Officially Divorced This Year
The marriage lasted 18 months before the pair split in September 2008. Their separation became legal in January, making Lucas and McGee one of the first well-known gay couples to divorce officially since civil partnerships became legal in the U.K. in late 2005.
After learning of McGee's death, his former company, Carbon Media, said in a statement that he "remained very close to the company's heart. All at Carbon Media wish to send our deepest condolences to his family and friends."