How hard would it be to make bash be the only dependency (and not require tcpserver)?

Iirc bash has some built-in support for networking but perhaps it's only for clients?

A pure bash web server is indeed possible using a loadable builtin. See: https://github.com/dzove855/Bash-web-server (discussed: https://news.ycombinator.com/item?id=29794979).