If anyone wants to do this at home, this is a great base to work from:
https://github.com/memextech/ht-mcp