Skip to content
MCP server
Registry

SqlServer.Rules MCP Server

Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices.

SqlServer.Rules scores 35 (Limited), licensed MIT and written in C#. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 244 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by erikejMITC#244 stars
Trust score
35Limited
Trust score 35 of 100, Limited

Limited trust

35 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 35 comes from

0 + 6 + 8 + 10 + 4 + 7 = 35. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity8 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 8 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "erikej-sqlserver-rules": {      "command": "dnx",      "args": [        "ErikEJ.DacFX.TSQLAnalyzer.Cli"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

T-SQL Analyzer & SQL Server Rules

build status latest version GitHub Sponsors

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.

Choose how you work

Where you workWhat you getGet started
Visual StudioLive feedback in the Error List while editing SQL scriptsInstall extension · Setup and options
SQL Server Management StudioLive feedback in the Error List while editing SQL scriptsInstall extension · Setup and options
VS CodeLive squiggles and diagnostics in .sql filesInstall extension · Setup and options
SQL Database projects / CICheck rules during buildsBuild-time setup
Command lineAnalyze scripts, folders, .dacpac files, or live databasesCLI quick start
GitHub Copilot ChatAsk Copilot to analyze SQL using the MCP serverCopilot setup

Get live feedback in your editor

  1. Install the .NET 10 SDK or later.
  2. Install the T-SQL Analyzer extension for your editor using the links above.
  3. Open a SQL script and start editing - analysis runs automatically, with no build step required.

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.

Check rules during project builds

Add ErikEJ.DacFX.SqlServer.Rules to your SQL Database project to report issues during local and CI builds.

Build-time checks complement live feedback by checking your SQL project as part of your build workflow.

Analyze from the command line

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, JSON, or SARIF output, and a baseline to report only new problems. See the CLI guide for folder and live database analysis, rule filters, and more examples.

Use with GitHub Copilot

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.

Explore and customize the rules

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.

Frequently asked questions

What is SqlServer.Rules MCP Server?

Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices.

How do I install SqlServer.Rules MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. SqlServer.Rules MCP Server runs locally from the NuGet package ErikEJ.DacFX.TSQLAnalyzer.Cli with the command dnx ErikEJ.DacFX.TSQLAnalyzer.Cli.

Is SqlServer.Rules MCP Server free and open source?

Yes. SqlServer.Rules MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does SqlServer.Rules MCP Server support remote (HTTP) connections?

No remote endpoint is listed for SqlServer.Rules MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is SqlServer.Rules MCP Server's trust score calculated?

SqlServer.Rules MCP Server scores 35 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server