Question: who plays james on how i met your mother
Answer: Played by Wayne Brady , James is Barney 's gay African - American half - brother ; they are very alike and act as each other 's `` wingmen '' .