SQL Server DBA (read-only) for VS Code
io.github.shadow-dba/mssql-dba-mcp
Read-only SQL Server DBA tools: health checks, waits, slow queries, indexes, backups.
client:VS Code
transport:stdio
runtime:npm
Install SQL Server DBA (read-only) in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "db-auth-type",
"description": "DB_AUTH_TYPE",
"password": true
},
{
"type": "promptString",
"id": "db-host",
"description": "DB_HOST",
"password": true
},
{
"type": "promptString",
"id": "db-name",
"description": "DB_NAME",
"password": true
},
{
"type": "promptString",
"id": "db-user",
"description": "DB_USER",
"password": true
},
{
"type": "promptString",
"id": "db-password",
"description": "DB_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "db-port",
"description": "DB_PORT",
"password": true
},
{
"type": "promptString",
"id": "trust-server-certificate",
"description": "TRUST_SERVER_CERTIFICATE",
"password": true
}
],
"servers": {
"mssql-dba-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shadow-dba/mssql-dba-mcp"
],
"env": {
"DB_AUTH_TYPE": "${input:db-auth-type}",
"DB_HOST": "${input:db-host}",
"DB_NAME": "${input:db-name}",
"DB_USER": "${input:db-user}",
"DB_PASSWORD": "${input:db-password}",
"DB_PORT": "${input:db-port}",
"TRUST_SERVER_CERTIFICATE": "${input:trust-server-certificate}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs