Injectable calcium phosphate cement is a promising biomaterial for hard tissue repair due to its osteoinductivity, biocompatibility properties, and its use to correct defect areas involving narrow cavities with limited accessibility by the minimally invasive technique. Microwave-synthesized hydroxyapatite (HA) was used for the preparation of cement. In recent years, both magnesium and strontium calcium phosphate cements have exhibited rapid setting, improved mechanical strength, and a good resorption rate. A big step still remains to develop injectable magnesium and strontium phosphate cements with ideal self-setting properties, adequate mechanical strength, and good biocompatibility for clinical applications. In this study, both magnesium and strontium were doped with synthesized semiamorphous and crystalline hydroxyapatite (HA). The powder mixture was mixed with Na2HPO4, NaH2PO4, and a carboxymethyl cellulose (CMC) solution to develop the novel magnesium and strontium calcium phosphate cement. The setting time, physiochemical properties of hardened cement, microstructure, mechanical strength, and injectability of the prepared cement were studied. The toxicity evaluation and cell adhesion, which are necessary to identify the suitability of the material for different applications, were quantified and investigated using fibroblast cells. The setting time of cement was reduced substantially for magnesium-or strontium-doped cement by 2 min. The phase composition of the hardened cement expresses the semiamorphous or crystalline phase of HA with additives. Smooth and complete injection of cement paste was observed in semiamorphous HA-based cement. The intercellular reactive oxygen stress (ROS) of the Sr2+-doped cement sample showed varied degrees of toxicity to cells in terms of different concentrations. The Mg2+-doped cement showed significant attachment of cells after treatment at varying incubation times. © 2021 The Authors. Published by American Chemical Society.