Nlqdb — analytical memory for AI agents logo

Nlqdb — analytical memory for AI agents

Query Postgres or Cloudflare D1 in plain English through an MCP server built for analytical agent memory.

Install Nlqdb — analytical memory for AI agents

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nlqdb-analytical-memory-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@nlqdb/mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio nlqdb-analytical-memory-for-ai-agents -- npx -y @nlqdb/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @nlqdb/mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

nlqdb — analytical memory for AI agents connects an MCP client to Postgres or Cloudflare D1 so agents can query real data in plain English. It translates requests into SQL and supports analytical operations such as grouping, joins, and aggregations, rather than only retrieving stored text. Use the hosted MCP endpoint for browser-based OAuth, or run the published local package with npx and an MCP key. It fits agents that need database-backed context, while responses should be checked because natural-language-to-SQL accuracy is still improving.

Use cases

  • Ask an agent questions over operational Postgres data
  • Give an agent analytical memory with joins and aggregations
  • Inspect generated SQL before using database answers
  • Connect a headless MCP host through the local npm package

Key features

  • Natural-language database queries
  • Postgres and Cloudflare D1 connectivity
  • SQL generation and execution
  • Joins, grouping, and aggregations
  • Confidence signals and returned SQL
  • Hosted and local MCP modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 114d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @nlqdb/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads551Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Nlqdb — analytical memory for AI agents works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Nlqdb — analytical memory for AI agents

nlqdb — analytical memory for AI agents is an MCP server that connects AI agents to Postgres or Cloudflare D1 through nlqdb. Its main tools let agents ask questions in plain English and use a real database for analytical memory, including grouping, joins, and aggregations rather than simple text recall.

Install the local server with `npx -y @nlqdb/mcp` and provide an `sk_mcp_*` MCP key. Alternatively, connect to the hosted endpoint at `mcp.nlqdb.com/mcp` using browser OAuth, or install the nlqdb marketplace plugin in Claude Code.

Use the published `@nlqdb/mcp` package with an `sk_mcp_*` MCP key. This local stdio route is intended for headless hosts that cannot complete the browser-based OAuth approval used by the hosted MCP endpoint.

Yes. nlqdb can attach to Cloudflare D1 as well as Postgres, then handle natural-language requests that require operations such as joins, grouping, and aggregation.

Review the answers before relying on them because natural-language-to-SQL accuracy is still improving. Each response includes the SQL that ran and a confidence signal, which helps an agent or developer inspect uncertain results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNlqdb — analytical memory for AI agents AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nlqdb-analytical-memory-for-ai-agents?style=directory)](https://allmcps.com/mcp/nlqdb-analytical-memory-for-ai-agents)
HTML Embed
<a href="https://allmcps.com/mcp/nlqdb-analytical-memory-for-ai-agents"><img src="https://allmcps.com/api/badge/nlqdb-analytical-memory-for-ai-agents?style=directory" alt="Nlqdb — analytical memory for AI agents on AllMCPs" /></a>