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

VariableRequiredSecretDescription
TEXT2SQL_DATABASE_URLYesNoSQLAlchemy connection URL, e.g. sqlite:///mydb.db or postgresql://user:pass@host/db
ANTHROPIC_API_KEYNoYesAnthropic API key (required if using the default Anthropic model)
OPENAI_API_KEYNoYesOpenAI API key (required when TEXT2SQL_MODEL is set to an openai:* model)
TEXT2SQL_MODELNoNoOptional LangChain model id (default: anthropic:claude-sonnet-4-6)

Checks

CheckResultDetail
Source repository linkedPasshttps://github.com/cpenniman12/text2sql-mcp
Version pinnedPassEvery package has an explicit version
Secrets requestedInfoAsks for 2 secrets: ANTHROPIC_API_KEY, OPENAI_API_KEY
Known package registryPassAll packages come from npm, PyPI, OCI, NuGet or MCPB
Namespace ownershipInfoName verified via GitHub account cpenniman12
Registry text aimed at the AIPassDescription and settings contain no hidden characters or instructions to the AI
Install scriptsPasstext2sql-mcp 0.1.2 has no setup.py; nothing runs at install
Code red flagsPassRead 4 files in text2sql-mcp 0.1.2: no obfuscation, encoded execution, credential reads or data-collection endpoints found
Text aimed at the AIPassNo 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.

Popularity6 / 40

1 GitHub stars, 18 downloads last week, no Hacker News posts found. Best two of the three, each on a log scale.

Activity11 / 25

Last push 2026-08-02, no GitHub release, 2 commits in 90 days.

Issue health8 / 15

0 closed of 0 issues, too few to judge. No data, so half marks.

Our checks20 / 20

0 warnings, each costing a fifth.

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 nameio.github.cpenniman12/text2sql-mcp
PublisherGitHub account cpenniman12
How the name is verifiedName verified via GitHub account cpenniman12. The registry ties the name prefix to that account or domain; it does not check the code.
TypeLocal: runs on your machine from a package
Packagespypi text2sql-mcp 0.1.2 (stdio)
Version0.1.2
Published
Last updated
Source repositoryhttps://github.com/cpenniman12/text2sql-mcp
WebsiteNone linked
CategoryDatabases & data (assigned by keyword rule, not by hand)

Related servers in Databases & data