It was an offer she couldn’t refuse — a lucrative fund-raising event in the notorious Staten Island mansion built by mob boss Paul Castellano.

Hillary Clinton — whose private computer server is being tested by the FBI for traces of “wiped” emails — ignored the symbolism of setting foot inside a house once bugged by the feds for a $2,700-a-head party for her presidential campaign Wednesday night at the late Mafia chief’s compound.

The Todt Hill manse — called the “White House” by both gangsters and the FBI during Castellano’s reign as head of the Gambino crime family — is now owned by Selim “Sal” Rusi, who paid $3.1 million for it in 2000.

Rusi, a Republican, said he agreed to host the political fundraiser for his dad, who “worships” Clinton and hubby Bill for supporting ethnic Albanians when he was president during the late 1990s war in Kosovo.

Rusi expected around 100 attendees from New York’s Albanian-American community to hear a speech and pose for photos with the former Secretary of State, whose campaign has been sputtering amid the scandal over her use of a private email server while running the State Department — a practice that has eroded voters’ trust in her, recent polls show.

Workers put down fresh sod, planted flowers and shrubs, and painted gold leaf onto the fence to spruce up the 1-acre estate ahead of Clinton’s visit, following her taped appearance on “The Tonight Show” with Jimmy Fallon.

Castellano designed the sprawling house to echo the presidential residence in Washington, D.C. — including a pillared portico and a circular drive surrounding a fountain — after he succeeded brother-in-law Carlo Gambino as head of the crime family in 1976.

“Big Paul” was infamously gunned down outside Sparks Steak House in Manhattan in 1985, on orders from underling John Gotti, who seized control of his empire and became known as the “Dapper Don” before dying of cancer in prison in 2002.

The home’s connection to crime didn’t end with Castellano’s death, however, as Rusi — who owns a skyscraper roofing and maintenance company in Brooklyn, and an electrical-contracting company in Manhattan — surprised a burglar there in 2011.

The crook fled with several pricey watches as Rusi chased him off, firing three shots from a licensed firearm.

The fund-raiser at Rusi’s house is Clinton’s first foray onto Staten Island since launching her latest presidential bid, according to the Staten Island Advance, which first reported the planned event.

A source told the paper that it was arranged by “high-level fundraising people who don’t know anything about New York, let alone Staten Island” — or the house’s deep mob ties.

A Clinton spokesman declined to comment, but Robert Zimmerman, a member of the Democratic National Committee who planned to attend the event, downplayed the site’s history.

“Sal Rusi’s home has no association to Paul Castellano. It has as much to do with Paul Castellano as Graceland does,” he said, referring to Elvis Presely’s mansion in Memphis, Tenn.

Neighbor Christy Parlatore, however, said she that thought rubbing shoulders in a former mob boss’ home was “in character” for Clinton.

“I haven’t seen her doing anything in the public eye that is moral or shows positive values,” said Parlatore, 42.

Another neighbor, Cody Coffey, 38, hung hand-lettered signs nearby reading, “HILLARY GO HOME” and “NEVER 4 GET BENGhAZI,” referring to the 2012 terrorist attack on an American consulate in Libya while Clinton was secretary of state.