MCP directory
CM

Cuba Memorys

by github.com/LeandroPG19 · v0.24.0 · updated Aug 16, 2026

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

npmPyPI

Run it locally

Install the package and point your AI client at it.

Environment variables

  • DATABASE_URLrequired

    PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain)

  • CUBA_PROJECT_FILTER

    Set to 'off' to disable v0.8 project scoping filters (admin/debug only).

  • CUBA_SYNC_DIR

    Directory used by cuba_sync export/import (default ./.cuba-memorys/).

  • CUBA_JUDGE

    cuba_juez backend selector: claude_cli | anthropic_api | heuristic | auto (default auto).

  • CUBA_JUEZ_CLI

    Subprocess CLI used by ClaudeCodeJudge (default 'claude').

  • CUBA_JUEZ_MODEL

    Model name passed to the judge backend (default 'claude-haiku-4-5').

  • ANTHROPIC_API_KEYsecret

    API key for AnthropicApiJudge (only used when feature 'anthropic-api' is built in).

  • CUBA_REM_RELATION_BATCH

    Isolated entities the REM cycle scans for relations per run (default 5, 0 disables).

  • CUBA_RERANKER_PATH

    Directory holding the bge-reranker ONNX model; enables cross-encoder reranking (+93% nDCG on GPU).

  • CUBA_RERANK_FIXED_SHAPE

    Pad reranker batches to a constant 512 tokens. Defaults on for GPU builds, off on CPU.

PyPI

uvx cuba-memorys==1.26.0

Environment variables

  • DATABASE_URLrequired

    PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain)

More from github.com/LeandroPG19

More MCP servers