This paper proposes a decision-oriented framework for the optimal design of green hydrogen production plant using proton exchange membrane (PEM) electrolyzer powered by photovoltaic (PV) system with energy storage for a hydrogen fueling station. The station is designed and calculations are performed to determine the amount of hydrogen needed to fuel 10 vehicles peak daily, then the model of PEM electrolyzer is presented and simulated with variation of critical parameters such as temperature, cathode activation overpotential and anode activation overpotential. Grey wolf optimizer (GWO) is used as a numerical tool to calculate the optimal parameters for the PV system configuration that match the PV system voltage at any irradiance with PEM electrolyzer voltage in order to generate the required amount of hydrogen. These parameters include PV array current and voltage, number of PV modules connected in series/parallel, PEM cell area and number of PEM cells. Then, the GWO is performed to obtain the optimal battery storage system capacity required for different scenarios. MATLAB software is used to run the system according to optimal parameters to show the performance of the system based on daily real irradiance readings for sunny and cloudy dates with certain load profile. Calculations and simulation results show that PEM electrolyzer voltages match with PV system maximum power voltages for each irradiance value, battery capacity is obtained also for three scenarios: importing zero power from the grid, exporting zero power to the grid, or exporting/importing power to/from the grid for given sunny/cloudy days profiles and load profile.