Skip to content
Grok

SqlServerMcp for Grok

io.github.nithish1206/sqlservermcp

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

client:Grok transport:stdio runtime:nuget

Install SqlServerMcp in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

SqlServerMcp in other clients