HomeDatabases & Data › SQL Server MCP

SQL Server MCP

MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes

TypeScript CloudLocal
★ 2 stars Last pushed 2026-09-18 License: MIT

Topics: Databases

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 3.1.0)

npx -y @cevelas/mcp-sqlserver@3.1.0

Or add to your MCP client config:

{
  "mcpServers": {
    "mcp-sqlserver": {
      "command": "npx",
      "args": [
        "-y",
        "@cevelas/mcp-sqlserver@3.1.0"
      ],
      "env": {
        "MSSQL_MCP_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_MCP_CONNECTIONS_JSON": "<YOUR_VALUE>"
      }
    }
  }
}
  • MSSQL_MCP_CONNECTIONS — Path to connections.json. Defaults to ~/.mcp-sqlserver/connections.json; create one with --init.
  • MSSQL_MCP_CONNECTIONS_JSON secret — The connections JSON inline, for setups that keep credentials out of the filesystem.

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry