This question actually can't be answered unless you know the density of the final solution or you assume the volume of the solution is the volume of the water (dilute solution) - not likely in this case.
The molarity would be the moles of MgCl2/ volume of solution in liters.
The moles of MgCl2 = mass of MgCl2/molar mass of MgCl2
The liters of solution = (mass of MgCl2 + 500 g Water)/ density of the solution in g/liter
The formula is (mi/Mi)/((mi+mw)/(1000ρsoln)) where density is the more typical g/ml
molality would be more straight forward: divide mole MgCl2/.5 liters of water. (.5 liter = .5 kg = 500g)