Boateng picked up a left adductor injury in Bayern's 2-1 UEFA Champions League semi-final first leg defeat to Real Madrid on 25 April, but has been named in Joachim Low's provisional 27-man squad for the finals in Russia.
Watch: Jerome Boateng's rise to the top!
"I'm in close contact with Dr. Hans-Wilhelm Müller-Wohlfahrt. He says I'll be there if I avoid silly mistakes. I'll be shooting myself in the foot if I rush things.
"My aim is to play once before the World Cup, possibly twice, so that I get some competitive practice in."
Germany, who face Austria in a friendly on 2 June and Saudi Arabia on 8 June, begin their World Cup defence against Mexico on 14 June. Sweden and South Korea complete Group F.
Löw must submit his final 23-man squad to FIFA by 4 June.