Abstract This paper focuses on the potential local voltage stability risks and transient stability margin decline in the power grid after the large-scale integration of new energy. Based on the transient stability margin index of the power grid, a method for evaluating and optimizing the transient stability margin after the integration of wind power into the power grid is proposed. This paper provides guidance for the grid connection points and voltage level determination of the wind power access system during the planning phase, as well as the configuration of reactive power compensation devices such as SVGs.