Queens Assemblywoman Vivian Cook is a corrupt racist who tossed around the N-word, degraded a biracial employee and hired her own grandson for a low-show job, an explosive lawsuit charges.

Ex-legislative aide Gail Palmer alleges that the ethically challenged and often-angry lawmaker would smash things on the floor while “frequently cursing at and excoriating” terrified staffers, who kept silent because they needed their jobs.

The 80-year-old Democrat often called her half a dozen employees “motherf- -kers” and would make bizarre racial proclamations including, “I’m feeling colored today,” or “I’m feeling n- - -erish,” according to court papers.

The veteran lawmaker, who is black, derided Palmer, whose mother is of African-American and white descent, as a “GeeChee” and “mulatto” after spotting a framed photo of the woman on Palmer’s desk, according to court papers.

“GeeChee” can refer to a coastal population of black people in the South with Creole origins but can also be derogatory slang for those with biracial backgrounds.

Palmer, 66, claims to have repeatedly begged Cook, to no avail, to stop using racial epithets.

“This is my office, I can do whatever the hell I want,” Cook would allegedly say.

“It was degrading,” Palmer said. “She thought it was cute.”

Cook, who also serves as the Queens County Democratic Committee chair, denied using such language to The Post.

Cook didn’t use profanity or racial slurs around white people, or in the Capitol, Palmer said.

“She was a different person in Albany,” Palmer claimed. “I was highly insulted that she would treat our people like this . . . She was an entirely different person when a Caucasian walked into the office.”

Cook, who has served in her southeast Queens seat for 28 years, could be sweet or turn inexplicably violent, Palmer alleged in a $1.5 million discrimination lawsuit she filed in Queens Supreme Court last week.

When an employee told Cook that staffers had been listening to Christmas carols in the Jamaica office during the holidays, an enraged Cook picked up the radio and slammed it to the floor, Palmer said.

“You never knew what you were coming to work to,” Palmer told The Post. “You woke up with knots in your stomach.”

Palmer was shocked at the difference between Cook’s polished social persona and her low-life behavior as a boss, repeatedly calling Palmer a “whore” for wearing sleeveless dresses on hot summer days.

“I didn’t realize elected officials can do anything they wanted to do and get away with it — how she conducted her office, how she spoke to people, how people just sat there and accepted what was taking place,” Palmer said.

Cook has skirted scandal for years.

A nonprofit she founded, the Rockaway Boulevard Local Development Corp., came under federal investigation after The Post exposed its misspending of public money, including more than $2.5 million from the Port Authority.

The group had used some of the cash to buy a vacant lot on Rockaway Boulevard, a few blocks from Cook’s district office, with a plan to build a business-resource center that never materialized.

The charity folded in 2010, but a few years later it began renting out the land as a private parking lot for trucks and construction equipment. Cook told The Post in 2015 that the money would go to pay off back taxes but provided few specifics.

The PA earlier this year joined a probe by the state Attorney General’s Office — separate from the federal probe — investigating the arrangement.

Cook has often been among the state lawmakers collecting the most in per-diem payments, money for staying in Albany or for traveling on legislative business.

In the first six months of 2017, she raked in $18,562 in per-diem payments plus another $3,714.31 for mileage and tolls, collecting more than Assembly Speaker Carl Heastie, The Post reported.

Even though it is illegal for state lawmakers to hire family members, Palmer claims in her suit that Cook had no problem putting her purported grandson, Reginald Chalmers, 37, on the payroll.

He is still being paid on the taxpayer dime with a salary of $42,000 a year, according to the state Comptroller’s Office.

Cook denied Chalmers was her blood relative.

“A lot of people call me mother and grandmother. That’s a young man who needed help and I gave him a job,” she told The Post.

But Palmer said Cook warned her “to never refer to Chalmers as her grandson,” according to the suit. “Everybody knew” he was her actual grandson, Palmer said.

Chalmers did not return a message seeking comment.

Chalmers watched porn in the office and showed up just two to four hours a day but got paid “as if he worked a full 40 hours per week,” according to Palmer’s complaint.

“Find some time for Reggie,” was allegedly Cook’s way of asking staffers to put the no-show Chalmers on time sheets, Palmer recalled to The Post.

The grandson could be volatile, the suit claims.

Palmer recalled how she would typically get everyone in the small office a fast-food breakfast, but Chalmers would show up so late, he would often throw away the cold food.

But one day he showed up early and Palmer hadn’t included him in the breakfast run.

“I don’t get any McDonald’s?” he asked.

“I didn’t think you were coming in,” Palmer replied.

Chalmers later blew his stack when a personal call dropped after Palmer transferred it to him.

“He exploded . . . He was screaming. He was threatening. I thought he was ready to hit me,” Palmer said.

The incident left Palmer shaking, she claims in court papers.

A fed-up Palmer finally filed a complaint with the Assembly’s human-resources department, noting Chalmers was Cook’s grandson.

An investigation found the “unfortunate” incident with Chalmers didn’t violate the legislative body’s harassment policy, and the Assembly ignored the alleged nepotism, Palmer said.

The Assembly did not respond to a Post request for comment.

Cook denied any problems between Chalmers and Palmer.

“I don’t know what she’s talking about,” Cook told The Post. “It’s not true. They appeared to be the best of friends.”

Palmer started working for Cook in 2006 but lasted only a few months because of the toxic environment, she said.

She returned in 2010 at Cook’s request, staying for six years to get medical benefits for her terminally ill husband, Tyrone, who suffered from liver cancer and pulmonary disease, she said.

“I couldn’t leave. Tyrone took care of me all my life. It was my turn to step up to the plate,” she tearfully recalled.

Cook allegedly made the $36,000-a-year gig “horrific,” repeatedly proclaiming that Tyrone “wasn’t really sick” and saying, “He’s not even really dying.”

Palmer claims she got no sympathy when she made a solemn call in September 2016 to her boss.

Cook said, “What are you going to tell me now, he’s in a coma?”

“No, assemblywoman, he died,” Palmer replied.

Cook hung up.

Palmer asked Cook not to attend his memorial service.

Cook then canned Palmer, but allegedly never informed her.

When Palmer showed up for work on Jan. 2, 2017, Cook confronted her, court papers say.

“I fired your ass . . . You’re uncomfortable with me being at your home? I’m uncomfortable with you being in my office,” Cook told her, according to the court papers.

Palmer “contorted herself” to avoid litigation, said her attorney, Neal Brickman, who noted his client wants Cook “to comply with the anti-nepotism law and treat her employees with dignity and respect.”

Asked about the allegations, Cook said, “I was very nice to Mrs. Palmer. I gave her a job when she needed a job. They needed health insurance.

“She’s taking me to court, but she’s going to have prove what she says I did. If things were so bad, why did she come back and ask for a job the second time around?”

Cook said she fired Palmer because “I could not keep her — it was time for her to go.”

Additional reporting by Isabel Vincent and Melissa Klein