Skip to main content

Cuba Memorys

io.github.LeandroPG19/cuba-memorys

v0.24.0Updated Aug 16, 2026stdio · npmstdio · PyPI

Persistent memory MCP server. 28 tools, BM25+MMR+OOD retrieval, tamper-evident audit, code graph.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add cuba-memorys -e 'DATABASE_URL=<your-database-url>' -- npx -y [email protected]

Configuration

10 settings.

  • DATABASE_URL
    Env var· required
    PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain)
  • ANTHROPIC_API_KEY
    Env var· optional· secret
    API key for AnthropicApiJudge (only used when feature 'anthropic-api' is built in).
  • CUBA_PROJECT_FILTER
    Env var· optional
    Set to 'off' to disable v0.8 project scoping filters (admin/debug only).
  • CUBA_SYNC_DIR
    Env var· optional
    Directory used by cuba_sync export/import (default ./.cuba-memorys/).
  • CUBA_JUDGE
    Env var· optional
    cuba_juez backend selector: claude_cli | anthropic_api | heuristic | auto (default auto).
  • CUBA_JUEZ_CLI
    Env var· optional
    Subprocess CLI used by ClaudeCodeJudge (default 'claude').
Show 4 more
  • CUBA_JUEZ_MODEL
    Env var· optional
    Model name passed to the judge backend (default 'claude-haiku-4-5').
  • CUBA_REM_RELATION_BATCH
    Env var· optional
    Isolated entities the REM cycle scans for relations per run (default 5, 0 disables).
  • CUBA_RERANKER_PATH
    Env var· optional
    Directory holding the bge-reranker ONNX model; enables cross-encoder reranking (+93% nDCG on GPU).
  • CUBA_RERANK_FIXED_SHAPE
    Env var· optional
    Pad reranker batches to a constant 512 tokens. Defaults on for GPU builds, off on CPU.

Listed in the official MCP Registry since Aug 16, 2026. Mirrored daily; last checked Nov 26, 2026.