Catalysis of the reaction: Mg-protoporphyrin IX + S-adenosyl-L-methionine = Mg-protoporphyrin IX 13-monomethyl ester + S-adenosyl-L-homocysteine.
S-adenosyl-L-methionine:magnesium-protoporphyrin-IX O-methyltransferase activity