President Trump intensified his attacks on Mitch McConnell on Thursday — suggesting that he should call it quits if he can’t advance the administration’s agenda in Congress.

Asked by reporters whether McConnell should step down, the president offered no vote of confidence for the Senate’s majority leader.

“I’ll tell you what, if he doesn’t get repeal and replace done, and if he doesn’t get taxes done, meaning cuts and reform, and if he doesn’t get a very easy one to get done, infrastructure, he doesn’t get them done, then you can ask me that question,” Trump said outside his Bedminster Golf Club.

“That means ask me that question. Let’s hope he gets it done,” he said when asked to be more specific. “I just want them to get repeal and replace done,” he said.

“They should have had this last one done. They lost by one vote. For a thing like that to happen is a disgrace and frankly it shouldn’t have happened. That I can tell you.”

Earlier, Trump continued his feud with McConnell, denouncing him twice more on Twitter.

“Can you believe that Mitch McConnell, who has screamed Repeal & Replace for 7 years, couldn’t get it done. Must Repeal & Replace ObamaCare!” Trump wrote at 6:54 a.m.

A few hours later, he was back at it, urging McConnell — who like the rest of Congress is on recess until after Labor Day — to act on his stalled campaign promises.

“Mitch, get back to work and put Repeal & Replace, Tax Reform & Cuts and a great Infrastructure Bill on my desk for signing. You can do it!” the president wrote.

It was the third tweet in 24 hours aimed at the Kentucky Republican, who has enormous power to control his party’s agenda.

“Senator Mitch McConnell said I had ‘excessive expectations,’ but I don’t think so. After 7 years of hearing Repeal & Replace, why not done?” Trump wrote Wednesday.

The Republican-controlled Senate last month narrowly defeated a bill that would have repealed parts of former President Obama’s Affordable Care Act — one of Trump’s major campaign pledges.

​Earlier this week, ​McConnell blamed the defeat partly on Trump’s inexperience, saying the president had “excessive expectations” and didn’t fully understand how Congress works.

Lawmakers have shown no inclination to take up repeal and replace again.

And experts warned that Trump’s belligerence could cost him his already dwindling support among Congressional Republicans.

“Discerning a particular strategy or goal from these tweets is hard,” Doug Heye, a Republican consultant and former Capitol Hill staffer, told The Washington Post.

“It just doesn’t help enact any part of his agenda, and it sends a further troubling sign to Capitol Hill Republicans already wary of the White House.”

The White House said Trump’s tweets were born of his frustration over not having any major legislative accomplishments nearly seven months into his administration, a failure he squarely blames on Congress.

“You can see the president’s tweets. Obviously there’s some frustration. I don’t have anything more to add,” spokeswoman Sarah Huckabee Sanders said.