SQL Preview is a VS Code extension and standalone MCP database server that provides a local-first SQL workspace for humans and AI agents. Version 0.6.4 supports PostgreSQL, MySQL, SQLite, DuckDB, Trino/Presto, Snowflake, BigQuery, and SQL Server with a connection manager, AG Grid-powered result grid, daemon-backed execution, and an MCP server for Claude Desktop, Cursor, etc. Released under MIT license, it differentiates by offering governed read-only database access through MCP tools while keeping credentials local and telemetry opt-in. Updates are frequent (multiple releases per month).
npm install sql-previewNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically start the SQL Preview MCP server for custom integrations.
Ensure passwords are stored via the 'Set Password' command in the SQL Preview panel.
Run 'SQL Preview: Migrate Legacy Settings' from Command Palette and use the connection manager UI.
Update to version 0.6.0+ or follow migration guide for Trino connector configuration.
Reset VS Code zoom to default via View > Appearance > Zoom Out.
Set `safe: false` in MCP configuration or pass `--unsafe` flag to daemon CLI.
Change connector type from 'postgresql' to 'postgres' in the connection profile.
Install the `@google-cloud/bigquery` package locally or add it to your environment's PATH.
Use the 'Set Password' action in SQL Preview panel for the profile.
Run 'SQL Preview: Migrate Legacy Settings' from Command Palette.
Disable safe mode via configuration: `safe: false` or `--unsafe` daemon flag.