It depends. Sibling thread has some horror stories about Germany, for example.
Estonia has been trying to get foreigners to open their businesses there for a while now: https://e-estonia.com/ But I don’t think that helps US residents too much (ask your tax advisor about CFC rules; I have only a vague understanding that it’s a PITA).