PluginBench
MCP Server

SQL Preview MCP Server

io.github.fadnavismehul/sql-preview

RepositoryRegistry
How to choose

What this kind of tool is for

  • Query, inspect, or seed a database without writing a one-off script.
  • Let your agent look up schema details before it writes migration code.
  • Move a small dataset between tools without leaving the terminal.

How to compare servers like this

Engine match:
Confirm it speaks your exact database and version, not just the family.
Access scope:
Read-only connections are the safe default — start there before granting writes.
Safety rails:
Check whether destructive statements need an explicit confirmation before they run.
Maintenance signal:
Database drivers change; a recently updated tool is less likely to break mid-query.

This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.

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
JSON config
{
  "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

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

0
View repository →

Turn PDFs into structured JSON in seconds using AI + OCR—invoices, statements, contracts, no coding needed.

8
Python
MIT
View repository →

FHIR MCP server with SMART Backend Services, FHIRPath filtering, and configurable clinical data access.

18
TypeScript
View repository →

UK property finance: bridging cost, dev appraisal, BTL stress test, stamp duty (SDLT/LBTT/LTT).

1
TypeScript
View repository →

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 →