Cuba MCP Server

Persistent memory MCP server. 25 tools, BM25+MMR+OOD retrieval, CFR-21 audit, knowledge graph.

Local serverstdio

What is the Cuba MCP Server?

Persistent memory MCP server. 25 tools, BM25+MMR+OOD retrieval, CFR-21 audit, knowledge graph.

The short version

Written in Rust. Backed by PostgreSQL + pgvector. 28 MCP tools (29 with CUBA_DOCS=1), 19 CLI commands, and every number below measured on a benchmark that — as of v0.12 — actually measures what it claims to. (The previous one did not. See Measured.)

The tools it exposes

The server publishes 1 tool. What each one is for:

  • Retrieval — Hybrid RRF fusion (k=60, Cormack 2009) over three signals — full-text, BM25 (ts_rank_cd), and pgvector HNSW — with entropy-routed weighting that

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Cuba MCP Server

{
  "mcpServers": {
    "cuba-memorys": {
      "command": "npx",
      "args": ["-y", "cuba-memorys"],
      "env": {
        "DATABASE_URL": "your-value",
        "CUBA_HTTP_TOKEN": "your-value",
        "ORT_DYLIB_PATH": "your-value",
        "CUBA_RERANKER_PATH": "your-value",
        "ONNX_MODEL_PATH": "your-value",
        "CUBA_NLI_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DATABASE_URLEndpoint or connection string the server talks to.Yes
CUBA_HTTP_TOKENCredential the server authenticates with.Yes
ORT_DYLIB_PATHFilesystem location the server is allowed to use.Optional
CUBA_RERANKER_PATHFilesystem location the server is allowed to use.Optional
ONNX_MODEL_PATHFilesystem location the server is allowed to use.Optional
CUBA_NLI_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Cuba to Retrieval.”

Frequently asked questions

Persistent memory MCP server. 25 tools, BM25+MMR+OOD retrieval, CFR-21 audit, knowledge graph. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.