A Claude-powered AI assistant for SQL Server Management Studio 22. SsmsAgentic docks a chat pane inside SSMS and uses the locally installed Claude Code CLI to inspect schemas, generate and explain T-SQL, run queries through SSMS's native pipeline, and carry out multi-step agentic work — all on the connection you already have open, with per-statement approval.
ssmsagentic.io · Install · Docs · Compare with Copilot & MCP
15-day free trial. Distributed under a commercial license with a 15-day trial; the clock starts the first time you open the chat pane in SSMS. For pricing and licensing terms, see ssmsagentic.io.
- Chat with Claude inside SSMS — a dockable tool window, accessible from the Tools menu.
- Reuses your live SSMS connection — server, database, and auth (including Entra interactive and managed identity) are taken from the active SSMS session. No connection strings, no stored credentials.
- Schema-aware tools — Claude can inspect tables, views, columns, indexes, and types via MCP tools.
- Native SSMS execution — queries run through SSMS's own pipeline, results render in the standard grid and messages pane.
- Per-statement approval — every read and write is shown verbatim with an Allow / Deny banner before it executes; writes are highlighted; a full audit log is written to disk.
- Plan and DMV analysis — reads execution plans, statistics, and waits to find the actual bottleneck and propose index, statistics, or query changes.
- Open in Query Editor — every SQL statement Claude proposes or runs gets a one-click button to open it in a native SSMS query editor tab against your current connection.
Concrete prompts that map to day-to-day SSMS work:
- "Find the 10 slowest queries running on this server right now and rank them by total CPU."
- "Explain what the
dbo.uspGetBillOfMaterialsstored procedure does, in plain English." - "Get the top 10 customers by order revenue this quarter."
- "Read the execution plan for the query in tab 2 and tell me why it's slow."
- "Audit logins and roles in this database — flag SA usage, wide-open schemas, and stale accounts."
- "Draft a migration that splits
Customers.FullNameintoFirstNameandLastNamewithout breaking existing rows."
Every generated statement waits for your approval before it touches the database.
| Tool | Description |
|---|---|
get_schema |
List tables and views with optional database/schema filters |
describe_object |
Return columns, types, and metadata for a table or view |
run_select_query |
Execute read-only SELECT queries (capped row limit) |
run_mutation_query |
Execute INSERT/UPDATE/DELETE/DDL with user approval |
explain_query |
Return estimated execution plan (SHOWPLAN_XML) without executing |
All SQL operations are validated using SQL Server's ScriptDom AST to enforce read/write boundaries.
- SQL Server Management Studio 22 (SSMS 22)
- Claude Code CLI installed and authenticated — see below
- Windows (amd64)
SsmsAgentic launches the Claude Code CLI as a child process, so SSMS must be able to find claude on the system PATH. The native Windows installer adds it for you automatically.
-
Install Git for Windows if you don't already have it — the native Claude installer depends on it.
-
Install the CLI. Open a terminal (no admin needed) and run one of the official one-liners:
PowerShell:
irm https://claude.ai/install.ps1 | iex
Command Prompt:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdOther install methods (WinGet, Homebrew, WSL) are listed in the official quickstart.
-
Verify it's on
PATH. Open a new terminal so it picks up the updated environment, then run:claude --version -
Authenticate. Run
claudeonce and follow the prompts to sign in. SsmsAgentic uses the same credentials. -
Restart SSMS. SSMS reads
PATHonly at process start, so any already-running instances need to be closed and reopened after the install. If the chat pane reports thatclaudecannot be found, this is almost always the cause.
The easiest path is the signed Setup.exe at ssmsagentic.io/getting-started.html — it bundles Git, the Claude CLI, WebView2, and the extension into one one-click install.
To install the VSIX directly:
- Download the latest
.vsixfrom the Releases page. - Close SSMS if it's running.
- Double-click the
.vsixto install, or run from the command line:"C:\Program Files\Microsoft SQL Server Management Studio 22\Release\Common7\IDE\VSIXInstaller.exe" /q SsmsAgentic.SsmsExtension.vsix - Launch SSMS and find SsmsAgentic under the Tools menu.
Download the new .vsix from Releases and install it. The installer replaces the previous version automatically.
To uninstall:
"C:\Program Files\Microsoft SQL Server Management Studio 22\Release\Common7\IDE\VSIXInstaller.exe" /q /u:SsmsAgentic.SsmsExtension.4a8e7b12-9c3d-4e5f-a1b2-c7d8e9f0a1b2
They solve different problems. GitHub Copilot in SSMS is great for inline T-SQL completion while you write queries by hand. Microsoft's SQL MCP Server is plumbing for building agents and apps against a database. SsmsAgentic is the only one of the three that is agentic inside SSMS — it runs queries for you, reads plans, audits permissions, and proposes changes, with per-statement approval, using the Claude subscription you already have. Side-by-side at ssmsagentic.io/ai-for-sql-server.html.
SsmsAgentic hosts the Claude Code CLI as a child process, communicating over its stream-json protocol. SQL tools are exposed to Claude via an MCP (Model Context Protocol) server that routes queries back through SSMS's own connection, so the same authentication and server context you're already using applies to every query Claude runs. All tool calls require your approval — Claude proposes actions, you decide what runs.
Found a bug or have a feature request? Open an issue on the issue tracker.
Proprietary — use of the SsmsAgentic extension is governed by the EULA at ssmsagentic.io/terms.html. The source code for the extension is not published in this repository.


