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_MODEEnv var· optionalSet to 'false' to allow write/destructive dbatools operations. Defaults to true (read-only safe mode).MAX_OUTPUT_ROWSEnv var· optionalMaximum number of rows returned per command. Defaults to 100. Allowed range: 1–10000.COMMAND_TIMEOUT_SECONDSEnv var· optionalTimeout in seconds for each dbatools command. Defaults to 60. Allowed range: 5–3600.PWSH_EXEEnv var· optionalPath to the PowerShell executable. Defaults to 'pwsh'.
Links
Listed in the official MCP Registry since Apr 18, 2026. Mirrored daily; last checked Nov 26, 2026.