MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.
unavailable — hosted endpoints aren’t versioned
nuget
Alyio.McpMssql
Pick your client — the config below is generated for this server. Copy respects the “Pin version” switch above.
This server ships as a downloadable bundle: Alyio.McpMssql
Format verified against the official Claude Desktop docs ↗.
This server ships as a downloadable bundle: Alyio.McpMssql
Format verified against the official Claude Code docs ↗.
This server ships as a downloadable bundle: Alyio.McpMssql
Format verified against the official Cursor docs ↗.
This server ships as a downloadable bundle: Alyio.McpMssql
Format verified against the official VS Code docs ↗.
This server ships as a downloadable bundle: Alyio.McpMssql
Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
MCPMSSQL_CONNECTION_STRING secret — Default profile SQL Server connection string (often contains secrets). Optional if profiles are only in user appsettings.MCPMSSQL_DESCRIPTION — Optional human-readable description for the default profile.MCPMSSQL_QUERY_MAX_ROWS — Max rows per interactive query (default 500; ceiling 1000).MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDS — Interactive query command timeout in seconds (default 30).MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWS — Max rows for snapshot queries (default 10000; ceiling 50000).MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDS — Snapshot query timeout in seconds (default 120).MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDS — Execution plan analysis timeout in seconds (default 300; ceiling 600).MCPMSSQL_ALLOW_WRITE — Enable write commands (DDL/DML) via run_command on the default profile (default false). With no write-enabled profile the tool is not advertised at all. Soft guard only — prefer a db_datareader login for a hard read-only⭐ 9 stars · 最近更新于 19 天前 · MIT license
Distributed as nuget, listed under Databases. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/alyiox/mcp-mssql. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/mcp-mssql/)
HTML
<a href="https://mcpnav.net/server/mcp-mssql/"><img src="https://mcpnav.net/badge/mcp-mssql.svg" alt="Listed on MCPNav" height="20"></a>