← Registry
CLI Official

Postgres Language Server

Official Language Server and CLI toolchain for Postgres, providing autocompletion, type checking, linting, and syntax error detection built on Postgres' own libpg_query parser.

Install

pnpm add -D -E @postgres-language-server/cli
$

A collection of Postgres language tooling with a Language Server Protocol implementation, built on Postgres' own libpg_query parser for full syntax compatibility. It provides autocompletion and hover, syntax diagnostics, type checking via EXPLAIN, formatting, migration and database linting, and PL/pgSQL support, all reachable through the LSP, a CLI, HTTP, or WebAssembly. Use it to get editor-grade SQL feedback in VS Code, Neovim, Zed, and others, or to lint migrations from the command line.