Metal-supported catalyst with high activity and relatively simple preparation method is given priority to industrial production. In this work, this study reported an easily accessible synthesis strategy to prepare Mott-Schottky-type N-doped carbon encapsulated metallic Co (Co@Np+gC) catalyst by high-temperature pyrolysis method in which carbon nitride (g-C3N4) and dopamine were used as support and nitrogen source. The prepared Co@Np+gC presented a Mott-Schottky effect; that is, a strong electronic interaction of metallic Co and N-doped carbon shell was constructed to lead to the generation of Mott-Schottky contact. The metallic Co, due to high work function as compared to that of N-doped carbon, transferred electrons to the N-doped outer shell, forming a new contact interface. In this interface area, the positive and negative charges were redistributed, and the catalytic hydrogenation mainly occurred in the area of active charges. The Co@Np+gC catalyst showed excellent catalytic activity in the hydrogenation of phenylacetylene to styrene, and the selectivity of styrene reached 82.4%, much higher than those of reference catalysts. The reason for the promoted semi-hydrogenation of phenylacetylene was attributed to the electron transfer of metallic Co, as it was caused by N doping on carbon.