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.
Lyrid meteor shower starts Monday night
As they burn up in the atmosphere, the meteors leave bright streaks in the sky commonly referred to as "shooting stars". Lyrid meteors are little pieces of Comet Thatcher, a long-period comet that orbits the sun about once every 415 years.
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.