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.

~/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>"
      }
    }
  }
}

Related MCP servers

Email validation and SMTP verification for Claude Desktop, Cursor, and Claude Code.

0
JavaScript
View repository →

Control ParaView through arbitrary Python code

2
C++
MIT
View repository →

AI agent tools: crypto token safety, web search with cited answers, live library docs. Free trial.

View repository →

Free UK building-cost estimates, US beta estimates and scenario comparisons. No account needed.

0
View repository →

Private Agent memory and governed shared knowledge.

0
Rust
Apache-2.0
View repository →

Report local task-scoped test and build residue without cleaning resources.

0
Go
Apache-2.0
View repository →