Microsoft SQL Server
io.github.alyiox/mcp-mssql
v1.8.0Updated Oct 26, 2026stdio · NuGet
MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add mcp-mssql -- dnx [email protected] --yesConfiguration
10 settings.
MCPMSSQL_CONNECTION_STRINGEnv var· optional· secretDefault profile SQL Server connection string (often contains secrets). Optional if profiles are only in user appsettings.MCPMSSQL_DESCRIPTIONEnv var· optionalOptional human-readable description for the default profile.MCPMSSQL_QUERY_MAX_ROWSEnv var· optionalMax rows per interactive query (default 500; ceiling 1000).MCPMSSQL_QUERY_COMMAND_TIMEOUT_SECONDSEnv var· optionalInteractive query command timeout in seconds (default 30).MCPMSSQL_QUERY_SNAPSHOT_MAX_ROWSEnv var· optionalMax rows for snapshot queries (default 10000; ceiling 50000).MCPMSSQL_QUERY_SNAPSHOT_COMMAND_TIMEOUT_SECONDSEnv var· optionalSnapshot query timeout in seconds (default 120).
Show 4 moreShow fewer
MCPMSSQL_ANALYZE_COMMAND_TIMEOUT_SECONDSEnv var· optionalExecution plan analysis timeout in seconds (default 300; ceiling 600).MCPMSSQL_ALLOW_WRITEEnv var· optionalEnable 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 guarantee.MCPMSSQL_WRITE_COMMAND_TIMEOUT_SECONDSEnv var· optionalWrite command timeout in seconds (default 60; ceiling 600).DOTNET_ENVIRONMENTEnv var· optionalSet to Development to load dotnet user-secrets (local dev).
Links
Listed in the official MCP Registry since Oct 26, 2026. Mirrored daily; last checked Nov 26, 2026.