Empire State Building officials fear that an X-rated photographer wants to turn the tower’s world-famous observation deck into a smut scene — so they’re suing to permanently bar the shutterbug from the skyscraper.

Controversial commercial photographer Allen Henson recently announced on his Facebook and Instagram accounts that he is “looking for a model who isn’t afraid of heights in NYC.”

The June casting call includes a picture of a topless brunette throwing her hair back next to seemingly clueless tourists glued to viewfinders atop the Midtown skyscraper.

The shot was part of Henson’s 2013 “boobs around town project,” for which he snapped half-nude models in public places around the city.

Last year, the Empire State Building sued Henson for $1.1 million over the stunt, claiming he didn’t have permission to stage the “objectionable and inappropriate” commercial shoot. The trespassing case is still pending.

Lawyers for the “World’s Most Famous Office Building” rushed to court earlier this week asking a judge to permanently prevent Henson from entering the tower.

The emergency filing argues that no amount of money could repair the Empire State Building’s “extremely valuable and unique reputation as a safe and secure family and tourist attraction” if Henson and his boobs have unrestricted access to the deck.

One lawyer, David S. Tannenbaum, even fumes that Henson’s “threatened conduct may pose a danger to those visitors that happen to be present at the time.”

Another shoot would cause “serious and irreparable injury” to the Empire State Building, Tannenbaum argues.

Henson did not respond to requests for comment.

But after the suit was filed, the Iraq war vet-turned-fashion photographer put out a call on social media for “a large platoon; about 50 topless girls to accompany me to the NY Supreme Court.”

“Send info to allen@allenhenson.com,” he added.

The parties — and perhaps a parade of bare-breasted babes — are due in Manhattan ­Supreme Court at 80 Centre St. before Justice Geoffrey Wright on July 23.