← Back to Plugins
MCP Server MCP

SQL Preview

github By github 👁 1 views ▲ 0 votes

Run governed SQL queries and inspect database schemas from MCP agents.

Homepage Verified source GitHub

Install

npx -y [email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "sql-preview",
      "version": "0.6.28",
      "runtimeHint": "npx",
      "transport": {
        "type": "stdio"
      },
      "runtimeArguments": [
        {
          "value": "-y",
          "type": "positional"
        }
      ],
      "packageArguments": [
        {
          "description": "Run SQL Preview using stdio transport for local MCP clients.",
          "type": "named",
          "name": "--stdio"
        }
      ],
      "environmentVariables": [
        {
          "description": "JSON array of SQL Preview connection profiles for headless use.",
          "format": "string",
          "isSecret": true,
          "name": "SQL_PREVIEW_CONNECTIONS"
        },
        {
          "description": "Set to false to allow mutating SQL. Defaults to true.",
          "format": "boolean",
          "value": "true",
          "name": "SQL_PREVIEW_MCP_SAFE_MODE"
        },
        {
          "description": "Maximum rows returned by query tools. Defaults to 10000.",
          "format": "number",
          "value": "10000",
          "name": "SQL_PREVIEW_MAX_ROWS"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...