Cuba Memorys logo

Cuba Memorys

Persistent MCP memory for coding agents with PostgreSQL, hybrid retrieval, audits, and a knowledge graph.

Install Cuba Memorys

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cuba-memorys": {
      "command": "uvx",
      "args": [
        "memory-industry"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx memory-industry

Process exited before answering initialize.

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

The cuba-memorys MCP server gives coding agents persistent memory backed by PostgreSQL and pgvector. It exposes 31 MCP tools, including hybrid retrieval using lexical search, BM25, MMR, and out-of-distribution detection, plus knowledge-graph and audit capabilities. Install it through PyPI or npm, then run it over stdio or as a shared loopback HTTP daemon. Reach for it when agents need codebase context to persist across sessions rather than relying only on the current conversation.

Use cases

  • Persist codebase facts between agent sessions
  • Search stored project knowledge with hybrid retrieval
  • Query a knowledge graph about a codebase
  • Audit and verify stored claims
  • Share one memory daemon across editor clients

Key features

  • 31 MCP tools
  • PostgreSQL and pgvector storage
  • BM25, semantic, MMR, and OOD retrieval
  • Knowledge graph support
  • CFR-21 audit capabilities
  • stdio and loopback HTTP modes

Security & health

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

Not checked yetLast checked

We have not completed a health check for this listing yet.

15/39 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · memory-industry (PyPI)

Adoption & maintenance

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

GitHub stars30Stargazers on the source repository.
Last commit18d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Cuba Memorys works

What cuba-memorys MCP server does

The cuba-memorys MCP server provides long-term memory for AI coding agents. It stores information in PostgreSQL with pgvector and exposes the data through MCP tools. The project is now named MemoryIndustry, but the former cuba-memorys package name, command, and cuba_* MCP tool names remain available.

Its memory model includes a searchable knowledge graph, persistent records, procedural memory, and claim verification. The repository describes 31 MCP tools, or 32 when CUBA_DOCS=1 is enabled. It also provides 25 CLI commands for setup, diagnostics, model management, serving, and related administration.

This fits the Knowledge & Memory category for agents that need information to survive across coding sessions. It is intended for local or shared deployments rather than a transient, in-process conversation store.

How it works

A default installation provisions a PostgreSQL 18 container with the pgvector extension through Docker and initializes the schema on first use. A user-supplied PostgreSQL instance is also supported when it has the vector and pg_trgm extensions.

Retrieval can combine lexical search, BM25 ranking, semantic embeddings, maximal marginal relevance, and out-of-distribution detection. Without an embedding model, the system uses deterministic hash-based embeddings; lexical and BM25 search continue to work, but semantic similarity is not available. Optional models provide embeddings, natural-language inference, and reranking.

The server can run as a separate stdio process for each MCP client or as one HTTP daemon shared by multiple clients. The HTTP mode listens on loopback by default and exposes /mcp plus a /health endpoint. A client identifier header keeps sessions separate when several editor windows use the same daemon.

Setup and configuration

Install the current package with pip install memory-industry or npm install -g memory-industry. The previous cuba-memorys package name is also supported, and the cuba-memorys command remains an alias. Docker must be running for the automatic PostgreSQL setup.

For clients such as Cursor, Windsurf, VS Code, and Zed, configure an MCP entry whose command is memory-industry or cuba-memorys. The DATABASE_URL variable is optional when using the Docker-managed database. Set it to a PostgreSQL connection string to use an existing database.

Run cuba-memorys models embed or cuba-memorys models all to install models. Model files are stored under ~/.cache/cuba-memorys/. cuba-memorys doctor checks database extensions and model availability.

Tools and capabilities

  • Store and retrieve persistent agent memory.
  • Search memory with lexical, BM25, semantic, and diversified retrieval methods.
  • Query and reason over a knowledge graph.
  • Verify claims with audit-oriented workflows, including CFR-21 support.
  • Use embeddings, reranking, and NLI models when installed.
  • Serve MCP over stdio or shared loopback HTTP.

Limitations and notes

Semantic retrieval depends on installed models. Hash-based fallback embeddings are deterministic but do not represent meaning. Model loading can require several gigabytes of memory when embeddings, reranking, and NLI are enabled.

The HTTP daemon exposes the graph without authentication by default, so a non-loopback bind requires CUBA_HTTP_TOKEN; the token must be at least 32 characters on a routable address. The project supports PostgreSQL 18 and requires Docker for its automatic database provisioning path. The former name, cuba-memorys, refers to the same daemon now distributed as MemoryIndustry.

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 Cuba Memorys

cuba-memorys is an MCP server that connects AI coding agents to persistent memory stored in PostgreSQL with pgvector. Its main tools support hybrid search, knowledge-graph access, claim verification, procedural memory, and related memory operations. The project is now distributed as MemoryIndustry, while the cuba-memorys command and tool names remain available.

Install it with `pip install memory-industry` or `npm install -g memory-industry`; the older `cuba-memorys` package name also works. Then add `memory-industry` or `cuba-memorys` as the MCP command. Docker must be running because the default first run provisions PostgreSQL 18 with pgvector.

Yes, cuba-memorys works with Cursor through an MCP configuration whose command is `memory-industry` or `cuba-memorys`. The README also names Windsurf, VS Code, and Zed. No `DATABASE_URL` is needed when the server uses its Docker-managed PostgreSQL database.

Yes, cuba-memorys can use an existing PostgreSQL database by setting `DATABASE_URL` to its connection string. The database needs the `vector` and `pg_trgm` extensions. The `doctor` command checks whether the required database components are available.

Run `cuba-memorys serve`, which listens on `127.0.0.1:8787` by default, or provide another address and port. Configure clients with the daemon's `/mcp` URL and give each client a distinct `Mcp-Client-Id`. Set `CUBA_HTTP_TOKEN` before binding beyond loopback.

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 PreviewCuba Memorys AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cuba-memorys?style=directory)](https://allmcps.com/mcp/cuba-memorys)
HTML Embed
<a href="https://allmcps.com/mcp/cuba-memorys"><img src="https://allmcps.com/api/badge/cuba-memorys?style=directory" alt="Cuba Memorys on AllMCPs" /></a>