dbatools-mcp-server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PWSH_EXE | No | Path to PowerShell executable | pwsh |
| MAX_OUTPUT_ROWS | No | Maximum rows returned per command execution | 100 |
| DBATOOLS_SAFE_MODE | No | When 'true', non-readonly commands require confirm: true | true |
| COMMAND_TIMEOUT_SECONDS | No | Seconds before PowerShell process is killed | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_dbatools_commandsB | Search and list dbatools commands. Filter by verb, noun, keyword, or risk level. |
| get_dbatools_command_helpA | Get the full normalized help for a specific dbatools command, including parameters and examples sourced from comment-based help. |
| invoke_dbatools_commandA | Execute a dbatools command via PowerShell and return structured JSON output. SAFETY: For any destructive or change command (Remove, Drop, Disable, Reset, etc.), always explain the consequences to the user and ask for explicit confirmation before running. Only proceed with confirm:true if the user has clearly confirmed their intent. Respect DBATOOLS_SAFE_MODE: never bypass safety checks. For any command that modifies or deletes data, double-check with the user before proceeding. Show the exact command and output for transparency. Non-readonly commands require confirm:true when safe mode is enabled. |
| check_dbatools_environmentA | Verify that PowerShell and the dbatools module are installed and report the help-index status. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: environment verification, help retrieval, command execution, and command listing. No overlap exists.
All tool names follow a consistent verb_noun pattern with underscores (check, get, invoke, list) and refer to the dbatools domain.
Four tools are well-scoped for the server's function—covering essential operations without unnecessary overhead.
The tool set covers the full workflow for using dbatools commands (list, get help, execute, check environment). Minor gap: no tool for updating or configuring dbatools itself, but that is beyond the stated purpose.