L'Agora
MCPLocal

io.github.dataplat/dbatools-mcp-server

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

Repository
github.com/dataplat/dbatools-mcp-server
Version
0.5.0
Author
dataplat (namespace verified by the registry)
Source
Official MCP registry (updated Apr 18, 2026)

How to install it

Variables to fill in: DBATOOLS_SAFE_MODE, MAX_OUTPUT_ROWS, COMMAND_TIMEOUT_SECONDS, PWSH_EXE.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add dbatools-mcp-server -e DBATOOLS_SAFE_MODE=YOUR_DBATOOLS_SAFE_MODE -e MAX_OUTPUT_ROWS=YOUR_MAX_OUTPUT_ROWS -e COMMAND_TIMEOUT_SECONDS=YOUR_COMMAND_TIMEOUT_SECONDS -e PWSH_EXE=YOUR_PWSH_EXE -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "dbatools-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DBATOOLS_SAFE_MODE": "YOUR_DBATOOLS_SAFE_MODE",
        "MAX_OUTPUT_ROWS": "YOUR_MAX_OUTPUT_ROWS",
        "COMMAND_TIMEOUT_SECONDS": "YOUR_COMMAND_TIMEOUT_SECONDS",
        "PWSH_EXE": "YOUR_PWSH_EXE"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "dbatools-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DBATOOLS_SAFE_MODE": "YOUR_DBATOOLS_SAFE_MODE",
        "MAX_OUTPUT_ROWS": "YOUR_MAX_OUTPUT_ROWS",
        "COMMAND_TIMEOUT_SECONDS": "YOUR_COMMAND_TIMEOUT_SECONDS",
        "PWSH_EXE": "YOUR_PWSH_EXE"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "dbatools-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DBATOOLS_SAFE_MODE": "YOUR_DBATOOLS_SAFE_MODE",
        "MAX_OUTPUT_ROWS": "YOUR_MAX_OUTPUT_ROWS",
        "COMMAND_TIMEOUT_SECONDS": "YOUR_COMMAND_TIMEOUT_SECONDS",
        "PWSH_EXE": "YOUR_PWSH_EXE"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.dataplat/dbatools-mcp-server on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.dataplat/dbatools-mcp-server on L’Agora](https://lagora.dev/badge/io.github.dataplat/dbatools-mcp-server.svg?lang=en)](https://lagora.dev/en/entry/io.github.dataplat/dbatools-mcp-server)

HTML

<a href="https://lagora.dev/en/entry/io.github.dataplat/dbatools-mcp-server"><img src="https://lagora.dev/badge/io.github.dataplat/dbatools-mcp-server.svg?lang=en" alt="io.github.dataplat/dbatools-mcp-server on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

Report this entry