Skip to content
Cursor

SqlServerMcp for Cursor

io.github.nithish1206/sqlservermcp

MCP server for SQL Server: schema inspection, safe read-only queries, query plan analysis

client:Cursor transport:stdio runtime:nuget

Install SqlServerMcp 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": {
    "sqlservermcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "SqlServerMcp",
        "--yes"
      ],
      "env": {
        "ConnectionStrings__MyDb": "<ConnectionStrings__MyDb>",
        "Query__DefaultTop": "<Query__DefaultTop>",
        "Query__MaxTop": "<Query__MaxTop>"
      }
    }
  }
}

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

SqlServerMcp in other clients