In this work, MoS2 microspheres/PtCo-alloy nanoparticles (MoS2/PtCo-alloy NPs) were composited via a novel and facile process which MoS2 is functionalized by poly (N-vinyl-2-pyrrolidone) (PVP) and self-assembled with PtCo-alloy NPs. This new composite shows excellent electrocatalytic activity and great potential for dye-sensitized solar cells (DSSCs) as a counter electrode (CE) material. Benefiting from heterostructure and synergistic effects, the MoS2/PtCo-alloy NPs exhibit high electrocatalytic activity, low charge-transfer resistance and stability in the cyclic voltammetry (CV) and electrochemical impedance spectroscopy (EIS) test. Meanwhile, a high power-conversion efficiency (PCE) of 8.46% is achieved in DSSCs with MoS2/PtCo-alloy NP CEs, which are comparable to traditional Pt CEs (8.45%). This novel composite provides a new high-performance, stable and cheap choice for CEs in DSSCs.