The difference
Most text-to-SQL tools generate SQL and hope for the best. Here is what NLQueries does instead.
01
Use ask to generate and validate SQL without executing it, or query to run it directly. Either way, you always see the exact SQL that was produced.
02
NLQueries builds a YAML knowledge base from your actual query history, not just static schema introspection. It learns how your team refers to your data and which joins matter.
03
Ingest PDFs, Word docs, Excel sheets, Notion pages, or Confluence spaces alongside your database. Ask a question that spans both, and get one coherent answer.
04
NLQueries exposes a full MCP server. Point Claude Desktop, Cursor, or any MCP-compatible client at it and query your database from the assistant you already use.
Capabilities
Storage
PostgreSQL, MySQL, Snowflake, BigQuery, Redshift, SQL Server / Azure SQL, and DuckDB. Register once via nlqueries connect, then reference by alias.
Ingestion
PDF, Word (.docx), Excel (.xlsx), Notion pages, and Confluence spaces. Documents and schema live in the same knowledge base.
Intelligence
A YAML file that grows with real usage: schema, relationships, column descriptions, and common query patterns. Editable by hand or updated automatically.
Safety
nlqueries ask validates SQL without touching your database. nlqueries query executes it. You choose which one to run.
Performance
Questions with cosine similarity of 0.97 or higher against a prior question skip the LLM and the database round-trip, typically answering in under 50ms.
Integration
Exposes a full Model Context Protocol interface. Claude Desktop, Cursor, and any MCP-compatible client can query your database as a native tool call.
Observability
nlqueries kb-stats shows which tables and columns are well-represented in the knowledge base and which need enrichment.
Developer
nlqueries query "..." in the terminal. from nlqueries.orchestrator import MultiAgentOrchestrator in your code. Both first-class.
Get started
Pick whichever fits your workflow. Full setup guide in the docs.
License
nlqueries-core is released under the Business Source License 1.1 (BSL 1.1). Here is exactly what that means:
BSL lets us develop the project sustainably while keeping the source fully readable and auditable from day one. Read the LICENSE file directly before relying on this summary for a production decision.
Source is public and readable now
You can read, audit, fork, and run the code for development and evaluation immediately.
Production use is permitted, with one carve-out
You may run NLQueries in production. The one thing you can't do is offer it to third parties as a hosted or managed service. Individual and non-commercial self-hosted use is unrestricted.
Converts to Apache 2.0 on June 4, 2030
On the change date, or the fourth anniversary of a given version's release (whichever comes first), the license converts to Apache 2.0 automatically. No action required on your part.
Core vs. Enterprise
Enterprise adds team infrastructure on top of it, not features held back from Core.
Feature
Core
open source
Enterprise
proprietary
Enterprise only
Enterprise pricing on request. sales@nlqueries.com