This study presents a mathematical model to evaluate the performance of gas pipelines during hydrogen injection in a gas pipeline-compressor station. The developed model presents the calculation of methane–hydrogen mixture (CH4/H2) transportation through the compressor station, where the compensation of pressure drops in the mass and energy balance takes place. Simultaneously, in the operation of the centrifugal blower system of gas compressor stations, the emissions of CO2 are considered, considering the mixing of gas media and the compression of CH4/H2. This mathematical model is realized for the pipeline transportation of hydrogen, at which the principle of mixture expansion occurs. The aim is to solve the problem of CO2 emissions at compressor stations. The optimization procedure has been formulated using a system of nonlinear algebraic equalities. The research focuses on the adaptation of existing gas transportation systems to CH4/H2 transportation and the impact of environmental risks on the operation of compressor station equipment. In this case, it is possible to determine the quantitative amount of hydrogen that can be added to natural gas. By solving the problem of finding the inner point of sets using the system of nonlinear algebraic equalities, it is possible to obtain the control parameters for safety control of technological modes of CH4/H2 mixture transportation. The study findings reveal that the consumption of gas charger and hydrogen was 50.67 and 0.184 kg/s, respectively, and the estimated efficiency resulting from the modified turbine design was 75.1 percent. These results indicate that the equipment operates more efficiently when hydrogen is being transported. The numerical analytical results indicated in this study hold practical significance for design applications. It will assist in identifying and evaluating the restrictions that may develop during the technological, operational, and design stages of decision-making.