Dana Scully is a character on the science fiction show The X-Files . She works as a special agent in the FBI . FBI Special Agent Dana Katherine Scully , M.D. is a fictional character and protagonist on the Fox television series The X-Files ( 1993 â `` 2002 ) , played by Gillian Anderson .