MCP.Market

Dbatools MCP server

by dataplat·io.github.dataplat/dbatools-mcp-server·v0.5.0·6 stars

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

A89/100grade A
What users say
No reviews yet
Be the first
Safety scan
A89/100

full report

Adoption
New

6 stars

Reviews

Write one

Nobody has reviewed Dbatools yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Dbatools tools (4, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_dbatools_environment

    Verify that PowerShell and the dbatools module are installed and report the help-index status.

  • get_dbatools_command_help

    Get the full normalized help for a specific dbatools command, including parameters and examples sourced from comment-based help.

  • invoke_dbatools_commandwrite action

    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 co

  • list_dbatools_commands

    Search and list dbatools commands. Filter by verb, noun, keyword, or risk level.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan11 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 55 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Overall 89/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Dbatools compares

Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
89/100
higher than 80% of 802 Databases servers
Tools
4
the typical Databases server has 8
Tools that change things
25%
typical: 10%. Fewer write tools means less an agent can break
GitHub stars
6
more than 75% of 602 Databases servers

What its tools let an agent do: 3 read · 1 run or deploy

Install Dbatools in Claude Code, Cursor or VS Code

Runs npx -y dbatools-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add dbatools-mcp-server -- npx -y dbatools-mcp-server
Add to Cursor

What the publisher says

From the Dbatools repository's README, as published. We do not edit it. Read it on GitHub

dbatools-mcp-server

A Model Context Protocol (MCP) server for the dbatools PowerShell module.

Exposes dbatools commands as MCP tools so AI assistants (GitHub Copilot, Claude, etc.) can discover, explain, and execute dbatools commands directly — with all metadata sourced from dbatools' own comment-based help.

Features

  • listdbatoolscommands — search commands by verb, noun, keyword, or risk level
  • getdbatoolscommandhelp** — full normalized help (synopsis, parameters, examples) from Get-Help -Full
  • invokedbatoolscommand — execute any dbatools command with safe parameter validation, risk gating, and structured JSON output
  • checkdbatoolsenvironment — verify PowerShell + dbatools installation, index freshness, and version alignment
  • Version mismatch detection — warns when installed dbatools version differs from the indexed version
  • Safe mode — non-readonly commands require explicit confirm: true to execute
  • SQL Authentication support — pass SqlCredential: { username, password } for SQL auth instances

Prerequisites

  • Node.js 20+
  • PowerShell 7+ (pwsh)
  • dbatools PowerShell module
Install-Module dbatools -Scope CurrentUser

Quick Start

# 1. Clone the repo
git clone https://github.com/Dataplat/dbatools-mcp-server.git
cd dbatools-mcp-server

# 2. Install Node dependencies
npm install

# 3. Generate the help index from your local dbatools installation
npm run refresh-help

# 4. Build
npm run build

Then open the folder in VS Code — the .vscode/mcp.json file automatically registers the MCP server.

Connecting to VS Code

The included .vscode/mcp.json registers the server as a local STDIO MCP server. Open this folder in VS Code and the server will appear in the GitHub Copilot MCP panel.

{
  "servers": {
    "dbatools": {
      "type": "stdio",
      "command": "node",
      "args": ["${workspaceFolder}/dist/server.js"],
      "env": {
        "DBATOOLS_SAFE_MODE": "true",
        "MAX_OUTPUT_ROWS": "100",
        "COMMAND_TIMEOUT_SECONDS": "60"
      }
    }
  }
}

Configuration

All settings are controlled via environment variables (set in .vscode/mcp.json or your shell):

Refreshing the Help Index

The help index (generated/dbatools-help.json) is generated from your locally installed dbatools module. Re-run whenever dbatools is updated:

Update-Module dbatools -Scope CurrentUser
npm run refresh-help

The server detects version mismatches at runtime and warns you when the index is stale.

Risk Levels

Commands are automatically classified by verb:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Dbatools: common questions

Is Dbatools MCP server safe?
Yes, by our scan: it is graded A (89/100). Read the Dbatools safety report
How do I install Dbatools?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Dbatools need an API key?
No secret keys are declared. It reads 4 settings from the environment.
Is Dbatools maintained?
The last commit was 92 days ago (2026-08-04). The latest release is v0.5.0.
What can I use instead of Dbatools?
Servers from other publishers that do the same job: Keboola MCP server, DBHub MCP server and Motherduck MCP server.
How does Dbatools compare with other Databases MCP servers?
safety score 89/100 (higher than 80% of 802 Databases servers); tools 4 (the typical Databases server has 8); tools that change things 25% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Dbatools

Same job from other publishers: the closest match first, then the best rated.

  • Keboola
    Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • Motherduck
    SQL analytics and data engineering for AI Assistants and IDEs
    A
  • GeoLens
    Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.
    B
  • Faucet
    SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.
    A