← Back to Plugins
MCP Server MCP

text2sql

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

uvx text2sql-mcp

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "pypi",
      "identifier": "text2sql-mcp",
      "version": "0.1.2",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "SQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db",
          "isRequired": true,
          "format": "string",
          "name": "TEXT2SQL_DATABASE_URL"
        },
        {
          "description": "Anthropic API key (required if using the default Anthropic model)",
          "format": "string",
          "isSecret": true,
          "name": "ANTHROPIC_API_KEY"
        },
        {
          "description": "OpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model)",
          "format": "string",
          "isSecret": true,
          "name": "OPENAI_API_KEY"
        },
        {
          "description": "Optional LangChain model id (default: anthropic:claude-sonnet-4-6)",
          "format": "string",
          "name": "TEXT2SQL_MODEL"
        }
      ]
    }
  ]
}
mcp model-context-protocol pypi

Comments

Sign in to leave a comment

Loading comments...