Skip to content
Grok

text2sql for Grok

io.github.cpenniman12/text2sql-mcp

Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.

client:Grok transport:stdio runtime:pypi

Install text2sql 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": {
    "text2sql-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "TEXT2SQL_MODEL": "<TEXT2SQL_MODEL>"
      }
    }
  }
}

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

text2sql in other clients