A Manhattan doctor accused of threatening to fatally shoot his social-circuit wife is now suing the NYPD to get back his gun permit — and his 18 registered pistols.

Dr. Peter Kaplan, a child psychologist formerly affiliated with NYU Langone Medical Center, had warned his estranged fashion-designer wife, Andrea Karambelas, in July 2013 that he had “access to guns’’ and “she “would be dead,’’ the woman says.

She filed a domestic-incident report and got a restraining order against him, according to court records.

Kaplan was convicted of violating the order when he told his brother to ask his wife to drop the claim. He was sentenced to 20 days in jail, a year of probation and his guns were taken away.

He was cleared of assault and harassment charges related to the alleged death threat, but his estranged wife told the NYPD’s gun licensing division that she had “not fabricated” the incident and “was not in favor” of him keeping his pistol license.

The Upper East Side couple, who also own a home on Long Island, have had a turbulent marriage, according to court papers.

The recent NYPD ruling yanking Kaplan’s permit found that before the alleged July 2013 death threat Karambales filed a report at a local precinct claiming her husband warned her in a Family Court hallway, “You die b—h.” A year later Kaplan got an order of protection against his wife after she allegedly screamed at him in the subway.

The New York Medical College grad insists his wife’s allegations are nothing more than a “campaign of lies.”

She declined to comment.

Kaplan had 18 registered handguns registered to one residence handgun license that was revoked in 2015. He appealed to the NYPD and lost in July when hearing officer Arlynne Lowell found that Kaplan violated “a number of rules that govern his pistol license” including failing to notify the NYPD’s registration division when he was arrested and neglecting to seek permission to store the guns with a private dealer.

The guns are currently in the possession of the Southampton Police Department and at a private storage facility.

Kaplan, 57, says in his Manhattan suit that he’d be willing to settle for a suspension of his gun license instead of a revocation until his divorce from Karambales, 56, is finalized. His wife no longer has a restraining order against him, he notes in the suit.

Kaplan argues that taking away his license instead of suspending it is an “excessive punishment.”

He did not return calls for comment.

His wife runs her own design firm, Karambelas LLC, and is a regular at city galas.

A city Law Department spokesman declined to comment on behalf of the NYPD.