SQL Preview for Zed
io.github.fadnavismehul/sql-preview
Run governed SQL queries and inspect database schemas from MCP agents.
client:Zed
transport:stdio
runtime:npm
Install SQL Preview in Zed
~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json
{
"context_servers": {
"sql-preview": {
"command": "npx",
"args": [
"-y",
"sql-preview"
],
"env": {
"SQL_PREVIEW_CONNECTIONS": "<SQL_PREVIEW_CONNECTIONS>",
"SQL_PREVIEW_MCP_SAFE_MODE": "<SQL_PREVIEW_MCP_SAFE_MODE>",
"SQL_PREVIEW_MAX_ROWS": "<SQL_PREVIEW_MAX_ROWS>"
}
}
}
}
Merge this into your existing settings object — do not replace the file. Zed docs