Skip to content
Zed

SQL Preview for Zed

io.github.fadnavismehul/sql-preview

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

client:Zed transport:stdio runtime:npm

Install SQL Preview in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

{
  "context_servers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "-y",
        "sql-preview"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<SQL_PREVIEW_CONNECTIONS>",
        "SQL_PREVIEW_MCP_SAFE_MODE": "<SQL_PREVIEW_MCP_SAFE_MODE>",
        "SQL_PREVIEW_MAX_ROWS": "<SQL_PREVIEW_MAX_ROWS>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

SQL Preview in other clients