The jail where Jeffrey Epstein apparently hanged himself was a nest of corruption in the early ’90s, according to one of late mobster John Gotti Sr.’s top associates — who insists it’s still a place where almost anything can be bought if you have the bucks.

“If he killed himself someone had to have helped him,” said Lewis Kasman, a onetime close confidant of the Dapper Don who visited the godfather several times at the Metropolitan Correctional Center in 1992.

“There are cameras going 24/7 and they’re watching 24/7. Someone had to give [Epstein] the equipment to kill himself and he had to pay for it dearly,” said Kasman, who has kept abreast of conditions in the lockup.

Kasman added: “That facility for years had issues of corruption, with correction officers bringing in food or cellphones for wealthy people.”

The former Gambino bean counter noted that Gotti, who did time both in the jail’s 9 South and 10 South units, its most secure wings, still managed to get his favorite steak dinner sneaked in: “He had Peter Luger’s whenever he wanted.”

But Kasman said the facility was “totally disgusting — worse than Guantanamo Bay.”

“There are roaches crawling all over you — in every orifice — when you sleep. The Bureau of Prisons’ answer to that is that they can’t spray. It’s toxic.”

Reps for the jail did not immediately respond to requests for comment.

This story has been updated to remove references to a purported visit to the MCC by Attorney General William Barr because the source of the information did not have direct knowledge that the visit took place.