The Rangers goalkeeper was given a lifetime ban following a severe breach of discipline when he was alleged to have stayed up drinking following an international game in 2009, then appeared to gesture to the cameras as he sat on the bench just a few days later.
The ‘boozegate’ saga looked to have ended any hopes that McGregor had of playing for his country again, but Levein has decided to recall the goalkeeper, who was pushed aside by former manager George Burley over the episode.
Levein is without first choice goalkeeper Craig Gordon who recently broke his arm and McGregor is now considered favourite to start for Scotland in goal.
The Rangers goalkeeper, who made his international debut in 2007, was set to make his comeback in Levein's last squad for the fixture against the Czech Republic at Hampden Park in March, but was ruled out after sustaining an eye injury in an incident which occurred in Glasgow.
Levein admitted at the time that the goalkeeper's absence was also, in part, to avoid the "circus" that would have surrounded his return.
The other fresh faces included in Levein's relatively new-look squad are West Bromwich Albion midfielder James Morrison, who has recently recovered from an injury which ruled him out of contention for most of last season.
McGregor's team-mate at Rangers, Kirk Broadfoot, is also recalled and he will be hoping to make his first Scotland appearance since October 2008, whilst Stephen McManus is another player who earns a recall following his exclusion from the squad that faced the Czech Republic.
James McFadden, the Birmingham City striker, is recalled after he missed the game in March due to injury.
The notable absentees include the Dundee United pair Paul Dixon and Gary Kenneth, plus Paul Hartley and Gary Caldwell, whilst of course Sunderland number one Gordon is missing with that broken arm.
The game will provide a good work-out against renowned European opposition in Sweden, as Scotland prepare for their Euro 2012 qualifiers against Lithuania on September 3 and Liechtenstein four days later.
Scotland squad to face Sweden on August 11:
Goalkeepers: Alexander (Rangers), Marshall (Cardiff), McGregor (Rangers)
Defenders: Hutton (Tottenham), Berra (Wolves), Broadfoot (Rangers), McManus (Middlesbrough), Wallace (Hearts), Webster (Rangers), Whittaker (Rangers)
Midfielders: Adam (Blackpool), Brown (Celtic), Dorrans (West Brom), D Fletcher (Manchester United), McCulloch (Rangers), Morrison (West Bromwich Albion), Robson (Middlesbrough), Thomson (Middlesbrough)
Forwards: Boyd (Middlesbrough), S Fletcher (Wolves), Iwelumo (Burnley), McFadden (Birmingham), Miller (Rangers)