text2sql
io.github.cpenniman12/text2sql-mcp
About text2sql
text2sql is an MCP server published by the GitHub account cpenniman12. Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
It runs on your own machine: your AI client starts it from the PyPI package text2sql-mcp at version 0.1.2.
It asks for 2 secrets: ANTHROPIC_API_KEY and OPENAI_API_KEY. Give it a key with the least access that still works.
It also needs TEXT2SQL_DATABASE_URL set before it starts.
Version 0.1.2 was published on 28 June 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
TEXT2SQL_DATABASE_URL | Yes | No | SQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db |
ANTHROPIC_API_KEY | No | Yes | Anthropic API key (required if using the default Anthropic model) |
OPENAI_API_KEY | No | Yes | OpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model) |
TEXT2SQL_MODEL | No | No | Optional LangChain model id (default: anthropic:claude-sonnet-4-6) |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/cpenniman12/text2sql-mcp |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 2 secrets: ANTHROPIC_API_KEY, OPENAI_API_KEY |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account cpenniman12 |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | text2sql-mcp 0.1.2 has no setup.py; nothing runs at install |
| Code red flags | Pass | Read 4 files in text2sql-mcp 0.1.2: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 4 files, including comments and the README |
Popularity & health: 45 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 0 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.cpenniman12/text2sql-mcp |
|---|---|
| Publisher | GitHub account cpenniman12 |
| How the name is verified | Name verified via GitHub account cpenniman12. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | pypi text2sql-mcp 0.1.2 (stdio) |
| Version | 0.1.2 |
| Published | |
| Last updated | |
| Source repository | https://github.com/cpenniman12/text2sql-mcp |
| Website | None linked |
| Category | Databases & data (assigned by keyword rule, not by hand) |
Related servers in Databases & data
- QueryWeaver4/4An MCP server for Text2SQL: transforms natural language into SQL…
- MCP Database Server4/4MCP server for SQLite, PostgreSQL, and MySQL with natural language…
- schemacrawler-ai4/4Enables natural language schema queries — explore tables, keys,…
- Tabellum7/7MCP bridge to the Tabellum database client: schema, reads, SQL…
- redash-mcp7/7Connect Redash to Claude -- query data, manage dashboards, and run…
- mcp-tool-factory7/8Generate MCP servers from natural language, OpenAPI specs, or…