Magnesium alloys are known by their good biocompatibility and mechanical properties for applications in biomaterials. In this work, TiO2 particles co-doped with copper and nitrogen were synthesized and deposited as coatings onto ASTM B107 AZ31B magnesium alloy by dip-coating. The cell viability and corrosion resistance of the coatings were tested in the laboratory. The samples were characterized using nanoindentation, Scanning Electron microscopy (FE-SEM), Wavelength Dispersive Spectrometry (WDS), and X-Ray Diffraction (XRD). The corrosion resistance of the coatings was evaluated by using potentiodynamic tests in SBF and hydrogen evolution. In addition, to evaluate cell viability, MTT-assays were done using Saos-2 cells culture. The synthetized TiO2 particles co-doped with Cu and N where found to have a diameter of 21.26 ± 5.5 nm. Coatings with a thickness of 76 ± 16 μm were obtained. The hydrogen evolution tests showed that TiO2/AZ31ac coatings reduced the corrosion rate and the mass losses. However, for potentiodynamic corrosion tests, the corrosion potential was the same but a decrease in the Icorr values with respect to AZ31 alloy was obtained for the sample with TiO2/AZ31ac. In-vitro cultures using Saos-2 cells demonstrated that the coatings obtained by TiO2 and co-doped TiO2 with Cu and N particles improved significantly cell viability of the AZ31 alloy at 53.9% and 41.4% respectively.