# NLSQL

> Use this tool when you need to convert natural language queries to SQL, allowing users to interact with databases like SQLite, PostgreSQL, and MySQL without manual SQL writing. It solves problems for data analysts, developers, and AI assistants by providing AI-powered schema analysis, query validation, and safe execution. With both CLI and programmatic interfaces, NLSQL takes natural language input and outputs executable SQL queries, making it ideal for applications requiring seamless database interaction.

Canonical page: https://skillsregistry.net/skills/tushar-badhwar-nlsql  
JSON: https://api.skillsregistry.net/v1/skills/tushar-badhwar-nlsql

## Description

This Node.js wrapper for the NLSQL MCP Server, developed by Tushar Badhwar, provides AI-powered natural language to SQL query conversion using OpenAI and CrewAI multi-agent systems. Built as a bridge to the underlying Python implementation, it supports SQLite, PostgreSQL, and MySQL databases with features including AI-powered schema analysis, query validation, safe execution with configurable limits, and a built-in NBA sample database for testing. The implementation offers both CLI and programmatic interfaces with automatic Python dependency management, Claude Desktop integration, and comprehensive database management tools, making it valuable for data analysts, developers, and AI assistants who need to interact with databases using natural language without writing SQL manually.

## Trust

- **Trust score (0–1):** 0.61
- **Verification tier:** scanned
- **Last scanned:** 2026-09-02

## Facts

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

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/tushar-badhwar-nlsql)
- **Repository:** <https://github.com/tushar-badhwar/nlsql-mcp-server-npm>

## 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": "tushar-badhwar-nlsql"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/tushar-badhwar-nlsql` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/tushar-badhwar-nlsql/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
