A statement said that Republican senator, who has been fighting brain cancer since a diagnosis past year, is hospitalized in a "stable condition", The Washington Post reports.
"My husband @SenJohnMcCain is doing well after his surgery", McCain's wife Cindy said in Twitter post, adding that he was looking forward to getting back home.
Diverticulitis is an inflammation or infection of the diverticula, which are small pouches that can form in the lining of the intestines.
US Senator John McCain is in a stable condition.
McCain, 81, was diagnosed previous year with an aggressive type of cancer, glioblastoma, after a brain tumor was discovered by doctors.
Oil prices trade with caution as Brent lowers at $71
Oil prices rose on Tuesday amid worries that there could be a high risk of disruptions to supply, especially in the Middle East. Investors added to their bullish position, which is now almost equal to 640 million barrels of oil in past 9 months.
McCain returned to Congress and maintained a relatively regular congressional schedule through the fall as he underwent chemotherapy and radiation treatments.
The longtime Republican senator has been undergoing physical therapy related to brain cancer treatment at his family home near Sedona, Arizona, since December. McCain suffered an intestinal infection that required surgery, according to his congressional office. Senate colleagues that have spoken to him report that his mind is still sharp, but his office has given no indication on when he will be able to return to the Senate.
McCain has had frequent visits from family, friends and Senate colleagues. However, if McCain resigns after May, then the appointed senator would serve through the 2020 elections.