The former world number will return to action after hip surgery in January.
Federer made a return to the top ATP ranking for a sixth time through his semi-final victory on Saturday over Australian Nick Kyrgios.
Roger Federer will play for the 98th title of his career on Sunday against Milos Raonic.
Murray has not played a competitive match since his Wimbledon quarter-finals exit last July.
Roger Federer needs to win one more match in Stuttgart to return to the No.1 spot for the second time this season.
Roger Federer was made to battle after a losing first set as the Swiss star made his long-awaited return to tennis
Rafael Nadal has admitted he finds it hard to make the transition from clay to grass
Djokovic, beaten by Rafael Nadal in the 2008 Queen’s final, traditionally opts against playing a pre-Wimbledon event.
Roger Federer is beginning his grass season in Stuttgart for the third consecutive year after reaching the 2016 semi-finals.
Rafael Nadal insists that he has no desire to become locked into an arms race with Roger Federer to surpass his great rival’s 20 Grand Slam titles.