servers/ database/ text2sql
text2sql icon

text2sql

Unverified Claim & verify → Database

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

View on GitHub ↗
Overview Installation

Overview

text2sql is a Model Context Protocol server that lets you query any SQL database using natural language. The agent automatically explores your schema, generates SQL queries, and self-corrects to give you accurate results without writing code yourself.

It runs locally via the Python package text2sql-mcp, installed through uvx text2sql. You'll need to provide TEXT2SQL_DATABASE_URL as an environment variable to connect to your database, and an API key for authentication. The latest release is v0.1.2 under the MIT license, with source code available at cpenniman12/text2sql-mcp on GitHub.

text2sql belongs in the Database category on mcp.site and works with MCP clients including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and Zed. If you maintain this project, claim your listing to verify ownership and keep information up to date.

▸PyPI package — text2sql-mcp · MCP over stdio
▸Credentials — Requires TEXT2SQL_DATABASE_URL
▸Open source — MIT license · cpenniman12/text2sql-mcp

Installation

// claude_desktop_config.json
{
  "mcpServers": {
    "text2sql": {
      "command": "uvx",
      "args": [
        "text2sql-mcp"
      ],
      "env": {
        "TEXT2SQL_DATABASE_URL": "<text2sql-database-url>"
      }
    }
  }
}

Requires TEXT2SQL_DATABASE_URL

Related servers

SM
Supabase MCP
Database Remote

Manage Supabase projects, databases, auth, storage, and SQL workflows from AI agents.

★ 9.8k Updated 9h ago →
ME
Medplum
Database Remote

FHIR-native healthcare data platform tools for AI agents.

★ 2.5k Added 2 weeks ago →
RD
RE Data Refinery
Database

Clean, join, and reshape datasets with natural-language steps.

Added 13 hours ago →
EH
EOSL.ai — Hardware End-of-Life Database
Database Remote

Hardware end-of-life dates by part number, each linked to the vendor's own bulletin.

Added 1 month ago →
FI
Fincontext
Database Remote

Read-only bank & investment accounts via Plaid: balances, holdings, transactions, SQL analytics.

Added 1 month ago →
Dbmcp icon
Dbmcp
Database

Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention.

★ 30 Added 1 month ago →
>_ esc
↑↓ navigate↵ openesc close