REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
MCP server for dbatools — exposes SQL Server management commands as MCP tools
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Dbatools MCP Server key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
SettingsDeveloperEdit Config
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
],
"env": {
"DBATOOLS_SAFE_MODE": "your-value",
"MAX_OUTPUT_ROWS": "your-value",
"COMMAND_TIMEOUT_SECONDS": "your-value",
"PWSH_EXE": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use Dbatools MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using Dbatools MCP Server or shows a Dbatools MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Dbatools MCP Server yet
Dbatools MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Dbatools MCP Server
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a Dbatools MCP Server key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user dbatools --env DBATOOLS_SAFE_MODE=your-value --env MAX_OUTPUT_ROWS=your-value --env COMMAND_TIMEOUT_SECONDS=your-value --env PWSH_EXE=your-value -- npx -y dbatools-mcp-serverReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see Dbatools MCP Server listed as connected
Use Dbatools MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Dbatools MCP Server or shows a Dbatools MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Dbatools MCP Server key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the Dbatools MCP Server settings, DBATOOLS_SAFE_MODE, MAX_OUTPUT_ROWS, COMMAND_TIMEOUT_SECONDS, PWSH_EXE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Dbatools MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Dbatools MCP Server or shows a Dbatools MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Dbatools MCP Server key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the Dbatools MCP Server settings, DBATOOLS_SAFE_MODE, MAX_OUTPUT_ROWS, COMMAND_TIMEOUT_SECONDS, PWSH_EXE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Dbatools MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Dbatools MCP Server or shows a Dbatools MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user dbatools --env DBATOOLS_SAFE_MODE=your-value --env MAX_OUTPUT_ROWS=your-value --env COMMAND_TIMEOUT_SECONDS=your-value --env PWSH_EXE=your-value -- npx -y dbatools-mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
],
"env": {
"DBATOOLS_SAFE_MODE": "your-value",
"MAX_OUTPUT_ROWS": "your-value",
"COMMAND_TIMEOUT_SECONDS": "your-value",
"PWSH_EXE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"dbatools": {
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
],
"env": {
"DBATOOLS_SAFE_MODE": "your-value",
"MAX_OUTPUT_ROWS": "your-value",
"COMMAND_TIMEOUT_SECONDS": "your-value",
"PWSH_EXE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"dbatools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dbatools-mcp-server"
],
"env": {
"DBATOOLS_SAFE_MODE": "your-value",
"MAX_OUTPUT_ROWS": "your-value",
"COMMAND_TIMEOUT_SECONDS": "your-value",
"PWSH_EXE": "your-value"
}
}
}
}DBATOOLS_SAFE_MODE envMAX_OUTPUT_ROWS envCOMMAND_TIMEOUT_SECONDS envPWSH_EXE envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026
The registry name was verified with the GitHub account dataplat, which owns the repo
Code last changed 11 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 11 days ago, and the latest version (0.5.0) reached the registry 7 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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.
Get-Help -FullreadOnlyHint / destructiveHint / idempotentHint / openWorldHint so MCP clients (e.g. VS Code) can surface risk in the UI before a tool is even calleddbatools://command/{name} to read any command's full normalized help as structured JSON, independent of the chat-oriented tool responsesinvoke_dbatools_command reuses one long-lived pwsh process with dbatools pre-imported instead of spawning (and re-importing dbatools into) a fresh process on every callconfirm: true to executeSqlCredential: { username, password } for SQL auth instancespwsh)Install-Module dbatools -Scope CurrentUser
# 1. Clone the repo
git clone https://github.com/Dataplat/dbatools-mcp-server.git cd dbatools-mcp-server
npm install
npm run refresh-help
npm run build
Then open the folder in VS Code — the .vscode/mcp.json file automatically registers the MCP server.
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" } } } }
All settings are controlled via environment variables (set in .vscode/mcp.json or your shell):
| Variable | Default | Description |
|---|---|---|
PWSH_EXE | pwsh | Path to PowerShell executable |
DBATOOLS_SAFE_MODE | true | When true, non-readonly commands require confirm: true |
MAX_OUTPUT_ROWS | 100 | Maximum rows returned per command execution |
COMMAND_TIMEOUT_SECONDS | 60 | Seconds before PowerShell process is killed |
DBATOOLS_PERSISTENT_SESSION | true | When true, invoke_dbatools_command reuses one long-lived PowerShell process (dbatools pre-imported) instead of spawning a new process per call. Set to false to force a fresh process per call. |
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.
Commands are automatically classified by verb:
| Risk Level | Verbs | Behavior |
|---|---|---|
readonly | Get, Test, Find, Compare, … | Always allowed |
change | Set, New, Add, Copy, Enable, … | Requires confirm: true in safe mode |
destructive | Remove, Drop, Disable, Reset, … | Requires confirm: true in safe mode |
Each risk tier maps to standard MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint), so compatible clients can surface risk in their UI before a tool is even invoked. invoke_dbatools_command is a generic dispatcher that can run any command, so its annotation conservatively reflects the worst case (destructiveHint: true) — the actual per-command risk is still enforced at runtime by the safe-mode gate.
Besides the four tools, the server exposes every indexed command as an MCP resource at dbatools://command/{name} (e.g. dbatools://command/Get-DbaDatabase), returning the same normalized help record as structured JSON — useful for clients that browse/ground on resources rather than calling a tool. The browsable resource list excludes PowerShell aliases (e.g. Attach-DbaDatabase, an alias for Mount-DbaDatabase) since they just forward to another command's help.
By default, invoke_dbatools_command reuses a single long-lived pwsh process with dbatools pre-imported, instead of spawning a fresh process (and re-importing dbatools) on every call. This removes the ~1-2s+ process-startup and module-import cost from every invocation after the first.
A couple of things to be aware of:
Connect-DbaInstance) within a PowerShell session. With a persistent session, that caching is now visible across tool calls within one MCP server run, where previously every call was fully isolated. Each individual script still runs in its own scope, so plain variables never leak between calls — only dbatools' own internal caching behavior is affected.Set DBATOOLS_PERSISTENT_SESSION=false to disable this and go back to one fresh process per call.
For SQL-auth-only instances (e.g. Docker), pass credentials via the SqlCredential parameter:
{
"SqlInstance": "localhost,1433", "SqlCredential": { "username": " ", "password": "YourPassword" } }
dbatools-mcp-server/
├── src/ │ ├── server.ts # MCP server entry point, tool/resource definitions │ ├── powershell.ts # One-shot PowerShell process runner, health checks, version detection │ ├── powershell-session.ts # Persistent PowerShell session (long-lived process, dbatools pre-imported) │ ├── help-indexer.ts # Help manifest loader and command search │ ├── tool-registry.ts # Risk classification, tool annotations, safe argument builder │ └── types.ts # Shared TypeScript interfaces ├── scripts/ │ └── refresh-help.ps1 # Generates generated/dbatools-help.json ├── generated/ # Help index (gitignored, generated locally) ├── .vscode/ │ └── mcp.json # VS Code MCP local server registration └── dist/ # Compiled output (gitignored)
Contributions are welcome! Please open an issue first for significant changes.
This project follows the same community spirit as dbatools.
MIT — © 2026 DataPlat contributors