Skip to content
Claude Desktop

sql server analyst mcp for Claude Desktop

io.github.coregentdevspace/sql-server-analyst-mcp

Read-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis.

client:Claude Desktop transport:stdio runtime:npm

Install sql server analyst mcp in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "sql-server-analyst-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-server-analyst-mcp"
      ],
      "env": {
        "MSSQL_SERVER": "<MSSQL_SERVER>",
        "MSSQL_PORT": "<MSSQL_PORT>",
        "MSSQL_DATABASE": "<MSSQL_DATABASE>",
        "MSSQL_USER": "<MSSQL_USER>",
        "MSSQL_PASSWORD": "<MSSQL_PASSWORD>",
        "MSSQL_ENCRYPT": "<MSSQL_ENCRYPT>",
        "MSSQL_TRUST_SERVER_CERT": "<MSSQL_TRUST_SERVER_CERT>",
        "ALLOWED_DATABASES": "<ALLOWED_DATABASES>",
        "ALLOWED_SCHEMAS": "<ALLOWED_SCHEMAS>",
        "MAX_ROWS": "<MAX_ROWS>",
        "MAX_ROWS_LIMIT": "<MAX_ROWS_LIMIT>",
        "QUERY_TIMEOUT_MS": "<QUERY_TIMEOUT_MS>",
        "LOG_LEVEL": "<LOG_LEVEL>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

sql server analyst mcp in other clients