Our data show that neuron-derived TNF has a limited role in immune responses, but overall TNF production is necessary for protective immunity against CNS-TB. Here, TNF is linked to tuberculosis.