City Correction Department officials permitted him to use his own caterer, who supplied kosher food, china, forks — and knives — for about 60 guests who partied and danced the hora for six hours in the jailhouse gym.

Stern’s family and friends were allowed to keep their cellphones — normally a huge security no-no. And Stern was given the OK to dress in clothing appropriate for the occasion.

The guest list at the jail included several prominent rabbis as well as Yaakov Shwekey, a popular Orthodox singer, and a band.

The city threw in its own present — overtime pay for the correction officers staffing the soiree.

The Dec. 30 bash was so successful that jailbird Stern chose the same venue four months later for his daughter Breindy’s engagement party for 10 family members, sources said.

Shame-faced Correction officials yesterday quietly disciplined five top employees, including a rabbi and an imam, for signing off on the bar mitzvah.

“I’ve never seen, in my career, anything as stupid as this,” said a Department of Correction insider about the bar mitzvah, which was permitted over the objections of at least one jail official. “It’s outrageous what transpired.”

Correction Commissioner Martin Horn was “livid” and “views the events as a spectacularly gross error of judgment up and down the command chain,” said a department source.

Horn suspended Rabbi Leib Glanz, the correction chaplain who arranged the bar mitzvah, for two weeks.

Four other officials were stripped of two weeks of vacation.

Bloomberg said the Department of Investigation is now looking into the matter.