Natural Language SQL
github.com
- Free plan
- macOS
- Linux
- Web
- API
- Self-hosted
What Natural Language SQL is
Natural Language SQL is a free, GPL-3.0 open-source application that converts plain-English questions into SQL, checks and runs the query, then streams results. It connects to PostgreSQL and MySQL and can query multiple databases of the same type in parallel. Hybrid retrieval using BM25 and sentence-transformer vectors selects schema context relevant to each question. Users can inspect and edit generated SQL before it runs, while the interface shows progress through query stages. Results can be sorted, paginated at 50 rows per page, downloaded as CSV or JSON, or copied as tab-separated text. SELECT queries receive a default limit, explicit result counts are capped at 1,000 rows by default, and queries time out after 30 seconds by default. INSERT, UPDATE, and DELETE are allowed by default, with warning banners. Ollama runs locally by default; optional OpenAI, Gemini, and Groq providers receive the question, relevant schema portion, and SQL context. The project says it has no telemetry and keeps session data in memory rather than writing it to disk. The recommended Docker setup needs Docker 20.10 or later with Compose v2 and about 10 GB of free disk space; its first run downloads an approximately 5 GB model.
Who it suits
It suits people who want to query PostgreSQL or MySQL with natural-language questions and review SQL before execution. The local Ollama default may suit users who want questions, schema, and generated SQL to stay on their machine.
Good to know, and what to watch
- Supports PostgreSQL and MySQL.
- Users can review and edit SQL before execution.
- Results can be downloaded as CSV or JSON.
- Ollama runs locally by default.
- The project says it has no telemetry.
- INSERT, UPDATE, and DELETE are allowed by default.
- Docker setup needs about 10 GB of free disk space.
- First Docker run downloads an approximately 5 GB model.
- Default query timeout is 30 seconds.
Plans
Every plan and priceNatural Language SQL Engine
Open source
Getting started
- Open the project website on GitHub
- Install the recommended Docker setup with Docker 20.10 or later and Compose v2
- Reserve about 10 GB of free disk space
- Allow the first run to download the approximately 5 GB model
- Connect PostgreSQL or MySQL databases
- Choose local Ollama or opt into OpenAI, Gemini or Groq
- Ask a question, review or edit the SQL, then execute it
Limits to check
SELECT queries receive a default LIMIT, explicit result counts are capped at 1,000 rows by default, and execution times out after 30 seconds. INSERT, UPDATE and DELETE are allowed by default, although warning banners appear; the project recommends a read-only database user to block writes.
The Club's review
Overview
Natural Language SQL is an open-source engine that turns everyday database questions into SQL and returns query results. It is best for developers and teams comfortable running their own software who want to inspect generated queries and keep AI processing local. Its privacy and review controls are useful, but its sizable installation and write-enabled defaults demand care.
Key features
Hybrid schema retrieval combines BM25 search and sentence-transformer vectors to find relevant database context. That can spare users from assembling schema details for each question, though the README’s reported 52.32% execution accuracy on Spider dev is a reason to verify generated SQL rather than trust it blindly.
Users can review and edit SQL before execution, with progress streamed through the query stages. Query explanations, sorting, 50-row pagination, CSV and JSON downloads, and tab-separated copying make results easier to inspect and share. SELECT queries receive a default limit; explicit result counts are capped at 1,000 rows, and execution times out after 30 seconds by default.
INSERT, UPDATE, and DELETE are allowed by default, with warning banners. Those warnings do not prevent changes, so the project recommends using a read-only database account when writes must be impossible.
Ollama runs locally by default: questions, schema, and generated SQL remain on the user's machine, and the project says it collects no telemetry. Opting for OpenAI, Gemini, or Groq sends the question, relevant schema, and SQL context to that provider; database passwords and result rows are excluded. Passwords and cloud API keys are encrypted at rest, redacted from logs, and masked in API responses. Query results, schema metadata, and query history remain in memory for the session rather than being written to disk by the application.
PostgreSQL and MySQL are supported, including parallel queries across multiple databases of the same type. The recommended Docker installation requires Docker 20.10 or later with Compose v2 and about 10 GB of free disk space; its first run downloads an approximately 5 GB model. That is a substantial local footprint, especially for a tool whose main appeal is straightforward question-to-query work.
Pricing
The Natural Language SQL Engine costs nothing under the GPL-3.0 open-source license, for local installation. There is no paid tier in this plan structure. The trade-off is that users need to provide and maintain the deployment environment, and the recommended setup has significant storage requirements.
Platforms
Natural Language SQL supports API, Linux, macOS, self-hosted, and web use. The project is listed under GPL-3.0.
Who it's for
Choose it if you can manage a local deployment, want PostgreSQL or MySQL access, and value reviewing SQL before it runs. The local Ollama option suits teams seeking to keep question and schema context on their own machine. It is a poorer fit for users who need writes blocked by the application itself, cannot spare roughly 10 GB of disk space, or want a hosted service without deployment work.
Pros and cons
- Pro: Local Ollama keeps questions, schema, and SQL on the user's machine, with no telemetry according to the project.
- Pro: Query review and editing, explanations, and result exports support validation and follow-up analysis.
- Pro: Open-source and free to install, with PostgreSQL and MySQL support and parallel querying across same-type databases.
- Con: The recommended Docker setup needs about 10 GB of free disk space and downloads an approximately 5 GB model on first run.
- Con: Write queries are enabled by default; warning banners are not a substitute for a read-only database account.
- Con: The reported benchmark accuracy does not justify treating generated SQL as reliably correct without review.
Alternatives
AI SQL Generators is the broader list to consult when comparing tools across the category. Choose QueryPlane instead if you prefer a freemium web and self-hosted option with a free tier capped at three apps, one database connection, and 50 AI prompts per month, or a $49 a month Pro plan.
Wren AI is an alternative if you want an open-source context engine for individual developers through CLI and MCP without a UI, or prefer its freemium cloud offering. Outerbase AI may suit users seeking a freemium option across web, desktop, and self-hosted platforms, with a free tier capped at five users, one base, and 10 EZQL queries per month.
Consider Text2SQL.ai if a paid product with API access is a better fit; its Pro plan includes 100 API requests per month, with additional requests at $0.05 per request. SQL Mocker offers a web-based free tier limited to 50 AI queries total and five saved projects, while NatureQuery has a free tier with 50 queries per month, one database connection, exports, and 30-day query history.
SQLer is another freemium API and web option, with a free tier of 50 NL2SQL queries per month. For another free, open-source engine intended to run in your own environment, consider mnemiq.
Verdict
Natural Language SQL is a strong fit for technically capable users who want a free, self-hosted path from natural-language questions to reviewable database queries, especially when keeping AI context local matters. Its main reasons to choose it are the local Ollama workflow and useful query inspection tools. Look elsewhere if you need write operations blocked by default or cannot accommodate the model’s storage footprint.
The verdict
Natural Language SQL provides a reviewable path from plain-English questions to database results, with local and opt-in cloud model choices. Because write queries are enabled by default, the project recommends a read-only database user to block them.
Questions people ask
What does Natural Language SQL cost?
It is free and open source under the GPL-3.0 license. The listed plan is free for a local installation.
Which databases can it connect to?
It supports PostgreSQL and MySQL, including multiple databases of the same type at once.
Which AI providers are available?
Ollama runs locally by default. OpenAI, Google Gemini and Groq are optional cloud providers.
Does it send data to the cloud?
With Ollama, questions, schema and generated SQL stay on the machine, and the project says it has no telemetry. A cloud provider receives the question, relevant schema portion and SQL context; database passwords and result rows are excluded.
How can results be exported?
Results support sorting, 50-row pagination, CSV and JSON downloads, and tab-separated copying.
What the maker publishes
- AI providers
- Ollama runs locally by default, with OpenAI, Gemini, and Groq available as opt-in cloud providers. source
- Benchmark
- The README reports 52.32% execution accuracy on Spider dev. source
- Cloud model options
- OpenAI, Google Gemini, and Groq are opt-in providers; using one sends the question, relevant schema portion, and SQL context to that provider. source
- Cloud privacy
- With an opt-in cloud provider, the question, relevant schema portion, and generated SQL context are sent to that provider; database passwords and query result rows are excluded. source
- Credential security
- Database passwords and cloud API keys are Fernet-encrypted at rest, redacted from logs, and masked in API responses. source
- Credential security
- Database passwords and cloud API keys are Fernet-encrypted on disk, redacted from logs, and masked in API responses. source
- Database integrations
- The app supports connecting to PostgreSQL and MySQL databases, including multiple databases at once. source
- Database support
- It connects to PostgreSQL and MySQL and can query multiple same-type databases in parallel. source
- Deployment
- The recommended Docker setup requires Docker 20.10 or later with Compose v2 and about 10 GB of free disk space. source
- Deployment requirements
- The recommended Docker setup requires Docker 20.10+ with Compose v2 and about 10 GB of free disk space; the first run downloads an approximately 5 GB model. source
- License
- The repository lists the project under the GPL-3.0 license. source
- License
- The repository states that the project is licensed under GPL-3.0. source
- Local AI
- Ollama runs locally by default, and the project says questions, database schema, and generated SQL stay on the user's machine with this provider. source
- Local privacy
- With the default Ollama provider, questions, schema, and generated SQL stay on the user's machine, and the app says it has no telemetry. source
- Privacy
- The project says it collects no telemetry; query results, schema metadata, and query history are held in memory for the session and are not written to disk by the application. source
- Purpose
- The engine turns plain-English database questions into SQL, validates and runs the SQL, then streams back results. source
- Purpose
- The engine turns plain-English database questions into SQL, validates and executes the query, and streams back results. source
- Query limits
- SELECT queries receive a default LIMIT, explicit result counts are capped at 1,000 rows by default, and query execution times out after 30 seconds by default. source
- Query limits
- SELECT queries receive a default LIMIT of 100, results are capped at 1,000 rows by default, and each query has a 30-second timeout by default. source
- Query workflow
- Users can review and edit generated SQL before execution, and the interface streams progress through the query stages. source
- Query workflow
- Users can inspect and edit generated SQL before execution, and receive live progress across connection, schema, AI, validation, and execution stages. source
- Results
- Results support sorting, pagination at 50 rows per page, CSV and JSON downloads, and tab-separated copying. source
- Results
- Results can be sorted and paginated, exported as CSV or JSON, or copied as tab-separated text. source
- Schema retrieval
- Hybrid retrieval combines BM25 and sentence-transformer vectors to select relevant schema context for a question. source
Checked against the maker's pages on 5 Oct 2026.