Notorious Hockey Mom Madam Anna Gristina left court feeling like a winner yesterday — even after pleading guilty to promoting prostitution in an essentially no-jail deal that could still get her deported back to the UK — because Manhattan prosecutors failed to prove any larger, public-corruption case against her.

“I feel like I won,” Gristina, 44, told The Post moments after pleading guilty to the only charge against her, felony promoting prostitution.

“They got what they wanted,” she said of prosecutors, referring to her admission in Manhattan Supreme Court to having procured a pair of slender brunette hookers for a client named “Anthony,” actually an undercover cop, in July 2011. A secret recording of the $2,000 tryst at Gristina’s reputed E. 78th St. “brothel” was key evidence in the case.

“But I won, too,” Gristina said, as she, her husband, Kelvin, and three of her four children drove away from the courthouse and on to a celebratory dinner.

“I’m still pretty broken inside,” she added. “I used to have the fight in me, but now I don’t. And I couldn’t get a better deal.”

In return for Gristina’s plea, Manhattan Supreme Court Justice Juan Merchan promised to give her six months jail at sentencing in November. Once the four months she has already served plus time off for good behavior are factored in, she’ll actually owe no time, the judge predicted.

It’s been eight months since prosecutor Charles Linehan of the Manhattan DA’s Corruption Bureau made the shocking allegation that Gristina was a multimillion-dollar Upper East Side madam who’d been caught on wiretaps boasting of enjoying the protection of powerful friends in law enforcement.

The tapes convinced Merchan to set her bail at an eye-popping $1 million cash, later slashed in appeal to $125,000 cash or $250,000 bond. Yesterday, the same prosecutor told the same judge that as far as he could prove, Gristina’s boasts were all a bunch of hooey.

“Over the years, the defendant made numerous claims that she had connections and influence in any number of city, state and federal agencies, including the NYPD, the FBI, the DA’s office, the Governor’s Office and Customs, among others,’’ Linehan said.

“We have not found evidence to support any of those claims.

“We are left with a straightforward promoting-prostitution case — a defendant who ran a brothel for many years and who profited from the sex trade, that is all,’’ he said.

The judge then signed off on the plea — but not before lambasting Gristina for bringing her 10-year-old son, the youngest of her four kids, to court yesterday.

“I think that is very poor judgment,’’ Marchan said.

The judge then signed off on the plea — but not before lambasting the madam mom for bringing her 10-year-old son, the youngest of her four kids, to court previously and today.

“I have to say, I am actually not pleased with some of Ms. Gristina’s conduct during … this case,’’ Merchan said. “ I am not happy that Ms. Gristina’s young child is in the courtroom today. I think that is very poor judgment.’’

Gristina told The Post that her family members all felt they needed to be in court. “Well I wanted to be with my mom — it’s not so scary then,” the boy, Nicholas, chirped up during the drive. And she praised the judge for being, on the whole, reassuringly fair. “He was gentle,” she said. “He was kind.”

“You can’t say no to a good offer,” her lawyer, Norm Pattis, explained of Gristina’s decision to cop. “I think this has been an ordeal for this family, and the parents believed the children needed to see what the fuss was all about, with transparency,” he said. “It certainly wasn’t done to offend the judge.”

Gristina had faced a maximum of up to seven years prison if convicted at a trial that had been scheduled for next month — during which she would have been confronted with incriminating testimony from a bevy of three of her gorgeous alleged former escort-service workers.

Her admitted former fellow madam — strawberry-blonde stunner Jaynie Mae Baker — had been set to testify on the witness stand that she and Gristina arranged the E. 78th St. tryst. And the two alleged $2,000-a-date hookers charged with actually participating in the tryst were also on tap to testify, The Post had learned.

Sources have told The Post that the risk was strong that she would have received the full, seven-year maximum if convicted.

Gristina had until now steadfastly maintained she ran nothing more than a high-end matchmaking service, hooking up wealthy clients with beautiful single women.

It is still not clear whether the Scotland-born Gristina — who, at age 44, hasn’t lived there in 30 years — would face deportation under the plea deal. Deportation had been a near certainty if she had gone to trial and lost.

“My family is here, my children are here — I really want all of them to just be able to get on with their lives,” in the US, she told The Post.

Charges remain pending against Gristina’s Russian-born alleged money launderer, Jonas Gayer, who sources and court documents say has been cooperating against her for more than a year.