Skip to content
Claude Code

SQL Preview for Claude Code

io.github.fadnavismehul/sql-preview

Run governed SQL queries and inspect database schemas from MCP agents.

client:Claude Code transport:stdio runtime:npm

Install SQL Preview in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add sql-preview -e SQL_PREVIEW_CONNECTIONS=<SQL_PREVIEW_CONNECTIONS> -e SQL_PREVIEW_MCP_SAFE_MODE=<SQL_PREVIEW_MCP_SAFE_MODE> -e SQL_PREVIEW_MAX_ROWS=<SQL_PREVIEW_MAX_ROWS> -- npx -y sql-preview

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

SQL Preview in other clients