text2sql runs on your own machine — the client starts it, so there is no endpoint to ping. 102 installs a week from pypi. Last commit 2 Aug 2026.
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
Today is the operative word: we check text2sql every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add text2sql-mcp -e 'TEXT2SQL_DATABASE_URL=<TEXT2SQL_DATABASE_URL>' -- uvx text2sql-mcp
{
"mcpServers": {
"text2sql-mcp": {
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>"
}
}
}
}
[mcp_servers.text2sql-mcp]
command = "uvx"
args = ["text2sql-mcp"]
env = { TEXT2SQL_DATABASE_URL = "<TEXT2SQL_DATABASE_URL>" }
{
"mcpServers": {
"text2sql-mcp": {
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>"
}
}
}
}
{
"servers": {
"text2sql-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>"
}
}
}
}
Put your own value in place of
<TEXT2SQL_DATABASE_URL> (SQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
ANTHROPIC_API_KEY (Anthropic API key (required if using the default Anthropic model)), OPENAI_API_KEY (OpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model)), TEXT2SQL_MODEL (Optional LangChain model id (default: anthropic:claude-sonnet-4-6)).
Design database schemas from natural language, validate SQL, generate migrations and types
Enables natural language schema queries — explore tables, keys, procedures, and get SQL help fast
MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.
An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
MCP bridge to the Tabellum database client: schema, reads, SQL drafts; writes approved in the app.
Generate MCP servers from natural language, OpenAPI specs, or database schemas.
Convert natural language into validated Liquibase XML or SQL changesets. 19 tools, 12 databases.
Your Databricks Lakehouse in natural language: run SQL on your SQL warehouses, track long-running qu
Answers built from our own checks of this server.