A novel MoS2 transparent counter electrode for dye-sensitized solar cells is reported. In order to enhance the catalytic activity of the electrode, active edge sites are created artificially by patterning holes on MoS2 atomic layers. Electrochemical analysis shows that the electrochemical activity is significantly improved after the patterning of holes. The photon-to-electron efficiency of the dye-sensitized solar cells based on MoS2 atomic layer counter electrodes is increased remarkably from 2% to 5.8% after the hole patterning.