PluginBench
MCP Server

SQL Preview MCP Server

io.github.fadnavismehul/sql-preview

What is the SQL Preview MCP server?

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

How to install SQL Preview

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • SQL_PREVIEW_CONNECTIONS
    secret

    JSON array of SQL Preview connection profiles for headless use.

  • SQL_PREVIEW_MCP_SAFE_MODE

    Set to false to allow mutating SQL. Defaults to true.

  • SQL_PREVIEW_MAX_ROWS

    Maximum rows returned by query tools. Defaults to 10000.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "-y",
        "sql-preview",
        "-y",
        "--stdio"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>",
        "SQL_PREVIEW_MCP_SAFE_MODE": "<YOUR_SQL_PREVIEW_MCP_SAFE_MODE>",
        "SQL_PREVIEW_MAX_ROWS": "<YOUR_SQL_PREVIEW_MAX_ROWS>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "-y",
        "sql-preview",
        "-y",
        "--stdio"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>",
        "SQL_PREVIEW_MCP_SAFE_MODE": "<YOUR_SQL_PREVIEW_MCP_SAFE_MODE>",
        "SQL_PREVIEW_MAX_ROWS": "<YOUR_SQL_PREVIEW_MAX_ROWS>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "-y",
        "sql-preview",
        "-y",
        "--stdio"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>",
        "SQL_PREVIEW_MCP_SAFE_MODE": "<YOUR_SQL_PREVIEW_MCP_SAFE_MODE>",
        "SQL_PREVIEW_MAX_ROWS": "<YOUR_SQL_PREVIEW_MAX_ROWS>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "sql-preview": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sql-preview",
        "-y",
        "--stdio"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>",
        "SQL_PREVIEW_MCP_SAFE_MODE": "<YOUR_SQL_PREVIEW_MCP_SAFE_MODE>",
        "SQL_PREVIEW_MAX_ROWS": "<YOUR_SQL_PREVIEW_MAX_ROWS>"
      }
    }
  }
}
Claude Code
claude mcp add sql-preview --env SQL_PREVIEW_CONNECTIONS=<YOUR_SQL_PREVIEW_CONNECTIONS> --env SQL_PREVIEW_MCP_SAFE_MODE=<YOUR_SQL_PREVIEW_MCP_SAFE_MODE> --env SQL_PREVIEW_MAX_ROWS=<YOUR_SQL_PREVIEW_MAX_ROWS> -- npx -y sql-preview -y --stdio

Related MCP servers

Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.

67k
Python
BSD-3-Clause
View repository →

Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.

45k
TypeScript
Apache-2.0
View repository →

Let AI agents manage your Puter files, websites, and serverless workers over MCP.

43k
TypeScript
AGPL-3.0
View repository →

Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.

37k
TypeScript
Apache-2.0
View repository →

Run arbitrary shell commands from an MCP-connected AI agent.

37k
TypeScript
Apache-2.0
View repository →

Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.

37k
TypeScript
Apache-2.0
View repository →
SQL Preview MCP Server | PluginBench