Back to Browse

Mssql Dba MCP Server

Developer ToolsModerate7.6MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

7.6
Moderate7.6Low Risk

This read-only SQL Server DBA MCP server enforces a read-only login check at startup, encrypts connections by default, and uses fixed SQL with validated identifiers and escaped literals. No data exfiltration, backdoors, or shell execution were found. The main open items are unverified helper implementations (validateSqlIdentifiers, escapeSqlLiteral, and the run_select lexer) that were not included in the review, plus minor logging and .env handling notes. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

10 files analyzed · 7 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

sql or windows (NTLM)Optional

Environment variable: DB_AUTH_TYPE

SQL Server host name or IPOptional

Environment variable: DB_HOST

Database to connect to, for example masterOptional

Environment variable: DB_NAME

Read-only login (see README, Permissions)Optional

Environment variable: DB_USER

Password of the loginRequired

Environment variable: DB_PASSWORD

Server portOptional

Environment variable: DB_PORT

true accepts a self-signed certificateOptional

Environment variable: TRUST_SERVER_CERTIFICATE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "mssql-dba-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shadow-dba/mssql-dba-mcp@0.1.2"
      ],
      "env": {
        "DB_HOST": "your-db-host-here",
        "DB_NAME": "your-db-name-here",
        "DB_PORT": "your-db-port-here",
        "DB_USER": "your-db-user-here",
        "DB_PASSWORD": "your-db-password-here",
        "DB_AUTH_TYPE": "your-db-auth-type-here",
        "TRUST_SERVER_CERTIFICATE": "your-trust-server-certificate-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Reviews

No reviews yet

Be the first to review this server!