LocalFree

text2sql MCP server

cpenniman12/text2sql-mcp

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

1 GitHub stars

Install text2sql in Claude Code

Claude Code
claude mcp add text2sql -e TEXT2SQL_DATABASE_URL=... -- uvx text2sql-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "text2sql": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the text2sql MCP server do?

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

Is the text2sql MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does text2sql run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add text2sql to Claude Code?

Run: claude mcp add text2sql -e TEXT2SQL_DATABASE_URL=... -- uvx text2sql-mcp

More databases MCP servers

View all