Skip to main content

SQL Preview

io.github.fadnavismehul/sql-preview

v0.6.28Updated Aug 19, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add sql-preview -- npx -y [email protected]

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

4 settings.

  • SQL_PREVIEW_CONNECTIONS
    Env var· optional· secret
    JSON array of SQL Preview connection profiles for headless use.
  • SQL_PREVIEW_MCP_SAFE_MODE
    Env var· optional
    Set to false to allow mutating SQL. Defaults to true.
  • SQL_PREVIEW_MAX_ROWS
    Env var· optional
    Maximum rows returned by query tools. Defaults to 10000.
  • --stdio
    Argument· optional
    Run SQL Preview using stdio transport for local MCP clients.

Listed in the official MCP Registry since Aug 19, 2026. Mirrored daily; last checked Nov 26, 2026.