text2sql
io.github.cpenniman12/text2sql-mcp
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
Connect this server
Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.
{
"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_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)
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
- Category
- Developer Tools
- Version
- 0.1.2
- Registry
- active
- Published
- 6/28/2026
More Developer Tools servers
Browse all Developer Tools →io.github.cpfhub/cpfhub
cpfhub
MCP server for CPFHub.io. Query Brazilian CPF data directly from AI agents.
io.github.cphoskins/cronometer
cphoskins
MCP server for Cronometer — food logs, macros, fasting, biometrics, and recurring foods
io.github.cprice70/amazonads-mcp
cprice70
MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports
rag-rat
cq27-dev
Repository intelligence, code graph, history, papertrail, and cross-agent memory for coding agents.
cQnce MCP
cqnce-app
Add human approval to AI agent workflows through cQnce authorization tools.
io.github.CQQOOQ123/jiheng
CQQOOQ123
Exact math execution layer for AI agents: fractions, finance, units, dates. 19 packs.
Add the badge to your site
Show visitors that text2sql is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-cpenniman12-text2sql-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="text2sql — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-cpenniman12-text2sql-mcp?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.