Skip to content
Cline

dbatools mcp server for Cline

io.github.dataplat/dbatools-mcp-server

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

client:Cline transport:stdio runtime:npm

Install dbatools mcp server in Cline

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json · windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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's MCP Servers pane edits this file for you if you would rather not find it. Cline docs

dbatools mcp server in other clients