Skip to content
Cursor

SQL Server MCP for Cursor

io.github.cvelasquez/mcp-sqlserver

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

client:Cursor transport:stdio runtime:npm

Install SQL Server MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-sqlserver": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cevelas/mcp-sqlserver"
      ],
      "env": {
        "MSSQL_MCP_CONNECTIONS": "<MSSQL_MCP_CONNECTIONS>",
        "MSSQL_MCP_CONNECTIONS_JSON": "<MSSQL_MCP_CONNECTIONS_JSON>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

SQL Server MCP in other clients