The fire marshal who led the investigation into a Harlem building blaze that took the life of a firefighter claims the probe was rigged to protect the production company of actor Ed Norton, who was filming in the building.

Fire Marshal Scott Specht, who was lead investigator in the March 22 fire, filed a notice of claim Dec. 13 against the city, Chief Fire Marshal Thomas Kane, his deputy, John David “JD” Lynn, and Assistant Fire Commissioner Carlos Velez.

It alleges Specht was pulled from the probe and harassed by his bosses for reporting the alleged cover-up to the Department of Investigation.

“My client wants one thing and one thing only — a full and fair investigation into the death of Firefighter Michael Davidson,” Specht’s lawyer, Peter Gleason, told The Post on Monday.

The lawyer said he believes the investigation should be handed off to the feds.

The blaze that killed the 37-year-old father of four broke out at 773 St. Nicholas Ave., where Norton was shooting “Motherless Brooklyn,” starring Bruce Willis, Willem Dafoe and Alec Baldwin.

Gleason on Monday wrote a letter to President Trump asking the Department of Justice to investigate the blaze because “it appears the City of New York is attempting to conceal any culpability on the part of the movie production company.”

The FDNY in May said the deadly fire was caused by a boiler that triggered flammable materials.

Specht refused to sign off on that ruling, and his claim says “there is no doubt in” his “professional opinion [that the] movie production company was the precipitating cause of the conflagration that caused the death of Firefighter Davidson.”

The FDNY disputed Specht’s claim, saying in a statement that “a team of nine veteran fire marshals with decades of experience determined unanimously that heat from the boiler ventilation flue pipe ignited nearby combustible materials and caused the fire that took the life of Firefighter Davidson. Any additional investigations will come to the same conclusion.”

Messages left with the Law Department and a lawyer for Norton were not immediately returned.