These findings suggest KMO inhibition is a potential therapeutic strategy for epilepsy-associated depression. Here, KMO is linked to major depressive disorder.