MXene materials have received increasing attention due to their unique properties and potential applications. Ti
2CO
2, as a typical MXene material that has been prepared, has been widely studied. The adsorption characteristics of two-dimensional materials for gas molecules can be significantly improved through transition metal modification. However, there are few studies on the use of transition metals to modify Ti
2CO
2. In this work, the adsorption processes of different harmful gases (CO, NH
3, NO, SO
2, CH
4, H
2S) on the surfaces of these two materials, i.e. Ti
2CO
2and metal Sc modified Ti
2CO
2,are studied and analyzed based on first-principles density functional theory and generalized gradient method. The geometric optimization calculation of the metal-modified adsorption harmful gas structure is carried out, and the kinetic energy cutoff energy of the plane wave basis set is taken as 450 eV. The calculation results show that the structure in which Sc atoms are located above the C atoms in the hollow position has a large binding energy, but it is smaller than the experimental value of the cohesive energy of solid Sc (3.90 eV). Sc atoms can effectively avoid clustering. Surface Sc metal provides active sites for gas adsorption. By analyzing the optimal adsorption points, adsorption energy and other parameters of different gases, the adsorption effects of metal Sc-modified Ti
2CO
2on these gases are analyzed. Among them, the adsorption effect of SO
2is better, the adsorption energy is increased from –0.314 eV to –2.043 eV, and the adsorption effects of other gases are improved. Due to the introduction of new atoms on the surface of Ti
2CO
2, the carrier density and carrier mobility of the material are increased, thereby improving the charge transfer on the surface of the material, which is beneficial to its sensitivity to gas molecules. The results of density of states and work function further verify that the carrier density and carrier mobility of Sc-Ti
2CO
2are increased, which is beneficial to gas adsorption. It is expected that the metal Sc-modified Ti
2CO
2becomes an excellent gas-sensing material for the detection of CO, NH
3, NO, SO
2, CH
4and H
2S, and the present work can provide a reference for theoretically studying the gas-sensing performance of metal Sc-modified Ti
2CO
2materials.