MCP.Market

text2sql MCP server

by cpenniman12·io.github.cpenniman12/text2sql-mcp·v0.1.2·2 stars

Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
New

2 stars

Reviews

Write one

Nobody has reviewed text2sql yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

text2sql tools (1)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • query

    Ask the database a natural-language question.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan3 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 55 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How text2sql compares

Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
78/100
higher than 47% of 802 Databases servers
Tools
1
the typical Databases server has 8
Tools that change things
0%
typical: 10%. Fewer write tools means less an agent can break
GitHub stars
2
more than 60% of 602 Databases servers

What its tools let an agent do: 1 read

Install text2sql in Claude Code, Cursor or VS Code

claude mcp add text2sql-mcp -- uvx text2sql-mcp
Add to Cursor

What the publisher says

From the text2sql repository's README, as published. We do not edit it. Read it on GitHub

text2sql-mcp

<!-- mcp-name: io.github.cpenniman12/text2sql-mcp -->

MCP server for text2sql-framework. Plugs into Claude Desktop, Cursor, Goose, or any other MCP-compatible assistant and lets it ask a SQL database questions in natural language.

The agent explores the schema, writes SQL, executes it against the real DB, and self-corrects on errors — no RAG layer, no schema descriptions, no pre-computed embeddings.

Install

Out of the box, text2sql-mcp supports SQLite + Anthropic:

pip install text2sql-mcp
# or
uvx text2sql-mcp

For other databases or LLM providers, install with the matching extra so the right driver gets installed:

Configure

Set environment variables in your MCP client config:

Claude Desktop / Cursor / generic MCP

{
  "mcpServers": {
    "text2sql": {
      "command": "uvx",
      "args": ["text2sql-mcp"],
      "env": {
        "TEXT2SQL_DATABASE_URL": "sqlite:///mydb.db",
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Goose CLI

goose configure
# Add Extension → Command-line Extension
# Name: text2sql
# Command: uvx text2sql-mcp
# Env: TEXT2SQL_DATABASE_URL, ANTHROPIC_API_KEY

Tools

  • query(question, maxrows=100) — ask the database a natural-language question. Returns {sql, data, error, rowcount, toolcallsmade}.

How it works

Under the hood this is a thin wrapper around text2sql-framework, which uses LangChain Deep Agents to do iterative tool-calling against a single execute_sql tool. See the framework README for benchmarks (19/20 on Spider zero-shot across 80 tables) and architecture details.

License

MIT

Nothing above is checked by us. What we check is on the safety report.

text2sql: common questions

Is text2sql MCP server safe?
Mostly: it is graded B (78/100). Read the text2sql safety report
How do I install text2sql?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does text2sql need an API key?
Yes. The registry entry asks for ANTHROPIC_API_KEY, OPENAI_API_KEY.
Is text2sql maintained?
The last commit was 94 days ago (2026-08-02). The latest release is v0.1.2.
What can I use instead of text2sql?
Servers from other publishers that do the same job: LINQ to DB MCP server, QueryWeaver MCP server and Grain SQL MCP server.
How does text2sql compare with other Databases MCP servers?
safety score 78/100 (higher than 47% of 802 Databases servers); tools 1 (the typical Databases server has 8); tools that change things 0% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to text2sql

Same job from other publishers: the closest match first, then the best rated.

  • LINQ to DB
    Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
    A
  • QueryWeaver
    An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
    A
  • Grain SQL
    Run SQL queries and inspect database schemas through safe, visible MCP tools.
    B
  • Mako
    Explore your databases, validate SQL, and build & publish data apps in your Mako workspace.
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A