An irate Manhattan subway station agent was caught on video flipping a pair of angry birds at a straphanger during a wild rant.

Jonathan Pillot, 59, who shot the cell phone footage, said the trouble began while he was line on to buy a MetroCard because workers were repairing all of the machines at the West 4th Street station.

A woman in her eighties asked the agent, Stephen Herbert, for a slip so she could get a senior card about 11 a.m.

Pillot said the agent shouted at her. “He went insane on her. It broke my heart,” he said. “It was indefensible.”

The woman then called the agent an idiot and stormed off.

Warning: Graphic language

View video

Pillot, next on line, then chastised the agent. “You’re a city employee. You can’t talk to a customer like that,” he said. “That’s when he went insane on me.”

When he started shooting video, the agent flipped him off on both hands, and called him a fool.

“He proudly held them up,” said Pillot. “He said, take my pictures.”

A union source said the video only showed half of the story, and that the customer called the agent an idiot after asking for a service that had ended a year ago.

An MTA spokesman said the authority was aware of the video.

“This is absolutely unacceptable,” said Kevin Ortiz, who said the MTA will take appropriate disciplinary action against Herbert.

The worker could face termination, sources said.