SQL Preview for Grok
io.github.fadnavismehul/sql-preview
Run governed SQL queries and inspect database schemas from MCP agents.
client:Grok
transport:stdio
runtime:npm
Install SQL Preview in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"sql-preview": {
"type": "stdio",
"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>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs