It remains a huge challenge to develop non precious electrocatalysts with high activity to substitute commercial Pt catalysts for hydrogen evolution reactions (HER). Here, the C-Cu-DI and C-Cu materials with the copper based nanoporous carbon structures were synthesized by carbonizing MOF199 and DI-MOF199. The composite structure and HER electrocatalytic properties of the C-Cu-DI and C-Cu materials are studied. The results show that C-Cu-DI and C-Cu samples exhibit good catalytic activity. And C-Cu-DI sample through the addition of Dimethyl imidazole(DI) in the DI-MOF199 precursor has higher electrocatalytic activity than the C-Cu sample. The superior catalytic activity is attributed to the special composite structure of nanoscale deposition particles on the framework with plenty of nano pores and nano copper and few copper oxidation particles distributed or wrapped into the amorphous porous carbon phase. The nano copper and few copper oxidation particles in the C-Cu and C-Cu-DI catalysts maybe provide the more effective catalytic activity sites. The C-Cu-DI composite with large size spherical hollow deposition particles has higher conductivity, better BET surface area and reasonable micro-meso-macro porous distribution, so the overpotentials at the current density of 1mAcm−2 and 10mAcm−2 are respectively 270mV and 390mV vs. RHE. Although the HER activity has a big gap with commercial platinum catalyst, this study can provide an important experimental exploration for the design of copper based non noble metal/nano porous carbon composite HER electrocatalyst.