← Back to browse

SQL Preview

Indexed by io.github.fadnavismehul

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsSQL_PREVIEW_CONNECTIONS SQL_PREVIEW_MCP_SAFE_MODE SQL_PREVIEW_MAX_ROWS
Claude Code
claude mcp add --env SQL_PREVIEW_CONNECTIONS= --env SQL_PREVIEW_MCP_SAFE_MODE= --env SQL_PREVIEW_MAX_ROWS= sql-preview -- npx sql-preview
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"sql-preview","command":"npx","args":["sql-preview"],"env":{"SQL_PREVIEW_CONNECTIONS":"","SQL_PREVIEW_MCP_SAFE_MODE":"","SQL_PREVIEW_MAX_ROWS":""}}'
JSON
{
  "mcpServers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "sql-preview"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "",
        "SQL_PREVIEW_MCP_SAFE_MODE": "",
        "SQL_PREVIEW_MAX_ROWS": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.