How do I get the direct URL of a document via the server web interface?

DEVONthink isn’t a web-based tool, so I don’t think you’re going to get what you may be expecting.

Selecting an item in DEVONthink and choosing Edit > Copy Item Link would yield a link, but it’s DEVONthink’s URL scheme, i.e., it opens with DEVONthink.