Caption  Mourners awaited the funeral home in Pheonix, Arizon
Arizona's Senator for Seniors and 2008 Republican Presidential Candidate were diagnosed after doctors discovered his tumor during surgery last July to remove a blood clot above his left eye.
His family said he would be in Phoenix, Arizona, and in Washington DC before a funeral at Washington National Cathedral and his funeral in Annapolis, Maryland.
Former Presidents Barack Obama and George W. Bush are expected to give eulogies.
The son and grandson of the Navy admirals, Mr. McCain was a fighter pilot during the war in Vietnam. When his plane was shot down, he spent more than five years as a prisoner of war.
While being detained, he suffered torture and severely disabled him.
McCain fought hard until the end
By Anthony Zurcher, BBC North America reporter
John McCain was born on the eve of World War II, at the beginning of the "American Century" – a time when the US at the height of its history was political, military and cultural power. He dies of what might be considered the twilight of this age, as the nation turns inward and walls, literally and metaphorically, isolates itself from the rest of this world.
The life of the Senator from Arizona marked the path of this journey.
He suffered, as the nation suffered, from the morass of Vietnam.
As a young politician, he was tempted by the lure of power and money, trapped in a scandal over the influence trade that almost cost him his career.
In his first race for the president in 2000, he used an anti-establishment mood and a longing for authenticity that would later culminate in Donald Trump's election. In 2008, he won the Republican nomination, only his hopes were shattered by the Barack Obama phenomenon and a collapsing US economy.
McCain never won the top political office he longed for. Throughout his life, however, he offered the full defense of an America that was active and involved in the world. In his last years he has argued with Mr. Trump about the direction of the Republican Party and the principles it should adopt.
It is an open question whether these views have a future in his party. McCain fought for what he thought was right until the end. Agree with him or not, that is indisputably a most suitable epitaph.
When McCain announced the news of his death, his speeches began to begin.
Former President George W. Bush described Mr. McCain as "a patriot of the highest order," adding, "He was a public servant in the best traditions of our country, and for me he was a friend I greatly miss "Sarah McCin, who ran mate during his 2008 bid for the president, said the world had lost" an American original "and shared a picture of herself with the man she named her friend.
Donald Trump, whom Mr. McCain has strongly criticized, tweeted his "deepest sympathy" for McCain's family, but no commentary on his life
Sources cited by US media said President Trump would not invited to the funeral, and the current government is likely to be represented by Vice President Mike Pence
Tributes were also paid by the other si de
Barack Obama, the Democrat who has beaten Mr. McCain as president, said despite their differences they "shared a fidelity to something higher – the ideals for which generations of Americans and immigrants alike fought, marched and sacrificed."
"Few of us have been tested as John once was or must show the courage Obama did, "but we all have the courage to put the greater good over our own.
"At John's Best, he showed us what that means."
Caption  Barack Obama, who competed against Mr. McCain in 2008, was one of the first to pay tribute
Former vice president, longtime friend and political opponent Joe Biden said McCain's "impact on America is not over."
"John McCain's life is proof that some truths are timeless," he said in a statement. "Character, Courage, Integrity.
" A life that embodies these truths casts a long, long shadow. John McCain will cast a long shadow. "