Text2sql
Natural-language SQL queries for SQLite, Postgres, MySQL, Snowflake, and BigQuery through an MCP-compatible assistant.
Install Text2sql
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"text2sql": {
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "YOUR_VALUE_HERE",
"ANTHROPIC_API_KEY": "YOUR_VALUE_HERE",
"OPENAI_API_KEY": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
uvx text2sql-mcpNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Ask business questions about records in a SQL database
- Explore an unfamiliar database schema through an assistant
- Generate and run SQL without maintaining schema embeddings
- Retry malformed queries after database execution errors
Key features
- Natural-language database queries
- Schema exploration
- Iterative SQL generation and correction
- SQLite, Postgres, MySQL, Snowflake, and BigQuery support
- Anthropic and OpenAI model support
- Structured query results with SQL and error details
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 4d ago via OSV.dev · text2sql-mcp (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Text2sql works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Text2sql
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/text2sql)<a href="https://allmcps.com/mcp/text2sql"><img src="https://allmcps.com/api/badge/text2sql?style=directory" alt="Text2sql on AllMCPs" /></a>