text2sql
by github.com/cpenniman12 · v0.1.2 · updated Jun 28, 2026
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
Run it locally
Install the package and point your AI client at it.
PyPI
uvx text2sql-mcp==0.1.2Environment variables
TEXT2SQL_DATABASE_URLrequiredSQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db
ANTHROPIC_API_KEYsecretAnthropic API key (required if using the default Anthropic model)
OPENAI_API_KEYsecretOpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model)
TEXT2SQL_MODELOptional LangChain model id (default: anthropic:claude-sonnet-4-6)
More MCP servers
Cpfhub
github.com/cpfhub
MCP server for CPFHub.io. Query Brazilian CPF data directly from AI agents.
Cronometer
github.com/cphoskins
MCP server for Cronometer — food logs, macros, fasting, biometrics, and recurring foods
Notion Full Mcp
github.com/cphoskins
Notion MCP server: deep reads, block editing, safe snapshot/restore, file uploads, page move/copy
Amazonads Mcp
github.com/cprice70
MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports
TLDMint Live Domain & DNS MCP
github.com/cputop
Live 1.1.1.1 domain generator, 100-domain bulk check, DNS/WHOIS & verified promos.
rag-rat
github.com/cq27-dev
Repository intelligence, code graph, history, papertrail, and cross-agent memory for coding agents.