Skip to content
mcp/skillhub

SQL Preview MCP Server

by fadnavismehulio.github.fadnavismehul/sql-previewv0.6.28

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

Node.jsstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Maintained52d ago

Install SQL Preview MCP server

Install in Claude Code

claude mcp add sql-preview -e SQL_PREVIEW_CONNECTIONS='<sql-preview-connections>' -- npx -y sql-preview

Configuration

VariableRequiredSecretDescription
SQL_PREVIEW_CONNECTIONS—yesJSON 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.

Freshness

Maintained — last maintenance signal 52d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    no data · GitHub

  2. Latest release

    no data · GitHub

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-08-19 · 52d ago · official registry · v0.6.28

FAQ

›How do I install the SQL Preview MCP server in Claude Code?

Run: claude mcp add sql-preview -e SQL_PREVIEW_CONNECTIONS='<sql-preview-connections>' -- npx -y sql-preview. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does SQL Preview require an API key?

Yes. It expects SQL_PREVIEW_CONNECTIONS, of which 1 is a secret.

›Can I use SQL Preview as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is SQL Preview in the official MCP registry?

Yes, as io.github.fadnavismehul/sql-preview.

Alternatives to SQL Preview

Other database MCP servers.

View all