“The Sopranos” co-producer Jason Minter says in a lawsuit that he is dealing with a drama at his Manhattan restaurant that could have been a story line from the show about mobsters — a neighbor threatening to break the chef’s arms and legs.

Minter, an associate producer on the HBO hit during its last four seasons, is suing Jay Meetze, who lives directly above Minter’s popular Indian Road Cafe on West 218th Street in Inwood.

Minter, 47, says in Manhattan Supreme Court papers that Meetze, 43, targeted the eatery after he was robbed in his apartment in a marijuana deal gone bad.

Meetze allegedly told Minter he had a “hunch” Minter’s chef had set up the robbery.

In February 2016, “Meetze threatened that his ex-boyfriend would arrange to have the chef’s ‘arms and legs broken’ and will be ‘tortured and murdered on video,’ ” the suit says.

When Minter refused to fire the cook, Meetze terrorized the owner, his 8-year-old daughter, his employees and his patrons, the suit says.

Meetze reported a fake bomb threat to 911, called a Mexican employee a “wetback” and photographed Minter as he was picking up his daughter from a school bus, according to court papers.

Meetze did not return a call seeking comment.

A Manhattan judge temporarily barred Meetze from harassing the cafe owner and his employees pending a hearing of the matter.

“We were pleased that the court recognized the need for our client to have the protection,” said Larry Hutcher, Minter’s attorney.