Skip to content
Agentmart
Submit a tool

text2sql

Ask any SQL database in natural language.

Connector by cpenniman12 · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 1
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/cpenniman12-text2sql-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
1 read · 0 write · 0 deleteRead-only
Secrets
2 (API keys, tokens or passwords)
Install scripts
Not scanned yet
Runs as
Python package

Tools by what they do 1

Read from the source code; the running server may list different tools.

Read 1 · Look things up without changing anything.

  • query

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • ANTHROPIC_API_KEY
  • OPENAI_API_KEY

Other settings (environment variables or headers).

  • TEXT2SQL_DATABASE_URL
  • TEXT2SQL_MODEL

Tools (1)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • query

    Ask the database a natural-language question. The agent explores the schema, writes SQL, executes it, and self-corrects on errors before returning. Read-only — only SELECT-style statements. Args: question: The natural-language question, e.g. "top 5 customers by revenue". max_rows: Cap on rows returned in `data`. Defaults to 100. Returns: dict with: sql: the final verified SQL data: list of row dicts (capped at max_rows) error: error message if execution failed, else None row_count: number of rows in `data` tool_calls_made: how many SQL…

Signals

Stars
1
Forks
0
Open issues
0
Weekly downloads
29
Last commit
Aug 2, 2026 (2 months ago)
Last release
Jun 28, 2026 (4 months ago)
Last package publish
Jun 28, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.cpenniman12/text2sql-mcp
Version
0.1.2
Auth
API key
Packages
pypi text2sql-mcp
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 25, 2026
Cite this page

text2sql MCP server. Agent Mart. https://agentmart.dev/connectors/cpenniman12-text2sql-mcp (last updated 2026-10-25)