PluginBench
MCP Server
Active
MIT

text2sql MCP Server

io.github.cpenniman12/text2sql-mcp

RepositoryRegistry
How to choose

What this kind of tool is for

  • Query, inspect, or seed a database without writing a one-off script.
  • Let your agent look up schema details before it writes migration code.
  • Move a small dataset between tools without leaving the terminal.

How to compare servers like this

Engine match:
Confirm it speaks your exact database and version, not just the family.
Access scope:
Read-only connections are the safe default — start there before granting writes.
Safety rails:
Check whether destructive statements need an explicit confirmation before they run.
Maintenance signal:
Database drivers change; a recently updated tool is less likely to break mid-query.

This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.

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
JSON config
{
  "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 →

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

292
Python
Apache-2.0
View repository →

MCP server for Framedash game telemetry: query analytics, heatmaps, perf regressions, and alerts

0
TypeScript
MIT
View repository →

MCP服务器,提供房产小区评级和评估功能

5
JavaScript
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 →