Converts natural language questions into validated SQL and document answers with multi-database and document support via an MCP server.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Nlqueries.
NLQueries Core is an open-source natural language to SQL engine โ see nlqueries.com. It turns plain-English questions into validated SQL, builds a self-updating YAML knowledge base from your schema and query history, and exposes everything as an MCP server your AI assistant can call directly. It also answers questions from your documents (PDF, Word, Excel, Notion, Confluence) and can blend both in a single hybrid answer.
| Capability | Description |
|---|---|
| Database connectors | PostgreSQL, MySQL, Snowflake, BigQuery, Redshift, SQL Server / Azure SQL, DuckDB, SQLite โ plus a generic SQLAlchemy connector for any other SQLAlchemy-reachable database, driven by a connection URL |
| Document connectors | PDF, Word, Excel, Notion, Confluence โ ask questions over ingested documents with citations |
| Query pipeline | Filter, cluster, and parameterize query history into reusable QueryCapsule templates |
| Knowledge base | Auto-generated YAML schema + capsule file, with coverage reporting via kb-stats |
| Multi-agent orchestration | Routes each question to a SQL agent, document agent, or both in parallel (hybrid) |
| Conversational follow-ups | Carries context across questions so a follow-up like "and by region?" resolves against the previous query โ on by default in nlqueries query, reset with --new-session |
| Semantic cache | Returns previously-answered similar questions in under 50 ms, no LLM or DB round-trip |
| Embedding daemon | Keeps the embedding model resident in memory โ ~10 ms per call instead of ~9 s |
| LLM client | Anthropic, OpenAI, Amazon Bedrock, or any LiteLLM-supported provider |
| MCP server | Query execution and schema/knowledge lookup exposed as MCP tools for Claude, Cursor, etc. |
| CLI | nlqueries (or the shorter nlq alias) โ connect, build, query, and inspect from your terminal |
See docs/architecture.md (or read online) for how these pieces fit together.
Prerequisite: Python 3.11+.
Pulls the published nlqueries/core image from Docker Hub โ no clone required, just the compose file:
Create a .env file next to it with at least one LLM key:
Then start the stack:
This pulls nlqueries/core:latest and starts it alongside Qdrant (:6333), with the MCP server on :8080. Run CLI commands against the running stack from a second terminal:
Optional extras for specific connectors:
No Docker required โ for contributing, or to run against unreleased changes:
See CONTRIBUTING.md for linting and test commands.
Follow-up context is on by default; pass --new-session to start fresh or
--no-session to disable it for a one-off question.
Full walkthrough: docs/getting-started.md (or read online).
| Doc | Covers |
|---|---|
| docs/getting-started.md (or read online) | Step-by-step setup and your first query |
| docs/cli-reference.md (or read online) | Every command and flag |
| docs/connectors.md (or read online) | Database and document connector setup, per-connector notes and caveats |
| docs/configuration.md (or read online) | Environment variables |
| docs/troubleshooting.md (or read online) | Common warnings and errors explained |
| docs/qdrant-setup.md (or read online) | Setting up Qdrant (required for embeddings, semantic cache, document search) |
| docs/mcp-authentication.md (or read online) | Authenticating the MCP server โ required to serve it over a network |
| docs/architecture.md (or read online) | Module layout and request flow |
See CONTRIBUTING.md. All contributors must sign the CLA before a PR can be merged โ see CONTRIBUTOR_LICENSE_AGREEMENT.md.
Business Source License 1.1 โ each release converts to Apache 2.0 four years after its release date.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/nlqueries-nlqueries)<a href="https://allmcps.com/mcp/nlqueries-nlqueries"><img src="https://allmcps.com/api/badge/nlqueries-nlqueries?style=directory" alt="Nlqueries on AllMCPs" /></a>