← Back to browse

text2sql

Indexed by io.github.cpenniman12

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsTEXT2SQL_DATABASE_URL ANTHROPIC_API_KEY OPENAI_API_KEY TEXT2SQL_MODEL
Claude Code
claude mcp add --env TEXT2SQL_DATABASE_URL= --env ANTHROPIC_API_KEY= --env OPENAI_API_KEY= --env TEXT2SQL_MODEL= text2sql-mcp -- uvx text2sql-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"text2sql-mcp","command":"uvx","args":["text2sql-mcp"],"env":{"TEXT2SQL_DATABASE_URL":"","ANTHROPIC_API_KEY":"","OPENAI_API_KEY":"","TEXT2SQL_MODEL":""}}'
JSON
{
  "mcpServers": {
    "text2sql-mcp": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "",
        "ANTHROPIC_API_KEY": "",
        "OPENAI_API_KEY": "",
        "TEXT2SQL_MODEL": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.