Here, we present a protocol to synthesize Co nanoparticles supported on carbon nanotubes with Co- and N- dopants for hydrogen productions.