This question already has an answer here:
Is it accepted to use teabags on Shabbos?
Obviously, one would have to leave the teabag in the cup (and leave enough liquid to cover it) so as not to transgress Boirer. It would also need to be a keili shelishi so as not to transgress Bishul.
Providing the necessary precautions are followed, is it permitted to use a teabag to make tea?