If you want to work as a researcher in Germany, you can obtain a residence permit for the purpose of research.

Unfortunately this specification of service has not yet been completely translated.