dbatools-mcp-server
MCP server for dbatools — exposes SQL Server management commands as MCP tools
Documentation & Preview
{ "mcpServers": { "mcp-dbatools-mcp-server-fd20c8af296a7b8b84d8": { "command": "npx", "args": [ "-y", "--package", "dbatools-mcp-server@0.5.0", "dbatools-mcp-server" ], "env": { "DBATOOLS_SAFE_MODE": "${ENV_DBATOOLS_SAFE_MODE}", "MAX_OUTPUT_ROWS": "${ENV_MAX_OUTPUT_ROWS}", "COMMAND_TIMEOUT_SECONDS": "${ENV_COMMAND_TIMEOUT_SECONDS}", "PWSH_EXE": "${ENV_PWSH_EXE}" } } }, "setup": { "fields": [ { "id": "ENV_DBATOOLS_SAFE_MODE", "label": "DBATOOLS_SAFE_MODE", "description": "Set to 'false' to allow write/destructive dbatools operations. Defaults to true (read-only safe mode).", "required": false, "secret": false, "default": "" }, { "id": "ENV_MAX_OUTPUT_ROWS", "label": "MAX_OUTPUT_ROWS", "description": "Maximum number of rows returned per command. Defaults to 100. Allowed range: 1–10000.", "required": false, "secret": false, "default": "" }, { "id": "ENV_COMMAND_TIMEOUT_SECONDS", "label": "COMMAND_TIMEOUT_SECONDS", "description": "Timeout in seconds for each dbatools command. Defaults to 60. Allowed range: 5–3600.", "required": false, "secret": false, "default": "" }, { "id": "ENV_PWSH_EXE", "label": "PWSH_EXE", "description": "Path to the PowerShell executable. Defaults to 'pwsh'.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.dataplat/dbatools-mcp-server", "registryVersion": "0.5.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.dataplat%2Fdbatools-mcp-server/versions/0.5.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "dbatools-mcp-server", "version": "0.5.0", "integrity": "sha512-fiyp2m7bp9oRHyiAN45H9bTI52A0r1rPU7folKmpXVxp3QdFEhLTAJTN5F/5qVaZC6xiPFzrfWuJ7AuvgPFXNg==", "registryNameMatched": "io.github.dataplat/dbatools-mcp-server", "checkedAt": "2026-11-04T17:16:52.816Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }