io.github.dataplat

dbatools-mcp-server

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

stdiocommunityapplication

Package Details

Transportstdio

Environment Variables

DBATOOLS_SAFE_MODE(str)

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

MAX_OUTPUT_ROWS(num)

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

COMMAND_TIMEOUT_SECONDS(num)

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

PWSH_EXE(str)

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