Listed from the MCP registry; nobody on Odel publishes it.
Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Published to NuGet as `ErikEJ.DacFX.TSQLAnalyzer.Cli` — run it with your .NET MCP host.
Catch T-SQL design, naming, and performance issues as you type, when you build, or from the command line. T-SQL Analyzer brings over 140 SQL best-practice rules to SQL Server and Azure SQL developers.
Try before you install! Open the demo web app and paste a T-SQL script to see the analysis findings. No installation required; scripts are analyzed only, never executed or stored.
You don't need a SQL Database project to get started - the live analyzers work with standalone SQL scripts too. All tools use the same core rule set.
| Where you work | What you get | Get started |
|---|---|---|
| Visual Studio | Live feedback in the Error List while editing SQL scripts | Install extension · Setup and options |
| SQL Server Management Studio | Live feedback in the Error List while editing SQL scripts | Install extension · Setup and options |
| VS Code | Live squiggles and diagnostics in .sql files | Install extension · Setup and options |
| SQL Database projects / CI | Check rules during builds | Build-time setup |
| Command line | Analyze scripts, folders, .dacpac files, or live databases | CLI quick start |
| GitHub Copilot Chat | Ask Copilot to analyze SQL using the MCP server | Copilot setup |
The extensions download the analyzer tooling automatically; no separate CLI or rules package installation is needed. Customize enabled rules and the target SQL Server version in Tools > Options (Visual Studio / SSMS) or Settings (VS Code). See each extension's setup guide for details.
For Visual Studio, a CI build is also available.
Add ErikEJ.DacFX.SqlServer.Rules to your SQL Database project to report issues during local and CI builds.
.sqlproj projects in Visual Studio: Use the SSDT setup guideBuild-time checks complement live feedback by checking your SQL project as part of your build workflow.
With the .NET 10 SDK or later installed:
dotnet tool install --global ErikEJ.DacFX.TSQLAnalyzer.Cli
tsqlanalyze -i C:\scripts\sproc.sql
tsqlanalyze -i C:\scripts\database.dacpac -o results.json
Use the CLI for one-off checks or automation, with console, XML, or JSON output. See the CLI guide for folder and live database analysis, rule filters, and more examples.
The analyzer also runs as an MCP server, letting GitHub Copilot Chat use the rules to analyze your SQL code in VS Code or Visual Studio. This is separate from automatic live editor feedback.
The VS Code extension includes the MCP server integration - start T-SQL Analyzer from the MCP server list to enable it. For standalone MCP installation in either editor, see the MCP setup guide.
Browse the rule catalogue for explanations and examples. You can disable individual rules or groups and promote selected warnings to errors; configuration instructions are linked above for each tool.