Developer · Local MCP server
SQL Preview
Run governed SQL queries and inspect database schemas from MCP agents.
What the MCP Registry states
The entry as published to the official MCP Registry (read 2026-10-04), latest version.
- Registry name
io.github.fadnavismehul/sql-preview- Version
- 0.6.28
- Status
- Active
- Category
- developer
- Transport
- stdio (local process)
- Package
- npm
- Published
- 2026-08-19
- Updated
- 2026-08-19
- Publisher
- fadnavismehul (GitHub)
- Website
- github.com/fadnavismehul/sql-preview#readme
- Repository
- github.com/fadnavismehul/sql-preview
- Source
- Registry API entry
Packages
| Registry | Package | Version | Transport |
|---|---|---|---|
| npmruntime: npx | sql-preview | 0.6.28 | stdio |
How to connect SQL Preview
SQL Preview runs locally from a Node.js package published to the npm registry: sql-preview version 0.6.28. It speaks MCP over stdio, so the client starts it as a program and talks to it through standard input and output. It needs Node.js; clients usually start it with npx — the usual command is npx -y sql-preview@0.6.28. It reads these environment variables: SQL_PREVIEW_CONNECTIONS (secret), SQL_PREVIEW_MCP_SAFE_MODE and SQL_PREVIEW_MAX_ROWS; set them in the client's configuration for this server.
In the mcpServers JSON format that many desktop and editor MCP clients read, the entry looks like this (placeholders in angle brackets):
{
"mcpServers": {
"sql-preview": {
"command": "npx",
"args": [
"-y",
"sql-preview@0.6.28"
],
"env": {
"SQL_PREVIEW_CONNECTIONS": "<secret>",
"SQL_PREVIEW_MCP_SAFE_MODE": "<value>",
"SQL_PREVIEW_MAX_ROWS": "<value>"
}
}
}
}Derived from the registry entry, not tested here. What the server does, and on what terms, is set by its publisher; check its repository or website before giving it access to your accounts or files. How to add an MCP server to an assistant · Before you connect
More developer servers
| Server | Runs |
|---|---|
| SQL Benchmarks LabQuery pre-computed SQL engine benchmarks. Runs standalone, no server setup required. | Local · stdio |
| Sql Card Data LintNames every column, index, view and seed row in a.sql migration that stores card data, with its PCI. | Local · stdio |
| Sql Formatter MCPFormat SQL queries into readable layouts locally. No network and no key. | Local · stdio |
| SQL MCP ServerControlled SQL access gateway with policy, cost limits, tenant isolation, and safe tools. | Local · stdio |
| SQL Safe MCPMinimal, read-only, PII-safe MCP server for SQL databases. | Local · stdio |
| SQL Sentinel MCP ServerSQL Server monitoring and diagnostics for AI agents using Extended Events. No ODBC drivers required. | Local · stdio |
| SQL ServerServidor MCP para SQL Server com controle de permissões e modo somente-leitura. | Local · stdio |
| Sql Server Analyst MCPRead-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis. | Local · stdio |