MDMA is technically illegal everywhere in the world.
In many parts of Western Europe, cops won't fuck you up for smaller amounts. In Eastern Europe, you just have to pay off the cops, but usually the bribe works out to be less that the total amount you spend on American courts. You can bribe cops in the developing world for pretty cheap, depending on where you are.
It really is too bad MDMA is illegal. I remember when I first tried it, I was like: how can something like this be illegal, it's so happy and peaceful, everyone should be doing it together!