Certain nutrients that can improve mental health include omega-3 fatty acids, B vitamins, vitamin D, magnesium, probiotics, and antioxidants. These nutrients can be found in foods like fatty fish, leafy greens, whole grains, and fermented foods.