Microsoft SQL Server MCP server
MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.
not scanned yet
9 stars
Reviews
Write oneNobody 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.
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.0Configuration
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:
- the user-scoped appsettings.json — any number of profiles;
- McpMssqlProfiles_ environment variables — any number of profiles;
- 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.
- GoSQLXSQL validation, formatting, parsing, metadata extraction, linting, and security analysis.not reviewedGrowingA
- Mssql ReaderRead-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe queryingnot reviewedGrowingA
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- MotherduckSQL analytics and data engineering for AI Assistants and IDEsnot reviewedEstablishedA
- KeboolaConnect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...not reviewedEstablishedA