Direct electrochemical nitrogen reduction holds the promise of enabling the production of carbon emission-free ammonia, which is an important intermediate in the fertilizer industry and a potential green energy carrier. Here we show a strategy for ambient condition ammonia synthesis using a hydrogen permeable nickel membrane/electrode that spatially separates the electrolyte and hydrogen reduction side from the dinitrogen activation and hydrogenation sites. Gaseous ammonia is produced catalytically in the absence of electrolyte via hydrogenation of adsorbed nitrogen by electrochemically permeating atomic hydrogen from water reduction. Dinitrogen activation at the polycrystalline nickel surface is confirmed with 15N2 isotope labeling experiments, and it is attributed to a Mars-van Krevelen mechanism enabled by the formation of N-vacancies upon hydrogenation of surface nitrides. We further show that gaseous hydrogen does not hydrogenate the adsorbed nitrogen, strengthening the benefit of having an atomic hydrogen permeable electrode. The proposed approach opens new directions toward green ammonia.