To address the power supply-demand imbalances and low renewable energy consumption rates caused by uncertainties in wind and solar power and power consumption of oil pump wells, an optimized capacity configuration model for the wind-solar-storage multi-energy system for oil well groups was developed. Models for wind turbine output, photovoltaic panel output, battery charging and discharging power, and power consumption of oil wells were established. Taking the total investment cost as the objective function and the renewable energy consumption rate as a constraint, an optimized model for wind-solar-storage system capacity configuration and corresponding algorithms were proposed. Using a specific well site as an example, a capacity configuration scheme for production sites for the wind-solar-storage system of oil well groups was designed. The research and case analysis showed that the proposed optimized capacity configuration model and algorithms realized optimal capacity configuration of various sources in the multi-energy system of oil pump well groups. While considering the economic efficiency, the model significantly improved the renewable energy consumption rate at the well site to 86.15%. Additionally, the scheme effectively mitigated fluctuations in renewable energy output and periodic energy consumption, showing substantial practical application benefits.