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
- repository
- github.com/cpenniman12/text2sql-mcp
- 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
Alternatives to Text2sql
Maintained database servers if Text2sql isn't the fit.
- Dbx Query databases from AI agents using connections configured in DBX. ★ 22,689 · 2026-09-30
- Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. ★ 16,541 · 2026-09-30
- Butterbase Ai MCP Server Butterbase MCP server - manage your backend: schemas, auth, functions, storage, RAG, deploys. ★ 3,683 · 2026-09-29
- Dbhub Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite ★ 3,587 · 2026-09-28
- LINQ to DB Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB. ★ 3,331 · 2026-09-30
- Supabase MCP server for interacting with the Supabase platform ★ 2,926 · 2026-09-28
Pairs well with
Servers that cover what Text2sql doesn't - only shown when the pairing reason fits the companion.
- Server Chart → data & analytics companion data & analytics · ★ 4,388
- Keboola MCP Server → data & analytics companion data & analytics · ★ 86
- Server Filesystem → filesystem companion filesystem · ★ 39,168
- Pdf MCP → filesystem companion filesystem · ★ 145
- Telnyx → API integration companion API integration · ★ 197
- Microsoft 365 MCP Server → API integration companion API integration · ★ 1,002