MCP.Market

Microsoft SQL Server MCP server

by alyiox·io.github.alyiox/mcp-mssql·v1.8.0·9 stars

MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.

B73/100grade B
What users say
No reviews yet
Be the first
Safety scan
B73/100

not scanned yet

Adoption
Growing

9 stars

Reviews

Write one

Nobody has reviewed Microsoft SQL Server yet.

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

Microsoft SQL Server tools

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

Not scanned yet. New listings are scanned within a day or two of arriving.

How Microsoft SQL Server compares

Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
73/100
higher than 32% of 802 Databases servers
GitHub stars
9
more than 79% of 602 Databases servers

Release history: 3 versions in the registry since 2026-09-15, latest 2026-10-26, typically one every 25 days.

Install Microsoft SQL Server in Claude Code, Cursor or VS Code

The registry entry has no remote endpoint or installable package.

What the publisher says

From the Microsoft SQL Server repository's README, as published. We do not edit it. Read it on GitHub

MCP SQL Server

<!-- mcp-name: io.github.alyiox/mcp-mssql -->

A read-only-by-default Model Context Protocol (MCP) server for Microsoft SQL Server that provides schema discovery, select-only queries, execution-plan analysis, opt-in writes, and profile-based access to multiple servers from a single toolset deployment.

Requirements: .NET 8.0 or later runtime (the tool targets net8.0 and net10.0), SQL Server, and a connection string.

Quick start

Set MCPMSSQLCONNECTIONSTRING and run the server in one of these ways:

# Option 1: Run from NuGet package (e.g. with MCP Inspector)
export MCPMSSQL_CONNECTION_STRING="Server=127.0.0.1;User ID=sa;Password=<YourStrong@Passw0rd>;Encrypt=True;TrustServerCertificate=True;"
npx -y @modelcontextprotocol/inspector@latest dotnet dnx Alyio.McpMssql --prerelease
# Option 2: Install and run as a global tool
dotnet tool install --global Alyio.McpMssql --prerelease
export MCPMSSQL_CONNECTION_STRING="Server=127.0.0.1;User ID=sa;Password=<YourStrong@Passw0rd>;Encrypt=True;TrustServerCertificate=True;"
npx -y @modelcontextprotocol/inspector@latest mcp-mssql
# Option 3: Run from source (clone repo, then)
export MCPMSSQL_CONNECTION_STRING="Server=127.0.0.1;User ID=sa;Password=<YourStrong@Passw0rd>;Encrypt=True;TrustServerCertificate=True;"
npx -y @modelcontextprotocol/inspector@latest dotnet run --project src/Alyio.McpMssql -f net10.0

Configuration

A profile is one SQL Server connection: a connection string, the row and timeout caps that apply to it, and whether writes are allowed. A profile named default always exists; every tool takes an optional profile to reach another, and list_profiles reports what is configured.

Settings come from three sources, merged field by field, later winning:

  1. the user-scoped appsettings.json — any number of profiles;
  2. McpMssqlProfiles_ environment variables — any number of profiles;
  3. flat MCPMSSQL_ environment variables — the default profile only.

Because the merge is per field rather than per profile, an appsettings.json can carry the full set while a flat MCPMSSQLCONNECTIONSTRING repoints the default profile at a local server, leaving its other fields intact. There is no fallback connection string: a profile without one — including a default that nothing configured — fails startup.

Each setting has one field name, spelled three ways — the JSON path under McpMssql:Profiles:, that same path with : replaced by __ as an environment variable, or the flat form:

Shortened. The full README is on GitHub.

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

Microsoft SQL Server: common questions

Is Microsoft SQL Server MCP server safe?
Mostly: it is graded B (73/100). Read the Microsoft SQL Server safety report
Does Microsoft SQL Server need an API key?
Yes. The registry entry asks for MCPMSSQL_CONNECTION_STRING.
Is Microsoft SQL Server maintained?
The last commit was 42 days ago (2026-09-23). The latest release is v1.8.0.
What can I use instead of Microsoft SQL Server?
Servers from other publishers that do the same job: GoSQLX MCP server, Mssql Reader MCP server and DBHub MCP server.
How does Microsoft SQL Server compare with other Databases MCP servers?
safety score 73/100 (higher than 32% of 802 Databases servers); github stars 9 (more than 79% of 602 Databases servers). Full comparison.

Alternatives to Microsoft SQL Server

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

  • GoSQLX
    SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
    A
  • Mssql Reader
    Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • Motherduck
    SQL analytics and data engineering for AI Assistants and IDEs
    A
  • Keboola
    Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
    A

More from alyiox →