First lady Chirlane McCray took to Twitter on Tuesday night to speak out about the rash of cop suicides that has shaken the NYPD this year.

Replying to a post from the mayor’s office — which credited McCray’s mental health program, ThirveNYC, for helping the department deal with suicide prevention — the first lady said: “The lives of our NYPD officers are on the line.”

“Now more than ever we need to work together to support our officers as they navigate the huge emotional demand that comes with protecting our city,” McCray added.

She appears to be doing damage control after getting blasted last week over a decision that was made to pull Thrive — which has been panned as a mismanaged money pit — out of a mental health seminar for first responders, all because a pro-cop group was co-sponsoring it.

The $1 billion signature program was supposed to staff the upcoming “mental health first aid training” event with psychological counselors, but pulled its offer once it learned Blue Lives Matter was involved, according to Councilman Joe Borelli.

“This was going to be to train police officers how to recognize signs of depression,” said the Staten Island Republican, while speaking to The Post last Wednesday.

“We had people in the police department who wanted to save lives,” Borelli added, “and now it’s canceled and we have to reschedule it because of the PC environment that de Blasio has caused.”

A city report released back in May found that the need for mental health services had actually grown since the launch of McCray’s initiative.

“Mental-heath-service needs have worsened, as have substance-abuse-disorder needs and developmentally-disabled needs,” the Health Department ­report said.

Since 2015, Thrive has spent $560 million in taxpayer funds — and it’s expected to have a $250 million annual budget going forward.

“Go away, you hideous hypocrite,” said a Twitter user to McCray on Monday night, in response to her cop suicides tweet. “But before you go…..return that thrive money!!!”

So far, nine cops have taken their own lives this year — including one last Wednesday.

Blue Lives Matter members called the decision by Thrive to pull out of its mental health event, after all that’s happened, “very disheartening.” Mayor Bill de Blasio blasted their claims as “a lie,” and Thrive officials later claimed that they had accidentally “mishandled” the seminar planning.

“This program, it could have done a lot of good things,” said Blue Lives head Sgt. Joseph Imperatrice. “This is the problem: You reach your hand to try to do good things and, in this case, save lives, and because of political agenda they want to pull it back.”