Mmcp.market

SqlServer Rules MCP server

by ErikEJ·io.github.ErikEJ/SqlServer.Rules·v1.0

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

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

full report

Adoption
Growing

241 stars

Reviews

Write one

Nobody has reviewed SqlServer Rules yet.

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

SqlServer Rules tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

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

no findings
  • –Code scanpackage could not be scannedn/a
  • –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 1 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 88/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

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

[marketplace]: https://marketplace.visualstudio.com/items?itemName=ErikEJ.TSqlAnalyzer [ssmsmarketplace]: https://ssmsgallery.azurewebsites.net/extension/TSqlAnalyzerSsms.f1322c34-dfaa-4842-8933-b439626da91d [vsixgallery]: http://www.vsixgallery.com/extension/SqlAnalyzer.abc6ba2-edd5-4419-8646-a55d0a83f7ff/

Static Analysis Rule-sets for SQL Projects

Overview

A library of SQL best practices implemented as over 140 database code analysis rules checked at build time.

The rules can be added as NuGet packages to SQL Database projects:

  • Modern SDK-style projects: MSBuild.Sdk.SqlProj and Microsoft.Build.Sql
  • Classic .sqlproj: Legacy SSDT projects (Visual Studio 2017+ required)

For a complete list of the current rules we have implemented see here.

Component Stack

flowchart TD
    VS["Visual Studio T-SQL Analyzer<br/>Live feedback in Visual Studio"]
    SSMS["SSMS T-SQL Analyzer<br/>Live feedback in SQL Server Management Studio"]
    VSC["VS Code T-SQL Analyzer<br/>Live feedback in Visual Studio Code"]
    CLI["T-SQL Analyzer CLI<br/>tsqlanalyze command line tool"]
    MBSQL["SQL Database Projects<br/>Build-time SQL Project analysis"]
    RULES["SqlServer.Rules<br/>(NuGet package)<br/>Static SQL code analysis rules"]
    MCP["MCP Server<br/>AI Agent integration for SQL code analysis rules"]

    VS --> CLI
    SSMS --> CLI
    VSC --> CLI
    CLI --> RULES
    MBSQL --> RULES
    MCP --> CLI

Usage

The latest version is available on NuGet

dotnet add package ErikEJ.DacFX.SqlServer.Rules

Modern SDK-style Projects

The rules are available as a NuGet package that can be added to your SQL Database project. The rules will run during build, and report any issues in the Error List window.

You can read more about using and customizing the rules in the docs here

Classic .sqlproj Projects

You can download and manually use the rules with Visual Studio and "classic" SQL Database projects, as described in my blog post here.

Command line tool - T-SQL Analyzer CLI

This repository also contains a .NET command line tool that uses the rule set.

You can use it to analyze SQL scripts or SQL Database projects and output the results in a variety of formats, including XML and JSON.

You can also use the tool as an MCP Server with GitHub Copilot in VS Code and Visual Studio, allowing you to get feedback on your SQL code using GitHub Copilot Chat.

The T-SQL Analyzer MCP Server supports quick installation across multiple development environments. Choose your preferred client below for streamlined setup:

Shortened. The full README is on GitHub.

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

Install directly

The registry entry has no remote endpoint or installable package.

SqlServer Rules: common questions

Is SqlServer Rules MCP server safe?
Yes, by our scan: it is graded A (88/100). Read the SqlServer Rules safety report
Does SqlServer Rules need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is SqlServer Rules maintained?
The last commit was in the last day (2026-09-23). The latest release is v1.0.
What can I use instead of SqlServer Rules?
Servers from other publishers that do the same job: Sqemo MCP server, SQL Server MCP server and gadak MCP server. Compare all SqlServer Rules alternatives.

Alternatives to SqlServer Rules

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

All SqlServer Rules alternatives →
  • Sqemo
    Design ERDs with your team's naming standards: query/edit entities and relationships, SQL/DBML
    A
  • SQL Server MCP
    MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes
    B
  • gadak
    Ask a local SQLite mirror of your Jira and Confluence: SQL, full-text search, issue detail.
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • GeoLens
    Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.
    B

More from ErikEJ →