Electrocatalytic nitrate reduction to ammonia (NO3RR) is a promising approach to recycle nitrogen from nitrate pollutants, yet it remains challenged by low Faradaic efficiency and insufficient NH3 production. Herein, Cu-doped nanoporous Co2P (np-Co2−xCuxP) is reported as electrocatalyst for NO3RR, achieving an ammonia yield rate of 30.6 mg h−1 cm−2 with a Faradaic efficiency of 93.4% at −0.3 V vs. RHE. In-situ spectroscopic analyses indicate that Cu incorporation modifies the surface electronic structure, resulting in the promotion of *H adsorption and *NO2− hydrogenation, thereby facilitating efficient ammonia generation.