The Liverpool midfielder is part of Joachim Low's 26-man squad for the fixtures.
Spain visit Dusseldorf on Friday March 23, before Germany host Brazil in Berlin four days later in a game that could see Can come up against Reds teammate Roberto Firmino.