2. Eat it for: The magnesium. Examples: Pumpkin seeds, sunflower seeds, cashews, almonds, peanuts. (Green leafy vegetables and whole grains are also high in magnesium.). Why they help: Magnesium, a mineral found naturally in nuts and seeds, influences production of serotonin, a feel-good brain chemical.