He’s no AOC.

Mayor Bill de Blasio played bartender to jubilant patrons of Neir’s Tavern in Queens Friday night after helping to save the historic pub from losing its lease — and wound up taking some good-natured ribbing on his beer-tapping skills.

“Too much foam! Too much foam!” one happy patron chided.

Hizzoner and local officials stepped in at the last minute Friday to negotiate with the 190-year-old watering hole’s landlord and stave off a massive rent hike that would have shuttered the joint and put owner Loycent Gordon out of work.

The dark, tin-ceiling, Woodhaven haunt was once frequented by Fred Trump, the president’s father, and often caught the eye of auteurs.

Brett Ratner shot scenes there for his 2011 “Tower Heist” with Ben Stiller and Eddie Murphy.

It also provided the setting for memorable bar scenes from the 1990 mob classic “Goodfellas.”

“I gotta tell you, when I heard what [happened] with Neir’s … I said this just cannot happen; we cannot lose this bar,” de Blasio told the crowd. “We can’t lose this part of our history. “We can’t lose this part of our community.”

The thirsty crowd at one of the city’s oldest bars at various points erupted in victorious chants for the owner — “Loy!” — and to push for the preservation of the space through the city’s Landmark Preservation Commission.

“Landmark! Landmark!” they yelled.

De Blasio and Tom Grech, the president and CEO of Queens Chamber of Commerce, said they met with the property owners, Ken and Henry Shi, Friday afternoon at the chamber after news broke and came to a “handshake agreement” to keep the pub in business.

“We spent two hours at the chamber of commerce today,” Grech said. “I locked the door and I said we’re not going to leave until we have a deal.”

De Blasio eventually manned the bar, pouring out a few celebratory beers — including one that drew the “too much foam” disdain from an attendee.

A sloppy pour couldn’t sour the good news, though, and the officials left to applause.

“This wouldn’t have happened without the mayor stepping in, without the landlord working with us,” said Gordon. “It wouldn’t have happened without you really coming out and supporting. It’s a community effort.”