Loading MCP server directory, please wait...
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
npx @getmcp/cli add io.github.cpenniman12/text2sql-mcpRequires Python 3.10+. Community-contributed server. Review source before installing.
TEXT2SQL_DATABASE_URLSQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"io.github.cpenniman12/text2sql-mcp": {
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "",
"ANTHROPIC_API_KEY": "",
"OPENAI_API_KEY": "",
"TEXT2SQL_MODEL": ""
}
}
}
}