mcpbeat Sign in

Dbatools MCP Server

local only

Dbatools MCP Server runs on your own machine — the client starts it, so there is no endpoint to ping. 39 installs a week from npm. Last commit 18 Apr 2026.

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

Installs per day peak 24 · avg 9 · -26% w/w
a month agotoday
39
Installs / week
npm · dbatools-mcp-server
5
Stars
0 open issues
18 Apr 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 21 h ago · rules 3dff92dd89df

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command src/powershell.ts:52
    const pwsh = spawn(

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add dbatools-mcp-server -- npx -y dbatools-mcp-server
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "dbatools-mcp-server": {
      "args": [
        "-y",
        "dbatools-mcp-server"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.dbatools-mcp-server]
command = "npx"
args = ["-y", "dbatools-mcp-server"]
.cursor/mcp.json
{
  "mcpServers": {
    "dbatools-mcp-server": {
      "args": [
        "-y",
        "dbatools-mcp-server"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "dbatools-mcp-server": {
      "args": [
        "-y",
        "dbatools-mcp-server"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: 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'.). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Dbatools MCP Server

same job, measured the same way
PostgreSQL MCP Server
by itunified-io

PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management

23 installs/wk local only
MCP Mysql Connector
by daedalus

MCP server exposing MySQL database functionalities as tools

70 installs/wk local only
Obambu cPanel MCP
by rodriguedev13

MCP server exposing cPanel UAPI (domains, DNS, email, MySQL, files) as tools for AI assistants.

32 installs/wk local only
Strut Stack SQL
by rzlco666

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

local only
MCP SQL Rust
by rzlco666

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

local only
Mysql
by marcelo-ochoa

An MCP server for MySQL databases.

38 installs/wk local only
C
Data
by thinair

PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.

answering
AdoMcp
by john0king

Database MCP server for schema discovery, comments, and SQL queries.

local only

Dbatools MCP Server — questions

Answers built from our own checks of this server.

Why is there no uptime for Dbatools MCP Server?
Dbatools MCP Server runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package dbatools-mcp-server was installed 39 times last week.
How do I connect Dbatools MCP Server?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls dbatools-mcp-server straight from npm; nothing to host, nothing to sign up for.
How many people use Dbatools MCP Server?
The npm package dbatools-mcp-server was installed 39 times in the last week. Week over week that is -26%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Dbatools MCP Server open source?
Yes — it is published under the MIT licence, written in TypeScript and 5 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.