In recent years, the design and development of new high-performance alloys based on first principles has received extensive attention. However, there are few reports on the structural design and thermodynamic properties of Cu-Zr alloys at nanoscale. In this paper, based on the crystal structure characteristics of CuZr2, 12 kinds of Cr-doped CuZr2 structures were designed and optimized by the method of Cr atom doping through the first-principle calculation based on the density functional theory, and 6 kinds of mechanically and dynamically stable doped structure models were found. By calculating the electronic structure, elastic properties and hardness of the CuZr2 and its dynamically stable Cr-doped structures, it is found that all the studied objects have energy bands through the Fermi energy level and are metallic. The main contributors to the metallic properties of the CuZr2 are the p and d orbital electrons of Zr, while the main contributors to the metallic properties of the 6 dynamically stable Cr-doped CuZr2 structures are the p and d orbital electrons of Cr and Zr. Meanwhile, CuZr2 has symmetrically distributed spin electrons that do not show magnetism externally. However, the doping of Cr atoms increases the elemental species of the matrix. In addition to the difference of spin electrons brought by the d-orbital electrons of Cr atoms, the doped Cr atoms also destroy the symmetrical distribution of electrons with different spin directions in the p- and d-orbitals of Zr atoms in the matrix, so that the designed 6 dynamically stable Cr-doped CuZr2 structures exhibit ferromagnetic properties with magnetic moments ranging from 0.303 to 5.243 μB. In addition, it is found that Cr can improve the mechanical properties of CuZr2. When the Cr atom is used to replace the Zr atom in the matrix, the elastic modulus and hardness of the material can be improved, and when the Cr atom is used to replace the Cu atom in the matrix, the machining properties of the material can be improved due to the reduction of hardness. The datasets presented in this paper, including the band structure, density of states, phonon dispersion frequency, etc., are openly available at https://www.doi.org/10.57760/sciencedb.j00213.00122 (https://www.scidb.cn/s/B77JFn).