MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes
Connect Runs on your machine
claude mcp add mcp-sqlserver -e MSSQL_MCP_CONNECTIONS=<MSSQL_MCP_CONNECTIONS> -e MSSQL_MCP_CONNECTIONS_JSON=<MSSQL_MCP_CONNECTIONS_JSON> -- npx -y @cevelas/[email protected]
{
"mcpServers": {
"mcp-sqlserver": {
"command": "npx",
"args": [
"-y",
"@cevelas/[email protected]"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "<MSSQL_MCP_CONNECTIONS>",
"MSSQL_MCP_CONNECTIONS_JSON": "<MSSQL_MCP_CONNECTIONS_JSON>"
}
}
}
}
{
"mcpServers": {
"mcp-sqlserver": {
"command": "npx",
"args": [
"-y",
"@cevelas/[email protected]"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "<MSSQL_MCP_CONNECTIONS>",
"MSSQL_MCP_CONNECTIONS_JSON": "<MSSQL_MCP_CONNECTIONS_JSON>"
}
}
}
}
{
"servers": {
"mcp-sqlserver": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cevelas/[email protected]"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "<MSSQL_MCP_CONNECTIONS>",
"MSSQL_MCP_CONNECTIONS_JSON": "<MSSQL_MCP_CONNECTIONS_JSON>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
MSSQL_MCP_CONNECTIONSOptional | Path to connections.json. Defaults to ~/.mcp-sqlserver/connections.json; create one with --init. |
MSSQL_MCP_CONNECTIONS_JSONOptional, secret | The connections JSON inline, for setups that keep credentials out of the filesystem. |
Details
| Package | @cevelas/[email protected] (NPM, stdio) |
| First published | 12 Oct 2026 |
| Last updated | 12 Oct 2026 |
| Registry name | io.github.cvelasquez/mcp-sqlserver |
More databases servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
