I don't know much about McCain's religious views. Some say he's not particularly religious; others, that he's very private about his religion. His view of Latter-day Saints seems to be respectful but somewhat distant. His mother has expressed anti-Mormon views that he gently distanced himself from. When he was running against Romney, some of his supporters (including at least one major figure on his campaign staff) tried to use Romney's religion against him. McCain himself said he "didn't know" if Mormons are Christians.
Here are links to further information: