On his recovery from injury in 1979, McGrain regained his place in the Scotland team. He made 16 consecutive international appearances in the run up to the 1982 World Cup in Spain. Now captain of the side, McGrain was named in Jock Stein's 22 man squad travelling to Spain. He played in Scotland's opening game against New Zealand but was dropped for the next match against Brazil. McGrain came on as a substitute for Gordon Strachan in Scotland's third game, against the Soviet Union. This transpired to be his final game for Scotland.