An NYPD officer is suing the city and several fellow cops, claiming she was the target of repeated sexual harassment and even an attempted sex assault — but that higher-ups and her union refuse to step in.

Officer Danielle Campo claims in a federal suit filed in Brooklyn that fellow 100th Precinct officer Joe Mercado attacked her around January 2018 while the two sat in her vehicle, forcibly groping her and then demanding she perform oral sex on him.

“You’re going to suck this or you’re going to suck it,” he allegedly told her while forcing her head toward his lap. When she fought back, Mercado allegedly ripped her clothes and pulled out a clump of her hair, according to court papers.

Campo also alleges another officer at the 100th Precinct, Paul Marecki, repeatedly sent her sexually explicit messages like “You know I’m a foot freak” despite repeated requests for him to stop.

Both men repeatedly referred to Campo by a variety of offensive names, the lawsuit claims, including “whore,” and “thunder c–t.”

When Campo complained about Marecki multiple times to her supervisor at the 100th Precinct, which serves the Rockaways, she alleges he did nothing to stop the harassment. Instead, court papers allege that Sgt. John Ringel responded, “Oh man, he is creepy” and made a joke about Marecki “hiding in her backyard in trees.”

“It’s like [the serial killer from] ‘Silence of the Lambs,'” Marecki allegedly told her, according to the suit.

Campo also claims that another sergeant and two Police Benevolent Association representatives refused to act when she told them about the alleged harassment. The PBA did not immediately respond to a request for comment.

Following Mercado’s alleged attack, Campo says her hair began to fall out and she developed a full-body rash. She says her doctor blamed it on stress and had to prescribe her antidepressants.

“What happened to my client is horrible. And it should never happen, especially in 2019, and especially in law enforcement,” Campo’s attorney Rick Ostrove told The Post. “How does the police department allow this to go on?”

Mercado, Marecki and Ringel could not be reached for comment. A spokesperson with the NYPD said they would review the lawsuit, adding, “There is no tolerance for sexual harassment in the NYPD.” A spokesman for the New York City Law Department declined to comment.

Campo is seeking unspecified damages.

Additional reporting by Emily Saul and Tina Moore