muscat is a utility to use local machine's clipboard and browser from remote machine. heavily inspired by github.com/lemonade-command/lemonade muscat uses not tcp but unix domain socket to communicate between client and server. you must use ssh remote forwarding of unix domain socket.
Host forward-workbench
Hostname workbench.remote.local
RemoteForward /home/<remote_user>/.muscat.socket /Users/<local_user>/.muscat.socket
ExitOnForwardFailure yes
StreamLocalBindUnlink yes
$ muscat server
$ echo foobar | muscat copy
$ muscat paste
$ muscat open 'https://example.com'
muscat can behave as pbcopy, pbpaste, xdg-open. you can create symbolic link as their name and call with.