registering typelib will give all the necessary interface information to automation marshaler, however you still need some other registry keys
1. CLSID--associate CLSID with interface and APPID
2. APPID- let COM find remote server
So you can register typelib by some existing tools (if you can find), or by following functions:
LoadTypeLib
RegisterTypeLib
Besides you need register CLSID/APPID, you can write your own code to do this or copy rgs file from server side and leverage on ATL's code to do it.