mcpbeat Sign in

text2sql MCP Server

by cpenniman12 Your server? Claim it
local only

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.

Installs per day peak 28 · avg 16 · +11% w/w
a month agotoday
102
Installs / week
pypi · text2sql-mcp
1
Stars
0 open issues
2 Aug 2026
Last commit
from GitHub
MIT
License
Python

Nothing serious here today

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.

Three servers free · no card

Connect this server

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.

run in your terminal
claude mcp add text2sql-mcp -e 'TEXT2SQL_DATABASE_URL=<TEXT2SQL_DATABASE_URL>' -- uvx text2sql-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "text2sql-mcp": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.text2sql-mcp]
command = "uvx"
args = ["text2sql-mcp"]
env = { TEXT2SQL_DATABASE_URL = "<TEXT2SQL_DATABASE_URL>" }
.cursor/mcp.json
{
  "mcpServers": {
    "text2sql-mcp": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "<TEXT2SQL_DATABASE_URL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "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)).

Alternatives to text2sql

same job, measured the same way
M
MCP Schema Designer
by vpatser1

Design database schemas from natural language, validate SQL, generate migrations and types

61 installs/wk local only
Schemacrawler AI
by schemacrawler

Enables natural language schema queries — explore tables, keys, procedures, and get SQL help fast

local only
MCP Database Server
by souhar-dya

MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.

local only
QueryWeaver
by falkordb

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

local only
Tabellum
by dudko

MCP bridge to the Tabellum database client: schema, reads, SQL drafts; writes approved in the app.

56 installs/wk local only
MCP Tool Factory
by heshamfs

Generate MCP servers from natural language, OpenAPI specs, or database schemas.

59 installs/wk local only
L
Liquibase Changelog MCP Server
by liquibase

Convert natural language into validated Liquibase XML or SQL changesets. 19 tools, 12 databases.

local only
Databricks
by mcp-dir

Your Databricks Lakehouse in natural language: run SQL on your SQL warehouses, track long-running qu

17 tools answering

text2sql — questions

Answers built from our own checks of this server.

Why is there no uptime for text2sql?
text2sql runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package text2sql-mcp was installed 102 times last week.
How do I connect text2sql?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls text2sql-mcp straight from pypi; nothing to host, nothing to sign up for.
How many people use text2sql?
The pypi package text2sql-mcp was installed 102 times in the last week. Week over week that is +11%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is text2sql open source?
Yes — it is published under the MIT licence, written in Python and 1 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.