Cu-Pt/NPCC is achieved through galvanic replacement reaction (GRR).
Cu/nanoporous carbon composite (Cu/NPCC) is used as precursor to GRR
Cu/NPCC is synthesized by direct carbonization of MOF-199 at 900 °C
Cu-Pt/NPCC display excellent electrocatalytic performance for HER.