$ timeahead.in
mcp/microsoft-sql-server-mcp/install/cursor

install Microsoft SQL Server MCP on Cursor

Requires the runtime declared in the upstream repo — check the README before running. Cursor reloads its MCP servers automatically the moment the file is saved — no restart needed. Paste the config below, then follow the reload step to register Microsoft SQL Server MCP.

paste into
global: ~/.cursor/mcp.json
project: .cursor/mcp.json (commit alongside your repo)
{
  "mcpServers": {
    "mssql": {
      "command": "node",
      "args": [
        "/absolute/path/to/mssql-mcp/dist/index.js"
      ],
      "env": {
        "MSSQL_SERVER": "localhost",
        "MSSQL_USER": "your_user",
        "MSSQL_PASSWORD": "your_password",
        "MSSQL_DATABASE": "your_database",
        "MSSQL_TRUST_SERVER_CERTIFICATE": "true"
      }
    }
  }
}
then: No restart needed — Cursor picks up the change automatically.
other clients
Claude DesktopWindsurfVS Code (Copilot)Claude Code
← back to Microsoft SQL Server MCP