← Index

io.github.dataplat/dbatools-mcp-server

io.github.dataplat/dbatools-mcp-server·v0.5.0·Other
Quality Score
85
/100

MCP server for dbatools — exposes SQL Server management commands as MCP tools

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "dbatools-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "dbatools-mcp-server"
      ],
      "env": {
        "DBATOOLS_SAFE_MODE": "<dbatools_safe_mode>",
        "MAX_OUTPUT_ROWS": "<max_output_rows>",
        "COMMAND_TIMEOUT_SECONDS": "<command_timeout_seconds>",
        "PWSH_EXE": "<pwsh_exe>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "dbatools-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "dbatools-mcp-server"
      ],
      "env": {
        "DBATOOLS_SAFE_MODE": "<dbatools_safe_mode>",
        "MAX_OUTPUT_ROWS": "<max_output_rows>",
        "COMMAND_TIMEOUT_SECONDS": "<command_timeout_seconds>",
        "PWSH_EXE": "<pwsh_exe>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y dbatools-mcp-server
§02  Environment variables
DBATOOLS_SAFE_MODE

Set to 'false' to allow write/destructive dbatools operations. Defaults to true (read-only safe mode).

MAX_OUTPUT_ROWS

Maximum number of rows returned per command. Defaults to 100. Allowed range: 1–10000.

COMMAND_TIMEOUT_SECONDS

Timeout in seconds for each dbatools command. Defaults to 60. Allowed range: 5–3600.

PWSH_EXE

Path to the PowerShell executable. Defaults to 'pwsh'.

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
5
§04  Alternatives in Other