Here is a good overview of its different neurotoxicity factors from a well-regarded neuroscience researcher:
https://www.reddit.com/r/DrugNerds/comments/13lp0b/mdma_neur...
https://www.reddit.com/r/DrugNerds/comments/15m9sf/mdma_supp...
1. MDMA metabolizes into other chemicals which are prone to creating many reactive oxygen species, causing oxidative stress in different parts of the brain. This can be mitigated, partially, with anti-oxidant supplements.
2. MDMA directly harms and destroys receptors via serotonin, dopamine, and glutamate system via excitotoxicity. Infrequent use minimizes this. NMDA antagonists could also possibly help reduce some of the effects.
3. MDMA harms all parts of the brain by overheating it. Stay hydrated and prevent yourself from doing much physical activity in a hot area.
So, MDMA can be taken safely, but it is naturally neurotoxic, and must be treated with much respect and caution.
Other good advice for what supplements to take can be found at http://rollsafe.org