Catalog
SQL Preview
Officialby fadnavismehul
Run governed SQL queries and inspect database schemas from MCP agents.
Execute SQL queries and explore database schemas with governance controls.
README not available yet.
Install
Configuration
Environment variables
SQL_PREVIEW_CONNECTIONSsecretJSON array of SQL Preview connection profiles for headless use.
SQL_PREVIEW_MCP_SAFE_MODEdefault trueSet to false to allow mutating SQL. Defaults to true.
SQL_PREVIEW_MAX_ROWSdefault 10000Maximum rows returned by query tools. Defaults to 10000.
Arguments
--stdioclaude_desktop_config.json
{
"mcpServers": {
"sql-preview": {
"command": "npx",
"args": [
"-y",
"sql-preview@0.6.4",
"--stdio"
],
"env": {
"SQL_PREVIEW_CONNECTIONS": "<YOUR_SQL_PREVIEW_CONNECTIONS>",
"SQL_PREVIEW_MCP_SAFE_MODE": "true",
"SQL_PREVIEW_MAX_ROWS": "10000"
}
}
}
}