A Big Apple community group has written to President Trump to beg him to intervene in New York City’s pervasive homeless issue the way he has in House Speaker Nancy Pelosi’s San Fransisco — claiming Mayor Bill de Blasio’s efforts have been “a complete failure.”

“President Trump needs to tell the mayor, ‘If you don’t take the bull by the horns and come up with a real solution, then the federal government is going to come in and do what you’re incapable of doing,'” Mike Fischer, the president of the Central Park South Civic Association, told The Post on Friday.

The Manhattan resident said the idea to write to Trump came to him after the president this week blamed Gov. Gavin Newsom and his impeachment nemesis Pelosi for out-of-control homelessness in California.

In a Twitter missive Thursday, the president blasted Pelosi for allowing the homeless crisis in her San Francisco district to become “the worst anywhere in the US,” and said if Newsom couldn’t fix the problem, the federal government would get involved.

New York state has the second-largest homeless population in the nation — a total of 91,897 as of January 2018, according to the US Interagency Council on Homelessness. California has 129,972.

The number of people experiencing homelessness in the Big Apple jumped to 67,170 in 2018 from 42,190 in 2011, according to The Bowery Mission.

Fischer on Friday went after de Blasio’s hallmark 2017 “Turning the Tide on Homeless” initiative, which is dropping hundreds of million of dollars on 90 new shelters.

As of this December, only 30 shelters have been opened while another 30 are still in the planning or construction stages.

Fischer claimed many of those buildings, including the controversial shelter in the former Park Savoy Hotel on ritzy “Billionaire’s Row,” are death traps run by “slum lords.”

The Central Park South Civic Association has been vocal in its opposition to the shelter at 158 W. 58th St. which residents have been trying to block from opening in their neighborhood, claiming it is dangerous in the event of a fire because it only has one exit.

In their letter to President Trump, seen by The Post, the civic group described the homeless situation in New York as “intolerable” and “only becoming worse.”

“We ask for the direct intervention of the federal government, since any and all efforts by New York City officials have been a complete failure.”

Added Fischer: “It’s 2020 in a couple of days. There is no reason why we can’t help these people and put together amazing programs and rehabilitate these people to get them back into jobs and stable housing.”

But de Blasio spokeswoman Freddi Goldstein said the issue was the Queens-born president’s doing.

“Communities across the country are confronting homelessness, and it’s people like Donald Trump who have exacerbated the issue,” Goldstein said in a statement.

“Housing prices are out of reach for so many Americans, and developers with no regard for anything but their bottom line are part of the problem, not the solution,” she continued.

Fischer argued it wasn’t a political fight about Trump or de Blasio but about “helping people on the street.”

“Instead of worrying about impeaching the guy, why not worry about people on the streets who need help,” he continued.