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.
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)
{
"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

io.github.cphoskins/cronometer
Access your Cronometer nutrition data—food logs, macros, fasting, and biometrics—directly from Claude and Cursor.

Search, manage, and monitor Elasticsearch/OpenSearch clusters directly from your AI assistant.
MCP server for Framedash game telemetry: query analytics, heatmaps, perf regressions, and alerts

io.github.cprice70/amazonads-mcp
MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports

rag-rat
Repository intelligence, code graph, and source-anchored memories for coding agents.

