Skip to content
Grok

Raw SQL MCP for Grok

io.github.kifopl/rawsqlmcp

Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.

client:Grok transport:stdio runtime:nuget

Install Raw SQL MCP 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": {
    "rawsqlmcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "RawSqlMcp",
        "--yes"
      ],
      "env": {
        "RawSqlMcp__Databases__Default__Provider": "<RawSqlMcp__Databases__Default__Provider>",
        "RawSqlMcp__Databases__Default__ConnectionString": "<RawSqlMcp__Databases__Default__ConnectionString>",
        "RawSqlMcp__ConnectionStrings__Default": "<RawSqlMcp__ConnectionStrings__Default>"
      }
    }
  }
}

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

Raw SQL MCP in other clients