Magnesium phosphate is a general term for salts of magnesium and phosphate appearing in several forms and several hydrates:
Amorphous magnesium phosphate is also claimed.
Magnesium phosphates are listed on the U.S. FDA's Generally recognized as safe (GRAS) list of substances.