In the UK you can do it via Companies House for £15: https://ewf.companieshouse.gov.uk/runpage?page=welcome
Edit: Not sure about for foreigners though.
Edit: Not sure about for foreigners though.
But you need an official address in UK (registered address) for your company, where Government can send you official mail. There are companies that give you this service, so it's not a big problem.
I used their cheapest service (£80/year) for which you get the company address, and they will only forward mail from HMRC and Companies House - anything else gets returned to sender.
We still use them, even though we have a trading address now.