Install text2sql in Claude Code
claude mcp add text2sql -e TEXT2SQL_DATABASE_URL=... -- uvx text2sql-mcp{
"mcpServers": {
"text2sql": {
"command": "uvx",
"args": [
"text2sql-mcp"
],
"env": {
"TEXT2SQL_DATABASE_URL": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the text2sql MCP server do?
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
Is the text2sql MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does text2sql run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add text2sql to Claude Code?
Run: claude mcp add text2sql -e TEXT2SQL_DATABASE_URL=... -- uvx text2sql-mcp
More databases MCP servers
View allUsda
cyanheads/usda-mcp-server
Search foods, compare nutrients, and look up the full USDA FoodData Central database.
Tether
sidyellur/tether
Local-first agent memory over SQLite: remember, recall, link, forget. Degrades, never fails.
Ygoprodeck
pipeworx-io/mcp-ygoprodeck
YGOPRODeck MCP — Yu-Gi-Oh! trading card game (TCG) database. Keyless. Sends a User-Agent. Base…
Termdat
malkreide/termdat-mcp
MCP server for TERMDAT — the terminology database of the Swiss Federal Administration
Zektor
m-akcan/zektor-cli
Managed Postgres and Valkey hosted in Germany. Agents can create a trial database with no signup.
TeamMemory
ysydhc/team_memory
Team experience database - let AI accumulate, retrieve and apply team knowledge across chats.