An (aza)indole derivative substituted in position 5, of formula (I) in whichX, Y,Z, G1, G2, G3, R1. W and R2 have the meanings given in the description, apharmaceutical composition comprising it, and also intermediate compounds andapreparation process therefor. There is provided in a preferred embodiment useof thederivative for inhibiting mPGES-1 and/or anti-nociceptive activity ininflammatory pain.(see formula I)