Server-side implementation for the Magic Hat