Skip to main content

Dbatools MCP Server

io.github.dataplat/dbatools-mcp-server

v0.5.0Updated Apr 18, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add dbatools-mcp-server -- npx -y [email protected]

Configuration

4 settings.

  • DBATOOLS_SAFE_MODE
    Env var· optional
    Set to 'false' to allow write/destructive dbatools operations. Defaults to true (read-only safe mode).
  • MAX_OUTPUT_ROWS
    Env var· optional
    Maximum number of rows returned per command. Defaults to 100. Allowed range: 1–10000.
  • COMMAND_TIMEOUT_SECONDS
    Env var· optional
    Timeout in seconds for each dbatools command. Defaults to 60. Allowed range: 5–3600.
  • PWSH_EXE
    Env var· optional
    Path to the PowerShell executable. Defaults to 'pwsh'.

Listed in the official MCP Registry since Apr 18, 2026. Mirrored daily; last checked Nov 26, 2026.