
Dbatools MCP Server
by dataplatio.github.dataplat/dbatools-mcp-serverv0.5.0
MCP server for dbatools — exposes SQL Server management commands as MCP tools
context tax
queued
security
queued
cold start
queued
freshness
Slowing6mo ago
Install Dbatools MCP server
Install in Claude Code
claude mcp add dbatools -- npx -y dbatools-mcp-serverInstall in Cursor
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"dbatools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| 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'. |
Freshness
Slowing — last maintenance signal 6mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-04-18 · 6mo ago · GitHub
Latest release
2026-04-18 · 6mo ago · GitHub · v0.5.0
Package published
no data · npm/PyPI
Registry entry updated
2026-04-18 · 6mo ago · official registry · v0.5.0
FAQ
›How do I install the Dbatools MCP server in Claude Code?
Run: claude mcp add dbatools -- npx -y dbatools-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Dbatools require an API key?
No required environment variables are declared in its published metadata.
›Can I use Dbatools as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Dbatools in the official MCP registry?
Yes, as io.github.dataplat/dbatools-mcp-server.
Alternatives to Dbatools
Other database MCP servers.