No, Mephiles does not appear in Sonic X.
It comes down to timing. Sonic X ended in 2004, while Mephiles was created in 2006 specifically for the games, alongside Silver and Blaze. All three debuted in Sonic the Hedgehog (2006), two years after the animated series had already wrapped up.