Text2sql MCP Server

Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects. It runs locally over stdio via the published package.

People who work with Text2sql and Anthropic and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-02 · ★ 1 · VERIFIED 2026-09-30

MIT · Python servers · how we verify → /methodology

01 · Install Text2sql

before you install - you'll need

Set TEXT2SQL_DATABASE_URL, ANTHROPIC_API_KEY before connecting.

Claude Code

claude mcp add cpenniman12-text2sql-mcp -- uvx text2sql-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "cpenniman12-text2sql-mcp": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

pypi package text2sql-mcp - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.cpenniman12 is GitHub-verified and matches the repo owner

03 · Who maintains Text2sql

text2sql is maintained by cpenniman12. It's the only MCP server we track from this author; the repo dates to Jun 2026.

04 · Facts

category
database - actively maintained as of 2026-09-30.
registry
io.github.cpenniman12/text2sql-mcp (active, first published 2026-06-28)
packages
pypi:text2sql-mcp

05 · Text2sql FAQ

What is Text2sql?

Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects. It runs locally over stdio via the published package.

Is Text2sql still maintained?

Yes - as of 2026-09-30, its last commit was 2026-08-02. We re-verify nightly.

How do I install Text2sql?

Run `uvx text2sql-mcp`. The README documents 2 environment variables (TEXT2SQL_DATABASE_URL, ANTHROPIC_API_KEY) to set first. Set TEXT2SQL_DATABASE_URL, ANTHROPIC_API_KEY before connecting. You can also paste the ready-made client config above.

Does Text2sql run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

06 · Alternatives to Text2sql