Federal and state officials are “dragging their feet” on bringing high-tech equipment to JFK Airport that could stem the tide of illicit fentanyl pouring into the US, a Staten Island Democratic lawmaker raged on Tuesday.

“Yet again our upper echelon bureaucrats, our nation’s leaders have failed us,” Rep. Max Rose, who also represents southern Brooklyn, said after taking a tour of the international mail facility at the Queens airport.

The General Services Administration, which manages all federal buildings, and the Port Authority, which oversees JFK, have delayed finalizing an agreement that would allow the installation of new screening and testing equipment to better detect illegal fentanyl in the mail, the Democrat said.

“Here’s my message to GSA and the Port Authority: If you want to keep on dragging your feet I’m going to drag you to my district where you can explain to the mothers and the fathers who have lost their children to this [drug] epidemic,” said Rose, who chairs the Homeland Security Subcommittee on Intelligence and Counterterrorism.

Rose’s comments come after he chaired a hearing last month in which he received confirmation that US Customs and Border Protection failed to make significant progress on recommendations made in a report last year by the Office of Inspector General, which found that CBP “has ineffective processes and IT security controls to support air mail inspection operations” at JFK.

The congressman noted that one of the key recommendations made in the report was a new, on-site lab at the mail facility so that packages potentially containing drugs could be screened there instead of in Newark where they are currently screened.

“We all know where the majority of the fentanyl is coming from. It’s coming from China, and it’s arriving by the post office,” Rose said. “The facility behind me is where 50 percent of international mail coming in to the United States is screened. This is how the fentanyl is getting into this country.”

Rose added that the screening process in Newark takes two weeks, while on-site screening would take just six hours.

“Try doing a sting operation with information that’s two weeks old,” he said.

When it comes to the new lab at the facility, Rose said, “the money is all there.”

“You have the GSA and the Port Authority tying themselves into a pretzel. I would go in there myself and start unscrewing the old equipment, and carrying it out myself, and we’ll help build the lab ourselves,” said Rose. “I’m sick and tired of the absence of urgency.”

According to Rose, additional drug-sniffing dogs that have been approved for the facility to help screen for fentanyl have not been added to the canine team.

Rose also said that during his tour of the facility, “I met nothing but incredible public servants.”

“Nothing we say today is a knock on them. Each and every day they come here and serve, here and throughout their country, with their heads down, and all too often we don’t talk about their successes.”

The Port Authority deferred comment to the GSA, which said in a statement to The Post that it has “worked diligently to move this project forward and maintain the project’s timeline.”

GSA said it received project approval from the Senate in June, but is still awaiting approval from the House Committee on Transportation and Infrastructure.

“We share Congressman Rose’s concerns on any unnecessary delays and encourage him to work with his colleagues in the House, especially those on the Transportation and Infrastructure Committee, to secure approval for this prospectus,” GSA said.

Additional reporting by Natalie Musumeci