MOSCOW—The number of McDonald's Corp.'s restaurants that are either being shut down or inspected by the Russian consumer regulator has grown steadily over the past several days as tensions between Moscow and the West intensified after Kiev accused Russia of invading Ukraine.

By Friday a total of 12 McDonald's restaurants had been shut down by Rospotrebnadzor, Russia's state consumer regulator, over alleged sanitary violations—up...