Microsoft Corp. is in serious discussions to buy Mojang AB, the Swedish company behind the popular "Minecraft" videogame, according to a person with knowledge of the matter.

The deal would be valued at more than $2 billion and could be signed as early as this week, the person said. A Microsoft spokesman declined comment, as did Mojang Chief Executive Carl Manneh.

A...