mcpField
S
SQL Preview

SQL Preview

Local
github.comDatabases

About SQL Preview

Run governed SQL queries and inspect database schemas from MCP agents

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"fadnavismehul-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>"
}
}
}
}
Run commandnpx -y sql-preview
Environment variables to set
SQL_PREVIEW_CONNECTIONSSecretJSON array of SQL Preview connection profiles for headless use.
SQL_PREVIEW_MCP_SAFE_MODESet to false to allow mutating SQL. Defaults to true.
SQL_PREVIEW_MAX_ROWSMaximum rows returned by query tools. Defaults to 10000.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmsql-preview0.6.28

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.