Is it safe to connect a #30 bulb directly to the arduino output pin

Maybe ... The specs seem to say it has 21mA current draw at 4.5V
I think I'd measure its 2 leads, see if it has reading of around 200 ohm to confirm that.
Or get a current measurement while powering from 3 AA batteries for confidence first.