# nlp2sql MCP server

> Converts natural language questions into SQL queries using a Python DSL with support for multiple LLMs and databases like PostgreSQL and Redshift.

- Repository: https://github.com/luiscarbonel1991/nlp2sql
- Page: https://hostedmcp.org/servers/luiscarbonel1991/nlp2sql
- Transport: —
- Stars: 8
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `NLP2SQL_DEFAULT_DB_URL` | no | no |  |
| `OPENAI_API_KEY` | no | no |  |

## FAQ

### Which LLM providers are supported?

The library has built-in support for OpenAI, Anthropic, and Gemini, but you can also pass your own AIProviderPort.

### What databases can I connect to?

PostgreSQL and Amazon Redshift are built-in, and you can register additional databases using a SchemaRepositoryPort implementation.
