# nlqdb — analytical memory for AI agents [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/nlqdb/nlqdb  
**GitHub Stars:** 3  
**npm Downloads (last month):** 551  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nlqdb-analytical-memory-for-ai-agents

## Description
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "nlqdb-analytical-memory-for-ai-agents": {
    "command": "npx",
    "args": ["-y","@nlqdb/mcp"]
  }
}
```

## Documentation

## What nlqdb — analytical memory for AI agents does

nlqdb gives AI agents an analytical memory backed by a real database. Instead of limiting memory to text recall, it lets an agent ask questions that require database operations such as filtering, grouping, joining related records, and calculating aggregates. The service connects to a Postgres or Cloudflare D1 database that you already run.

The MCP server is one part of a broader nlqdb product that also exposes an HTTP API, a TypeScript SDK, a CLI, and web elements. For an agent integration, the relevant surfaces are the hosted MCP endpoint and the local `@nlqdb/mcp` package.

## How it works

An MCP client sends a natural-language request to nlqdb. The service infers the database schema, produces SQL, executes the query, and returns the result to the agent. Responses include the SQL that was run and a confidence signal, giving developers a way to inspect the generated query and identify uncertain answers.

The hosted endpoint is available at `mcp.nlqdb.com/mcp`. A local stdio server can be started with `npx -y @nlqdb/mcp`. Other nlqdb surfaces can create or insert data and run SQL, but the MCP package is presented primarily as the agent-facing analytical-memory layer.

## Setup and configuration

Claude Code can install the hosted server and its memory skills through the nlqdb marketplace plugin:

```text
/plugin marketplace add nlqdb/nlqdb
/plugin install nlqdb-memory@nlqdb
```

Other MCP hosts can connect through a one-time browser OAuth approval. Headless environments can use the local npm package with an `sk_mcp_*` MCP key instead. The package is published to npm, so no repository build is required for the local route.

The project also provides an MCP setup guide, a hosted product, and a CLI. Database setup begins by describing the database at nlqdb.com; the resulting product flow can provide an API key for other nlqdb integrations.

## Tools and capabilities

- Query Postgres or Cloudflare D1 using natural-language requests.
- Translate agent questions into SQL and execute the resulting query.
- Support analytical questions involving joins, grouping, and aggregation.
- Return the executed SQL and a confidence signal with each response.
- Connect through either the hosted MCP endpoint or a local stdio package.

## Limitations and notes

The project is early and openly developed. Natural-language-to-SQL accuracy is still being improved, so an answer can be wrong even when a query executes successfully. Review the returned SQL and confidence signal before relying on results for consequential work.

The source is available under FSL-1.1-ALv2. It is free to self-host for non-competing use, and the license converts to Apache 2.0 two years after each release. Hosted premium model access, bring-your-own model keys, and other product capabilities depend on the selected nlqdb plan or surface.

_Full upstream README: https://allmcps.com/mcp/nlqdb-analytical-memory-for-ai-agents/readme_

