Improving the voltage stability in power systems is one of the most important discussions in planning and operation. Voltage stability relies on network configuration, the amount of reactive power, and the setting of reactive power compensating devices. The strong voltage stability of the wind injection buses was enhanced by inserting wind generation and thus increasing the wind penetration level in them. The power system and wind generation area have been influenced by placing new generation at these buses. The proposed method presents a suitable solution to identify the weak points of the system for each wind penetration level. The proposed method uses an index of maximum loading factor and mega watt margin in order to determine the size and the location of wind farms. This study also shows that the location of static VAR compensator has even a vital role in increasing the loading level and megawatt margin of the system. Simulations have been done in the IEEE 14-bus test system using Matlab and PSAT software.