(parser is not available in public APIs of postgres_fe.h or libpq).
What about building "libpg" that does expose and exports some public APIs for the parser? We can include a reference CLI implementation for basic usage of the functionality while leaving the actual language server project outside of core.