How to use a MBP with broken graphics chip as a server?
Build the drive with the software on a separate machine or remote log in to it and set it up that way.

I have 2 machines I remote log in to but not due to a graphics failure so I can't say if it will have an error on booting