MCP Catalogs
Homecuba-memorys screenshot

cuba-memorys

by LeandroPG19·22·Score 45

A sophisticated MCP server providing AI agents with persistent memory using knowledge graphs, neuroscience-inspired algorithms, and anti-hallucination techniques.

knowledge-graphai-llmdeveloper-tools
3
Forks
12
Open issues
this month
Last commit
2d ago
Indexed

Overview

Cuba-Memorys is a comprehensive MCP server that implements advanced memory features for AI agents, including a knowledge graph with typed relations, Hebbian learning, and exponential importance decay. The server offers 23 tools for memory management, hybrid search capabilities using RRF fusion, contradiction detection, and prospective memory triggers. It features a PostgreSQL backend with automatic Docker provisioning, making it easy to set up and use in various environments. The implementation demonstrates strong technical rigor with 97 tests, zero clippy warnings, and regular updates with new features like project scoping and LLM-judged contradiction resolution.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Long-term memory for AI coding assistants that persists across sessions
you:Knowledge management systems with semantic relationships and contradiction detection
you:AI agents requiring context-aware memory and prospective triggers
you:What makes Cuba-Memorys different from basic memory MCP servers?
you:How does the server handle data persistence?

When to choose this

Choose Cuba-Memorys when you need neuroscience-inspired persistent memory with advanced features like knowledge graphs, contradiction detection, and anti-hallucination grounding for AI agents.

When NOT to choose this

Not suitable if you need a simple memory solution without heavy dependencies, or if you require a non-CC BY-NC 4.0 licensed solution for commercial use.

Tools this server exposes

12 tools extracted from the README
  • cuba_alma

    CRUD entities with Hebbian boost + access tracking. Fires prospective triggers on access.

  • cuba_cronica

    Observations with semantic dedup, auto-tagging, session provenance, and contextual embedding.

  • cuba_puente

    Typed relations. Traverse walks the graph. Infer discovers transitive paths. Predict suggests missing relations.

  • cuba_ingesta

    Bulk knowledge ingestion: arrays of observations or long text with auto-classification.

  • cuba_faro

    RRF fusion search with entropy routing, temporal filters, tag filters, and score breakdown.

  • cuba_sueño

    REM sleep consolidation: stratified decay + PageRank + auto-prune + auto-merge + episode decay.

  • cuba_zafra

    Decay memories with testing effect: halflife scaled by access count frequency.

  • cuba_proyecto

    Isolate memories per project. List projects and manage project-scoped memories.

  • cuba_juez

    Escalate ambiguous-similarity observation pairs to LLM judge for contradiction resolution.

  • cuba_calibrar

    Bayesian calibration of source credibility with Beta(α,β) updates.

  • cuba_sync

    Export memories in git-friendly format or import idempotently.

  • cuba_faro

    Search with BM25 hybrid 3-way fusion, MMR diversification, and OOD abstention.

Comparable tools

mem0memory-mcppersistent-memory-mcpknowledgewise-mcp

Installation

Recommended Installation (PyPI)

pip install cuba-memorys

Claude Desktop Configuration

Add to Claude Desktop config:

{
  "mcpServers": {
    "cuba-memorys": {
      "command": "cuba-memorys"
    }
  }
}

Auto-provisioned Setup

No configuration required - the server automatically provisions a PostgreSQL database via Docker on first run. Docker must be installed and running.

Custom PostgreSQL Setup

If you already have PostgreSQL with pgvector:

{
  "mcpServers": {
    "cuba-memorys": {
      "command": "cuba-memorys",
      "env": {
        "DATABASE_URL": "postgresql://user:pass@localhost:5432/brain"
      }
    }
  }
}

FAQ

What makes Cuba-Memorys different from basic memory MCP servers?
Cuba-Memorys implements advanced features like knowledge graphs with typed relations, Hebbian learning, hybrid RRF fusion search, graph intelligence analytics, contradiction detection, and neuroscience-inspired memory consolidation algorithms that are not found in basic memory implementations.
How does the server handle data persistence?
The server uses PostgreSQL as its backend with pgvector for vector storage. It can automatically provision a Docker container with PostgreSQL on first run, or connect to an existing PostgreSQL instance. Data is maintained across sessions with various decay mechanisms and consolidation processes.

Compare cuba-memorys with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.