In 1993, McCaffery won election to Municipal Court in Philadelphia. With support from members of the city council, he developed Eagles Court in 1998 in response to a 1997 Monday Night Football game between the Eagles and the San Francisco 49ers. With over 60 fistfights reported at the nationally televised game, stadium violence became an embarrassment for the city. McCaffery presided over the court, which was convened in the basement of Veterans Stadium, and handed out fines or jail time to fans arrested during games. Prior to protests at the 2000 Republican National Convention in Philadelphia, McCaffery announced a plan for the preventive detention of protesters. Because of this, defense attorneys asked him to recuse himself from trials involving the protests, but he refused, without hearing the arguments. He was elected to the Superior Court in 2003 and successfully ran for the Supreme Court in 2007, where he was a landslide winner attaining over 2 million votes statewide.
Resignation
McCaffery abruptly resigned from the Pennsylvania Supreme Court on October 27, 2014, one week after his October 20, 2014 suspension by four fellow Justices and the public disclosure by Chief Justice Ronald Castille that Justice McCaffery had sent or received 234 emails containing pornography between late 2008 and May 2012 to an agent in the attorney general's office. The Chief Justice had requested copies of the emails from Attorney GeneralKathleen Kane. A fellow justice, Michael Eakin, also had gone public with an accusation he filed on October 17, 2014, that Justice McCaffery tried to coerce him into taking his side against Chief Justice Castille. The justices voting to suspend McCaffery cited King's Bench power to "protect and preserve the integrity" of the state's judicial system. The justices, in their order suspending McCaffery, directed the state Judicial Conduct Board, which was already investigating McCaffery, to determine within 30 days whether there was "probable cause to file formal misconduct charges" against him. The court said McCaffery may also have allowed his wife, who was his chief legal clerk, to collect legal referral fees while she was a state court employee, and he may have tried to fix a traffic ticket for her. In his concurring statement on the suspension, Chief Justice Castille described McCaffery as exhibiting the traits of a sociopath. The Supreme Court confirmed McCaffery's resignation in an order lifting his suspension. McCaffery's retirement agreement not to seek senior judge status and not seek future judicial positions ended the state Judicial Conduct Board investigation of him. By retiring instead of being impeached, McCaffery was able to keep an $11,000 per month retirement benefit from the State Employees' Retirement System paid for by Pennsylvania taxpayers, even after he cashed out $455,000 of his own contributions plus interest.