PluginBench
MCP Server
Active
MIT

text2sql MCP Server

io.github.cpenniman12/text2sql-mcp

What is the text2sql MCP server?

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

How to install text2sql

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • TEXT2SQL_DATABASE_URL
    required

    SQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db

  • ANTHROPIC_API_KEY
    secret

    Anthropic API key (required if using the default Anthropic model)

  • OPENAI_API_KEY
    secret

    OpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model)

  • TEXT2SQL_MODEL

    Optional LangChain model id (default: anthropic:claude-sonnet-4-6)

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "text2sql-mcp": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "<YOUR_TEXT2SQL_DATABASE_URL>",
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>",
        "TEXT2SQL_MODEL": "<YOUR_TEXT2SQL_MODEL>"
      }
    }
  }
}

Related MCP servers

Access your Cronometer nutrition data—food logs, macros, fasting, and biometrics—directly from Claude and Cursor.

13
Python
MIT
View repository →

MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports

3
TypeScript
View repository →
RArag-rat logo

rag-rat

Active

Repository intelligence, code graph, and source-anchored memories for coding agents.

15
Rust
MIT
View repository →
CQcQnce MCP logo

cQnce MCP

Active

Add human approval to AI agent workflows through cQnce authorization tools.

1
TypeScript
MIT
View repository →

Search, manage, and monitor Elasticsearch/OpenSearch clusters directly from your AI assistant.

292
Python
Apache-2.0
View repository →
OROrchestrator logo

Let one coding agent consult another—Claude Code, Codex, OpenCode, Copilot, or Antigravity—without leaving your terminal.

10
Python
MIT
View repository →