# text2sql-mcp

> Use this tool when you need to query SQL databases using natural language, enabling effortless exploration of database schemas and generation of accurate SQL queries. It solves problems of complex query formulation and error correction, providing a user-friendly interface for MCP-compatible assistants. The tool accepts natural language inputs and outputs executable SQL queries, ideal for use cases where ease of database interaction is crucial.

Canonical page: https://skillsregistry.net/skills/cpenniman12-text2sql-mcp  
JSON: https://api.skillsregistry.net/v1/skills/cpenniman12-text2sql-mcp

## Description

Enables natural language querying of SQL databases by allowing the agent to explore schema, write SQL, and self-correct errors. It integrates with MCP-compatible assistants like Claude Desktop or Cursor.

## Trust

- **Trust score (0–1):** 0.70
- **Verification tier:** verified
- **Last scanned:** 2026-08-31

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-08-31

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/e9z07doqgt)
- **Repository:** <https://github.com/cpenniman12/text2sql-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "cpenniman12-text2sql-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/cpenniman12-text2sql-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/cpenniman12-text2sql-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
