MCP directory

Dbatools Mcp Server

by github.com/dataplat · v0.5.0 · updated Apr 18, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

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'.

More MCP servers