You should access Revit API TagMode(TM_ADDBY_MATERIAL) Enumeration to tag Materials.
As far as i know there is no custom node available at the moment. However i have edited @Konrad_K_Sobon 's custom node to work with Material Tag also. Here is a process in action:
MatTag.dyn (12.6 KB)
Cheers!