According to Variety magazine, McGregor has agreed to provide one of the voices for the parody of World War II.
Action figures will be used to show how the Germans won their battle with England.
McGregor, 35, will be the voice of a Scottish farmer who is leading the resistance against the invaders.
Filmmaker Edward McHenry will direct the project.