McGee also provided eight rebounds and three blocks while Danilo hauled down seven boards for the Nuggets, who continued their post-season tune-up with a sixth win in eight games.
Denver holds the sixth seed in the Western Conference with two games remaining.
Orlando, meanwhile, needs one more victory to secure the East's sixth position.
Ryan Anderson led the Magic with 24 points and nine rebounds.
Interpol investigating stolen passports on missing flight
Teacher apologizes for showing sexual image of herself in class