ClickHouse protocol does not have formal specification yet, but it can be reverse-engineered from ClickHouse source code (starting around here) and/or by intercepting and analyzing TCP traffic: https://github.com/ClickHouse/ClickHouse/tree/master/src/Client
Details
Prior Art