Skip to content
Cursor

SQL Server DBA (read-only) for Cursor

io.github.shadow-dba/mssql-dba-mcp

Read-only SQL Server DBA tools: health checks, waits, slow queries, indexes, backups.

client:Cursor transport:stdio runtime:npm

Install SQL Server DBA (read-only) in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

{
  "mcpServers": {
    "mssql-dba-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shadow-dba/mssql-dba-mcp"
      ],
      "env": {
        "DB_AUTH_TYPE": "<DB_AUTH_TYPE>",
        "DB_HOST": "<DB_HOST>",
        "DB_NAME": "<DB_NAME>",
        "DB_USER": "<DB_USER>",
        "DB_PASSWORD": "<DB_PASSWORD>",
        "DB_PORT": "<DB_PORT>",
        "TRUST_SERVER_CERTIFICATE": "<TRUST_SERVER_CERTIFICATE>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

SQL Server DBA (read-only) in other clients