S

SQL Preview

MCP server · by fadnavismehul

Databases npm v0.6.28

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

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 0.6.28

npm
npx -y sql-preview

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "sql-preview": {
      "command": "npx",
      "args": [
        "-y",
        "sql-preview"
      ],
      "env": {
        "SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • 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.

About this server

Distributed as npm, listed under Databases. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install SQL Preview?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is SQL Preview free to use?

The MCP server itself is free to install. The source is public on https://github.com/fadnavismehul/sql-preview. Any third-party service it calls may require its own API key and account.

Which clients support SQL Preview?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/sql-preview.svg)](https://mcpnav.net/server/sql-preview/)

HTML

<a href="https://mcpnav.net/server/sql-preview/"><img src="https://mcpnav.net/badge/sql-preview.svg" alt="Listed on MCPNav" height="20"></a>