PANi is decorated with MPt alloys by an electrochemical method.
The MPt decorated PANi are utilized as CE electrocatalysts for DSSCs.
The electrocatalytic activities of the composite CEs are markedly enhanced.
The DSSCs yield maximum efficiency of 8.08%.