Skip to main content
Glama

Características

Almacenamiento principal

  • 💾 Almacenamiento persistente - SQLite con sincronización en la nube opcional (S3, R2, D1)

  • 📂 Organización jerárquica - Estructura de secciones/subsecciones con asignación automática de jerarquía

  • 📦 Exportar/Importar - Copia de seguridad y restauración con estrategias de fusión

Absorber y Linaje

  • 🧬 Absorber - Alimenta hechos; un LLM clasifica cada uno frente al almacén (duplicado/actualización/contradicción/relacionado/nuevo), omite duplicados, enlaza relaciones y consolida hechos relacionados — con vista previa dry_run

  • 🌱 Linaje de Supersesión - Las actualizaciones reemplazan conocimiento antiguo en lugar de eliminarlo; la recuperación sigue la cadena hasta la versión actual por defecto (modos follow: active, latest, full_history)

  • 🗞️ Resumen de tema - memory_digest(topic) agrupa recuerdos relevantes, tareas/problemas abiertos, aristas relacionadas e IDs de fuentes en una sola recuperación

Búsqueda e Inteligencia

  • 🔍 Búsqueda semántica - Incrustaciones vectoriales (TF-IDF, sentence-transformers, OpenAI)

  • 🎯 Consultas avanzadas - Texto completo, rangos de fechas, filtros de etiquetas (AND/OR/NOT), búsqueda híbrida

  • 🔀 Referencias cruzadas - Recuerdos relacionados enlazados automáticamente según similitud

  • 🤖 Deduplicación LLM - Encontrar y fusionar duplicados con comparación impulsada por IA

  • 🔗 Enlace de recuerdos - Aristas tipadas, aumento de importancia y detección de clústeres

Almacenamiento de documentos

  • 📄 Documentos estructurados - Almacena documentos markdown como árboles de fragmentos buscables (afirmaciones, elementos de plan, referencias, riesgos)

  • 🔒 Integridad de fragmentos - Protege contra eliminación/fusión/absorción accidental de fragmentos de documentos

  • 🔍 Búsqueda granular - Afirmaciones y hallazgos individuales son buscables semánticamente mientras el documento completo sigue siendo recuperable como una unidad

Herramientas y Visualización

  • ⚡ Automatización de recuerdos - Herramientas estructuradas para tareas, problemas y secciones

  • 🕸️ Grafo de conocimiento - Visualización interactiva con renderizado Mermaid y superposiciones de clústeres

  • 🌐 Servidor de grafo en vivo - Servidor HTTP integrado con opción de alojamiento en la nube (D1/Pages)

  • 💬 Chat con recuerdos - Panel de chat con RAG que utiliza llamadas de herramientas LLM para buscar, crear, actualizar y eliminar recuerdos mediante chat en streaming

  • 📡 Notificaciones de eventos - Sistema basado en sondeo para comunicación entre agentes

  • 📊 Estadísticas y análisis - Uso de etiquetas, tendencias e información de conexiones

  • 🧠 Información de recuerdos - Resumen de actividad, detección de obsoletos, sugerencias de consolidación y análisis de patrones con LLM

  • 📜 Historial de acciones - Rastrea todas las operaciones de memoria (crear, actualizar, eliminar, fusionar, potenciar, enlazar) con vista de línea de tiempo agrupada

Related MCP server: ClawMem MCP Server

Vista previa

Instalación

pip install memora-mcp

El paquete PyPI es memora-mcp (el paquete memora en PyPI es un proyecto no relacionado). Incluye almacenamiento en la nube (S3/R2) e incrustaciones de OpenAI listas para usar.

# Optional: local embeddings (offline, ~2GB for PyTorch)
pip install "memora-mcp[local]"

# Latest development version straight from git
pip install "git+https://github.com/agentic-box/memora.git"

El servidor se ejecuta automáticamente cuando se configura en Claude Code. Invocación manual:

# Default (stdio mode for MCP)
memora-server

# With graph visualization server
memora-server --graph-port 8765

# HTTP transport (alternative to stdio)
memora-server --transport streamable-http --host 127.0.0.1 --port 8080

Claude Code

Añade a .mcp.json en la raíz de tu proyecto:

Base de datos local:

{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": [],
      "env": {
        "MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Base de datos en la nube (Cloudflare D1) - Recomendado:

{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": ["--no-graph"],
      "env": {
        "MEMORA_STORAGE_URI": "d1://<account-id>/<database-id>",
        "CLOUDFLARE_API_TOKEN": "<your-api-token>",
        "MEMORA_ALLOW_ANY_TAG": "1"
      }
    }
  }
}

Con D1, usa --no-graph para deshabilitar el servidor de visualización local. En su lugar, usa el grafo alojado en tu URL de Cloudflare Pages (ver Grafo en la nube).

Base de datos en la nube (S3/R2) - Modo sincronización:

{
  "mcpServers": {
    "memora": {
      "command": "memora-server",
      "args": [],
      "env": {
        "AWS_PROFILE": "memora",
        "AWS_ENDPOINT_URL": "https://<account-id>.r2.cloudflarestorage.com",
        "MEMORA_STORAGE_URI": "s3://memories/memories.db",
        "MEMORA_CLOUD_ENCRYPT": "true",
        "MEMORA_ALLOW_ANY_TAG": "1",
        "MEMORA_GRAPH_PORT": "8765"
      }
    }
  }
}

Codex CLI

Añade a ~/.codex/config.toml:

[mcp_servers.memora]
  command = "memora-server"  # or full path: /path/to/bin/memora-server
  args = ["--no-graph"]
  env = {
    AWS_PROFILE = "memora",
    AWS_ENDPOINT_URL = "https://<account-id>.r2.cloudflarestorage.com",
    MEMORA_STORAGE_URI = "s3://memories/memories.db",
    MEMORA_CLOUD_ENCRYPT = "true",
    MEMORA_ALLOW_ANY_TAG = "1",
  }

Variable

Descripción

MEMORA_DB_PATH

Ruta de la base de datos SQLite local (predeterminado: ~/.local/share/memora/memories.db)

MEMORA_STORAGE_URI

URI de almacenamiento: d1://<cuenta>/<id-bd> (D1) o s3://bucket/memories.db (S3/R2)

CLOUDFLARE_API_TOKEN

Token de API para acceso a base de datos D1 (requerido para URI d1://)

MEMORA_CLOUD_ENCRYPT

Cifrar base de datos antes de subir a la nube (true/false)

MEMORA_CLOUD_COMPRESS

Comprimir base de datos antes de subir a la nube (true/false)

MEMORA_CACHE_DIR

Directorio de caché local para base de datos sincronizada en la nube

MEMORA_ALLOW_ANY_TAG

Permitir cualquier etiqueta sin validación contra lista blanca (1 para habilitar)

MEMORA_TAG_FILE

Ruta a un archivo JSON que contiene un array de etiquetas permitidas, ej. ["plan", "memora/issues"]

MEMORA_TAGS

Lista separada por comas de etiquetas permitidas

MEMORA_GRAPH_PORT

Puerto para el servidor de visualización del grafo de conocimiento (predeterminado: 8765)

MEMORA_STALE_DAYS

Días antes de que una tarea/problema abierta cuente como obsoleta en memory_insights (predeterminado: 14)

MEMORA_EMBEDDING_MODEL

Backend de incrustación: openai (predeterminado), sentence-transformers o tfidf

SENTENCE_TRANSFORMERS_MODEL

Modelo para sentence-transformers (predeterminado: all-MiniLM-L6-v2)

MEMORA_EMBEDDING_API_KEY

Clave API del proveedor de incrustación (atómica con URL base — ver abajo)

MEMORA_EMBEDDING_BASE_URL

URL base del proveedor de incrustación (atómica con clave API — ver abajo)

MEMORA_EMBEDDING_STRICT

Recomendado 1. Fallar estrictamente en errores de incrustación en lugar de TF-IDF silencioso. Sin esto, un endpoint roto sigue respondiendo mientras cada vector se convierte en una bolsa de palabras clave (cómo 756 recuerdos se degradaron sin ser notados).

OPENAI_API_KEY

Solo LLM (dedup/chat) cuando se establece MEMORA_EMBEDDING_*. Las incrustaciones recurren a esta clave solo si ambas MEMORA_EMBEDDING_API_KEY y MEMORA_EMBEDDING_BASE_URL no están configuradas

OPENAI_BASE_URL

URL base del LLM (OpenRouter, Azure, etc.). Misma regla de respaldo atómica que la clave — no es una URL de incrustación cuando usas una configuración dividida

OPENAI_EMBEDDING_MODEL

ID del modelo para el backend de incrustación de OpenAI. Debe existir en el host de incrustación (por defecto text-embedding-3-small es solo de OpenAI; Cloudflare necesita p.ej. @cf/baai/bge-m3)

MEMORA_LLM_ENABLED

Habilitar comparación de deduplicación impulsada por LLM (true/false, predeterminado: true)

MEMORA_LLM_MODEL

Modelo para comparación de deduplicación (predeterminado: gpt-4o-mini)

CHAT_MODEL

Modelo para el panel de chat (predeterminado: deepseek/deepseek-chat, recurre a MEMORA_LLM_MODEL)

AWS_PROFILE

Perfil de credenciales AWS de ~/.aws/credentials (útil para R2)

AWS_ENDPOINT_URL

Endpoint compatible con S3 para R2/MinIO

R2_PUBLIC_DOMAIN

Dominio público para URLs de imágenes R2

Memora soporta tres backends de embeddings:

Backend

Instalación

Calidad

Velocidad

openai (predeterminado)

Incluido

Alta calidad

Latencia de API

sentence-transformers

pip install memora[local]

Buena, funciona sin conexión

Media

tfidf

Incluido

Coincidencia básica de palabras clave

Rápido

Los embeddings y el LLM se configuran por separado.

Rol

Variables

LLM (deduplicación, chat)

OPENAI_API_KEY + OPENAI_BASE_URL

Embeddings

MEMORA_EMBEDDING_API_KEY + MEMORA_EMBEDDING_BASE_URL (ambas o ninguna — par atómico)

Respaldo

Si ambas MEMORA_EMBEDDING_* no están configuradas, los embeddings usan el par completo OPENAI_*

Una división parcial (solo una variable MEMORA_EMBEDDING_* configurada) es rechazada para que el secreto de un proveedor nunca se envíe a otro host.

Trampa — OpenRouter no tiene un endpoint de embeddings. El catálogo de OpenRouter es solo chat/multimodal (sin modelos de embedding). No apuntes la ruta de embeddings a OpenRouter mediante OPENAI_BASE_URL (o una URL base de MEMORA). Esa combinación devuelve 404 en cada llamada de embedding; sin MEMORA_EMBEDDING_STRICT=1, Memora recurre a TF-IDF y sigue respondiendo, por lo que el almacén se llena con bolsas de palabras clave mientras parece saludable. OpenRouter sigue siendo adecuado solo para el LLM.

Ejemplo práctico (LLM mediante OpenRouter, embeddings mediante Cloudflare Workers AI):

@cf/baai/bge-m3 tiene 1024 dimensiones. El token necesita permiso de Workers AI. Forma del endpoint:

https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1

{
  "env": {
    "MEMORA_EMBEDDING_MODEL": "openai",
    "OPENAI_API_KEY": "<openrouter-key>",
    "OPENAI_BASE_URL": "https://openrouter.ai/api/v1",
    "MEMORA_LLM_MODEL": "deepseek/deepseek-chat",
    "MEMORA_EMBEDDING_API_KEY": "<cloudflare-api-token-with-workers-ai>",
    "MEMORA_EMBEDDING_BASE_URL": "https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1",
    "OPENAI_EMBEDDING_MODEL": "@cf/baai/bge-m3",
    "MEMORA_EMBEDDING_STRICT": "1"
  }
}

Lo que hace esta corrección (sin exagerar): los embeddings y el LLM pueden usar diferentes proveedores; se rechaza una división parcial; el modo estricto convierte la degradación silenciosa en un fallo duro y con nombre.

Automático: Los embeddings y las referencias cruzadas se calculan automáticamente cuando usas memory_create, memory_update o memory_create_batch.

Se requiere reconstrucción manual cuando la huella del almacén cambia — no solo MEMORA_EMBEDDING_MODEL, sino también:

  • Endpoint de embedding (MEMORA_EMBEDDING_BASE_URL / host)

  • ID del modelo real (OPENAI_EMBEDDING_MODEL, por ejemplo, cambiando a @cf/baai/bge-m3)

  • Tipo o dimensiones del vector (bolsas TF-IDF de palabras clave vs denso 1024-d; o 384 vs 1024)

  • Almacén mixto (algunas filas densas, otras dispersas) — la similitud coseno solo comparte claves, por lo que los tipos mixtos producen 0.0 de recuperación para filas antiguas

Forma de la huella: backend|model|repr (ej. openai|@cf/baai/bge-m3|dense:1024). El valor de metadatos heredado openai solo se trata como una discrepancia.

# After changing embedding model/endpoint, rebuild all embeddings
memory_rebuild_embeddings

# Then rebuild cross-references to update the knowledge graph
memory_rebuild_crossrefs

Un servidor HTTP integrado se inicia automáticamente con el servidor MCP, sirviendo una visualización interactiva del grafo de conocimiento.

Acceso local:

http://localhost:8765/graph

Acceso remoto mediante SSH:

ssh -L 8765:localhost:8765 user@remote
# Then open http://localhost:8765/graph in your browser

Configuración:

{
  "env": {
    "MEMORA_GRAPH_PORT": "8765"
  }
}

Para deshabilitar: agrega "--no-graph" a los argumentos en tu configuración de MCP.

Características de la Interfaz de Gráfico

  • Panel de Detalles - Ver contenido de memoria, metadatos, etiquetas y memorias relacionadas

  • Panel de Línea de Tiempo - Navegar memorias cronológicamente, haz clic para resaltar en el gráfico

  • Panel de Historial - Registro de acciones de todas las operaciones con entradas consecutivas agrupadas y referencias de memoria cliqueables (memorias eliminadas mostradas como tachadas)

  • Panel de Chat - Haz preguntas sobre tus memorias usando chat LLM impulsado por RAG con respuestas en streaming y referencias cliqueables [Memory #ID]

  • Control Deslizante de Tiempo - Filtrar memorias por rango de fechas, arrastra para explorar el historial

  • Actualizaciones en Tiempo Real - El gráfico, la línea de tiempo y el historial se actualizan mediante SSE cuando las memorias cambian

  • Filtros - Desplegables de etiquetas/secciones, controles de zoom

  • Renderizado Mermaid - Los bloques de código se renderizan como diagramas

Colores de Nodos

  • 🟣 Etiquetas - Tonos púrpura por etiqueta

  • 🔴 Issues - Rojo (abierto), Naranja (en progreso), Verde (resuelto), Gris (no se arreglará)

  • 🔵 TODOs - Azul (abierto), Naranja (en progreso), Verde (completado), Rojo (bloqueado)

El tamaño del nodo refleja el número de conexiones.

Cuando usas Cloudflare D1 como tu base de datos, la visualización del gráfico se aloja en Cloudflare Pages - no se necesita servidor local.

Beneficios:

  • Acceso desde cualquier lugar (sin túnel SSH)

  • Actualizaciones en tiempo real mediante WebSocket

  • Soporte para múltiples bases de datos mediante el parámetro ?db=

  • Acceso seguro con Cloudflare Zero Trust

Configuración:

  1. Crear base de datos D1:

    npx wrangler d1 create memora-graph
    npx wrangler d1 execute memora-graph --file=memora-graph/schema.sql
  2. Desplegar Pages:

    cd memora-graph
    npx wrangler pages deploy ./public --project-name=memora-graph
  3. Configurar enlaces en el Panel de Cloudflare:

    • Pages → memora-graph → Settings → Bindings

    • Agregar D1: DB_MEMORA → tu base de datos

    • Agregar R2: R2_MEMORA → tu bucket (para imágenes)

  4. Configurar MCP con URI de D1:

    {
      "env": {
        "MEMORA_STORAGE_URI": "d1://<account-id>/<database-id>",
        "CLOUDFLARE_API_TOKEN": "<your-token>"
      }
    }

Acceso: https://memora-graph.pages.dev

Asegurar con Zero Trust:

  1. Panel de Cloudflare → Zero Trust → Access → Applications

  2. Agregar aplicación para memora-graph.pages.dev

  3. Crear política con correos electrónicos permitidos

  4. Pages → Settings → Enable Access Policy

Consulta memora-graph/ para la configuración detallada y la configuración de múltiples bases de datos.

Haz preguntas sobre tu base de conocimiento directamente desde la interfaz del gráfico. El panel de chat utiliza RAG (Generación Aumentada por Recuperación) para buscar memorias relevantes y transmitir respuestas del LLM con soporte para llamadas a herramientas.

  • Alternar mediante el icono de chat flotante en la esquina inferior derecha

  • Búsqueda semántica encuentra las memorias más relevantes como contexto

  • Respuestas en streaming con referencias cliqueables [Memory #ID] que enfocan el nodo del gráfico

  • Llamada a herramientas — el LLM puede crear, actualizar y eliminar memorias directamente desde el chat (ej., "guarda esto como una memoria", "elimina la memoria #42", "actualiza la memoria #10 con...")

  • Funciona tanto en el servidor local como en el despliegue de Cloudflare Pages

Configurar el modelo de chat:

Backend

Variable

Predeterminado

Servidor local

Variable de entorno CHAT_MODEL

Recurre a MEMORA_LLM_MODEL

Cloudflare Pages

CHAT_MODEL en wrangler.toml

deepseek/deepseek-chat

Requiere una API compatible con OpenAI (OPENAI_API_KEY + OPENAI_BASE_URL para local, secreto OPENROUTER_API_KEY para Cloudflare). El modelo de chat debe soportar el uso de herramientas (llamada a funciones).

Encuentra y fusiona memorias duplicadas usando comparación semántica impulsada por IA:

# Find potential duplicates (uses cross-refs + optional LLM analysis)
memory_find_duplicates(min_similarity=0.7, max_similarity=0.95, limit=10, use_llm=True)

# Merge duplicates (append, prepend, or replace strategies)
memory_merge(source_id=123, target_id=456, merge_strategy="append")

La Comparación LLM analiza pares de memorias y devuelve:

  • verdict: "duplicate", "similar" o "different"

  • confidence: puntuación de 0.0 a 1.0

  • reasoning: Breve explicación

  • suggested_action: "merge", "keep_both" o "review"

Funciona con cualquier API de chat compatible con OpenAI (OpenAI, OpenRouter, Azure, etc.) mediante OPENAI_BASE_URL. OpenRouter es adecuado para esta ruta LLM; no proporciona embeddings — configura los embeddings por separado (consulta Búsqueda Semántica y Embeddings).

Almacena documentos estructurados (informes de investigación, decisiones de arquitectura, autopsias) como árboles de fragmentos buscables:

# Store a markdown document — auto-parsed into typed fragments
memory_store_document(
    content="# Research Report\n\n## Evidence Table\n| Claim | Confidence |\n...",
    document_key="research/memora-enhancements-2026-04-08",
    tags=["memora/research"]
)
# Returns: {root_id: 230, fragment_count: 100, node_map: {claim: [...], plan_item: [...], ...}}

# Retrieve the full document or specific fragment types
memory_get_document(document_key="research/memora-enhancements-2026-04-08")
memory_get_document(document_key="...", node_kinds=["claim"], content_mode="full")

# Delete a document and all its fragments
memory_delete_document(document_key="research/memora-enhancements-2026-04-08")

Cómo funciona: El analizador divide el markdown por estructura — las tablas se convierten en afirmaciones individuales, las listas numeradas en elementos de plan, las listas de URL en referencias y las secciones de riesgo en fragmentos de riesgo. Cada fragmento es buscable de forma independiente mediante memory_semantic_search mientras que el documento completo se puede recuperar como una unidad.

Tipos de fragmento: claim, plan_item, reference, section_chunk, risk

Guardias de integridad: Los fragmentos de documento están protegidos contra modificaciones accidentales:

  • memory_delete requiere force=True para fragmentos

  • memory_merge se niega a fusionar fragmentos

  • memory_absorb excluye fragmentos de la coincidencia de similitud

  • memory_find_duplicates y memory_detect_supersessions omiten fragmentos

  • La interfaz de gráfico oculta fragmentos, muestra solo el nodo raíz del documento

Herramientas estructuradas para tipos comunes de memoria:

# Create a TODO with status and priority
memory_create_todo(content="Implement feature X", status="open", priority="high", category="backend")

# Create an issue with severity
memory_create_issue(content="Bug in login flow", status="open", severity="major", component="auth")

# Create a section placeholder (hidden from graph)
memory_create_section(content="Architecture", section="docs", subsection="api")

Analiza memorias almacenadas y descubre información procesable:

# Full analysis with LLM-powered pattern detection
memory_insights(period="7d", include_llm_analysis=True)

# Quick summary without LLM (faster, no API key needed)
memory_insights(period="1m", include_llm_analysis=False)

Devuelve:

  • Resumen de actividad — memorias creadas en el período, agrupadas por tipo y etiqueta

  • Elementos abiertos — TODOs y issues abiertos con detección de obsoletos (configurable mediante MEMORA_STALE_DAYS, predeterminado 14)

  • Candidatos a consolidación — pares de memorias similares que podrían fusionarse

  • Análisis LLM — temas, áreas de enfoque, lagunas de conocimiento y un resumen (requiere OPENAI_API_KEY)

Gestiona relaciones entre memorias:

# Create typed edges between memories
memory_link(from_id=1, to_id=2, edge_type="implements", bidirectional=True)

# Edge types: references, implements, supersedes, extends, contradicts, related_to

# Remove links
memory_unlink(from_id=1, to_id=2)

# Boost memory importance for ranking
memory_boost(memory_id=42, boost_amount=0.5)

# Detect clusters of related memories
memory_clusters(min_cluster_size=2, min_score=0.3)

Para visualización sin conexión, exporta memorias como un archivo HTML estático:

memory_export_graph(output_path="~/memories_graph.html", min_score=0.25)

Esto es opcional - el Servidor de Gráfico en Vivo proporciona la misma visualización con actualizaciones en tiempo real.

Navega memorias directamente en Neovim con Telescope. Copia el plugin a tu configuración:

# For kickstart.nvim / lazy.nvim
cp nvim/memora.lua ~/.config/nvim/lua/kickstart/plugins/

Uso: Presiona <leader>sm para abrir el navegador de memoria con búsqueda difusa y vista previa.

Requiere: telescope.nvim, plenary.nvim y memora instalados en tu entorno Python.

Available Tools

44 tools
memory_absorbA

Intelligently absorb facts into memory with dedup and consolidation.

For each fact: searches for similar existing memories, classifies the relationship via LLM (duplicate/update/contradict/related/new), then takes the appropriate action. Related new facts are automatically consolidated into single, richer memories via LLM synthesis.

Args: facts: List of fact strings to absorb (can be granular — related ones get merged) source: Origin of facts — "manual", "session_end", "post_tool", "import" confidence: Caller's certainty about these facts (0.0-1.0, default: 0.8) context: Optional surrounding context to help disambiguate facts metadata: Optional metadata to attach to created memories tags: Optional tags to attach to created memories dry_run: If True, preview what would happen without writing anything project: Optional project these facts belong to (e.g. "clmux"). Recorded on every created memory as metadata.project and used for section and tag prefixing; suggested tags naming a different configured project are dropped. Without it, the project comes only from metadata.project or a tag naming a project configured in MEMORA_PROJECTS; it is never guessed from the text (issue #47).

Inputs: facts (required), tags, source, context, +4 more. Returns: result

memory_backfill_tagsA

Re-tag existing memories with project-prefixed tags.

Uses deterministic normalization to prefix generic tags (e.g. "plan" → "memora/plan") when the memory content clearly belongs to a specific project. No LLM calls.

Idempotent: re-running produces the same result.

Args: dry_run: If True, preview changes without writing (default: True)

Returns: Dictionary with processed count, changed count, and list of changes.

Rate limited: 120s cooldown.

Inputs: dry_run. Returns: result

memory_boostA

Boost a memory's importance score.

Manually increase a memory's base importance to make it rank higher in importance-sorted searches. The boost is permanent and cumulative.

Args: memory_id: ID of the memory to boost boost_amount: Amount to add to base importance (default: 0.5) Common values: 0.25 (small), 0.5 (medium), 1.0 (large)

Returns: Updated memory with new importance score, or error if not found

Inputs: memory_id (required), boost_amount. Returns: result

memory_clustersA

Detect clusters of related memories.

Args: min_cluster_size: Minimum memories to form a cluster (default: 2) min_score: Minimum similarity score to consider connected (default: 0.3) algorithm: "connected_components" (default) or "louvain" Louvain uses embedding similarity for content-based clustering.

Returns: List of clusters with member IDs, sizes, and common tags

Inputs: algorithm, min_score, min_cluster_size. Returns: result

memory_createA

Create a new memory entry.

Args: content: The memory content text metadata: Optional metadata dictionary tags: Optional list of tags suggest_similar: If True, find similar memories and suggest consolidation (default: True) similarity_threshold: Minimum similarity score for suggestions (default: 0.2) response_mode: "full" (default) or "minimal" response payload size project: Optional project this memory belongs to (e.g. "clmux"). Recorded as metadata.project and used for section and tag prefixing. Without it, the project comes only from metadata.project or a tag naming a project configured in MEMORA_PROJECTS; it is never guessed from the text (issue #47).

Inputs: content (required), tags, project, metadata, +3 more. Returns: result

memory_create_batchC

Create multiple memories in one call.

Inputs: entries (required). Returns: result

memory_create_issueA

Create a new issue/bug memory.

Args: content: Description of the issue status: Issue status - "open" (default) or "closed" closed_reason: If closed, the reason - "complete" or "not_planned" severity: Issue severity - "critical", "major", "minor" (default) component: Component/area affected (e.g., "graph", "storage", "api") category: Issue category (e.g., "bug", "enhancement", "performance") project: Optional project the issue belongs to; its tag becomes "/issues", or bare "issues" without a project

Returns: Created issue memory with auto-assigned tag "/issues" or "issues"

Inputs: content (required), status, project, category, +3 more. Returns: result

memory_create_sectionA

Create a new section/subsection header memory.

Section memories are organizational placeholders that:

  • Are NOT visible in the graph visualization

  • Are NOT included in duplicate detection

  • Do NOT compute embeddings or cross-references

Args: content: Title/description of the section section: Parent section name (e.g., "Architecture", "API") subsection: Subsection path (e.g., "endpoints/auth") project: Optional project the section belongs to; its tag becomes "/sections", or bare "sections" without a project

Returns: Created section memory with auto-assigned tag "/sections" or "sections"

Inputs: content (required), project, section, subsection. Returns: result

memory_create_todoA

Create a new TODO/task memory.

Args: content: Description of the task status: Task status - "open" (default) or "closed" closed_reason: If closed, the reason - "complete" or "not_planned" priority: Task priority - "high", "medium" (default), "low" category: Task category (e.g., "cloud-backend", "graph-visualization", "docs") project: Optional project the task belongs to; its tag becomes "/todos", or bare "todos" without a project

Returns: Created TODO memory with auto-assigned tag "/todos" or "todos"

Inputs: content (required), status, project, category, +2 more. Returns: result

memory_deleteA

Delete a memory by id.

Args: memory_id: Memory ID to delete force: If True, allow deleting document fragments/roots. Use memory_delete_document() instead for clean document removal. reason: Optional tombstone reason (default "deleted")

Inputs: memory_id (required), force, reason. Returns: result

memory_delete_batchC

Delete multiple memories by id.

Args: ids: Memory IDs to delete reason: Optional tombstone reason (default "deleted")

Inputs: ids (required), reason. Returns: result

memory_delete_documentA

Delete a stored document and all its fragments.

Args: document_key: The document identifier version: Optional — delete only this version. If omitted, deletes all versions.

Returns: {deleted_roots: count, deleted_fragments: count, deleted_ids: [...]}

Inputs: document_key (required), version. Returns: result

memory_detect_supersessionsA

Detect memories that supersede (update/replace) other memories.

Scans existing memories for pairs where one is an evolved/updated version of another, then creates 'supersedes' edges between them. Complements memory_absorb which only catches supersessions at write time.

Uses neutral LLM classification (not biased by timestamps) to determine both the relationship type and direction.

Args: min_similarity: Minimum embedding similarity to consider (default: 0.55) limit: Maximum pairs to analyze with LLM (default: 20) dry_run: If True, preview detections without creating edges (default: True) tags_any: Only consider memories with any of these tags min_confidence: Minimum LLM confidence to accept (default: 0.75)

Returns: Dictionary with candidates found, analyzed count, detected supersessions, and detailed results for each pair.

Rate limited: 120s cooldown.

Inputs: limit, dry_run, tags_any, min_confidence, +1 more. Returns: result

memory_digestA

Return a deterministic digest of memories related to a topic.

The digest is an aggregation surface for agents that need current context, not a narrative generator. It combines active hybrid-search hits, optional supersession lineage, related memory ids, and matching TODO/issue memories. Raw source ids are always returned so callers can inspect primitives if the digest is too broad or too narrow.

Args: topic: Subject to digest. k: Maximum active search hits and TODO/issue matches to include. include_lineage: Include supersession history for active hits. include_todos: Include matching todos and issues: metadata.type todo/issue, or a todos/issues tag, bare or with any project prefix (the legacy memora/todos and memora/issues included). include_related_hops: Number of cross-reference hops to collect, capped at 3. synthesize: Reserved for future LLM synthesis. False by default. preview_chars: Preview length per returned memory. tags_any: Restrict hybrid search and discovered TODO/issue matches to memories with any of these tags. tags_all: Restrict hybrid search and discovered TODO/issue matches to memories with all of these tags. metadata_filters: Optional metadata filters. date_from: Optional created_at lower bound (ISO or relative like "7d"). date_to: Optional created_at upper bound (ISO or relative like "7d"). seed_ids: Explicit memory ids to include as source memories and expand lineage/related from. debug: Include ranked candidates, applied filters, and seed/filter notes.

Inputs: topic (required), k, debug, date_to, +10 more. Returns: result

memory_events_clearB

Mark events as consumed.

Args: event_ids: List of event IDs to mark as consumed

Returns: Dictionary with count of cleared events

Inputs: event_ids (required). Returns: result

memory_events_pollA

Poll for memory events (e.g., shared-cache notifications).

Args: since_timestamp: Only return events after this timestamp (ISO format) tags_filter: Only return events with these tags (e.g., ["shared-cache"]) unconsumed_only: Only return unconsumed events (default: True)

Returns: Dictionary with count and list of events

Inputs: tags_filter, since_timestamp, unconsumed_only. Returns: result

memory_exportA

Export all memories to JSON format for backup or transfer. Rate limited: 60s cooldown.

Inputs: no named parameters. Returns: result

memory_export_graphA

Export memories as interactive HTML knowledge graph.

Args: output_path: Path to save HTML file (default: ~/memories_graph.html) min_score: Minimum similarity score for edges (default: 0.25)

Returns: Dictionary with path, node count, edge count, and tags

Inputs: min_score, output_path. Returns: result

memory_find_duplicatesA

Find potential duplicate memory pairs with optional LLM-powered comparison.

Scans cross-references to find memory pairs with similarity >= threshold, then optionally uses LLM to semantically compare them. Uses the same threshold (0.85) as the graph UI duplicate detection.

Args: min_similarity: Minimum similarity score to consider (default: 0.85) max_similarity: Maximum similarity score (default: 1.0, kept for backward compatibility) limit: Maximum pairs to analyze (default: 10) use_llm: Whether to use LLM for semantic comparison (default: True)

Returns: Dictionary with: - pairs: List of potential duplicate pairs with analysis - total_candidates: Total pairs found - analyzed: Number of pairs analyzed with LLM - llm_available: Whether LLM comparison was available

Rate limited: 120s cooldown.

Inputs: limit, use_llm, max_similarity, min_similarity. Returns: result

memory_getA

Retrieve a single memory by id (full content by default).

Args: memory_id: ID of the memory to retrieve include_images: If False, strip image data from metadata to reduce response size fields: Optional list of fields to return (e.g. ["id","content","tags"]). None returns all fields. follow: Lineage mode. Default latest (resolve superseded id to the current leaf). full_history adds a history key with all versions root-to-leaf; all returns the exact requested id with no chain walk (forensic). Omitting follow is NOT unfiltered — it means resolve to latest.

Inputs: memory_id (required), fields, follow, include_images. Returns: result

memory_get_documentA

Retrieve a stored document and its fragments by document key.

Args: document_key: The document identifier used during storage content_mode: "preview" (default) or "full" for fragment content preview_chars: Max chars for preview mode (default: 120) node_kinds: Optional filter — e.g. ["claim", "plan_item"] for specific fragment types version: Optional version filter. If omitted, returns the latest version.

Returns: {root: {...}, fragments: [...] ordered by ordinal, document_key, version}

Inputs: document_key (required), version, node_kinds, content_mode, +1 more. Returns: result

memory_hierarchyC

Return memories organised into a hierarchy derived from their metadata.

Args: compact: If True (default), return only id, preview (first 80 chars), and tags per memory to reduce response size. Set to False for full memory data.

Inputs: query, compact, date_to, tags_all, +5 more. Returns: result

memory_importA

Import memories from JSON format. Rate limited: 60s cooldown.

Args: data: List of memory dictionaries with content, metadata, tags, created_at strategy: "replace" (clear all first), "merge" (skip duplicates), or "append" (add all)

Inputs: data (required), strategy. Returns: result

memory_import_sweepA

Admin: finish or remove rows an interrupted import left behind.

A D1 import marks each row it writes (metadata.import_attempt) until the row is complete. A crash, or a cleanup that failed, can leave a marked row; reads hide it. A row whose import still holds a live lease is never touched. Otherwise this completes each marked row older than older_than_minutes that has its embedding (the marker is stripped) and removes each one that has none; younger markers are left alone. Also runs at the start of every import and at server startup. Returns counts: scanned, completed, removed, pending (of which live_lease), failed (ids).

Inputs: older_than_minutes. Returns: result

memory_insightsB

Analyze stored memories and produce actionable insights.

Returns activity summary, open items, consolidation suggestions, and optional LLM-powered pattern detection.

Args: period: Time period to analyze (e.g., "7d", "1m", "1y") include_llm_analysis: If True, use LLM to detect patterns and themes

Returns: Dictionary with: - activity_summary: Created counts by type and tag - open_items: Open TODOs and issues with stale detection - consolidation_candidates: Similar memory pairs that could be merged - llm_analysis: Themes, focus areas, gaps, and summary (or null) Rate limited: 120s cooldown.

Inputs: period, include_llm_analysis. Returns: result

memory_listA

List memories, optionally filtering by substring query or metadata.

Returns compact previews by default to reduce context usage. Use content_mode="full" when you need the complete content. Use memory_get to fetch full content for specific IDs.

Args: query: Optional text search query metadata_filters: Optional metadata filters limit: Maximum results (default: 20). Pass -1 for unlimited. offset: Number of filtered results to skip (default: 0) date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y") date_to: Optional date filter (ISO format or relative like "7d", "1m", "1y") tags_any: Match memories with ANY of these tags (OR logic) tags_all: Match memories with ALL of these tags (AND logic) tags_none: Exclude memories with ANY of these tags (NOT logic) sort_by_importance: Sort results by importance score (default: False, sorts by date) content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content preview_chars: Max chars for preview (default: 120, ignored when content_mode="full") fields: Optional list of fields to return (e.g. ["id","content_preview","tags"]). None returns all fields. follow: Lineage mode. Default active (excludes superseded memories). latest resolves each hit to its current version; full_history expands supersession chains; all is the explicit unfiltered forensic escape hatch (includes superseded). Omitting follow is NOT unfiltered — it means the safe default.

Inputs: limit, query, fields, follow, +10 more. Returns: result

memory_list_compactA

[Deprecated] List memories in compact format (id, preview, tags only).

Prefer memory_list which now defaults to compact previews with richer fields and configurable content_mode/preview_chars.

Returns minimal fields: id, content preview (first 80 chars), tags, and created_at.

Args: query: Optional text search query metadata_filters: Optional metadata filters limit: Maximum number of results to return (default: unlimited) offset: Number of results to skip (default: 0) date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y") date_to: Optional date filter (ISO format or relative like "7d", "1m", "1y") tags_any: Match memories with ANY of these tags (OR logic) tags_all: Match memories with ALL of these tags (AND logic) tags_none: Exclude memories with ANY of these tags (NOT logic)

Inputs: limit, query, offset, date_to, +5 more. Returns: result

memory_mergeA

Merge source memory into target, then delete source.

Combines two memories into one, preserving content and metadata.

Args: source_id: Memory ID to merge from (will be deleted) target_id: Memory ID to merge into (will be updated) merge_strategy: How to combine content: - "append": Append source content to target (default) - "prepend": Prepend source content to target - "replace": Replace target content with source

Returns: Updated target memory and deletion confirmation

Inputs: source_id (required), target_id (required), merge_strategy. Returns: result

memory_migrate_imagesA

Migrate existing base64 images to R2 storage.

Scans all memories and uploads any base64-encoded images to R2, replacing the data URIs with R2 URLs.

Args: dry_run: If True, only report what would be migrated without making changes

Returns: Dictionary with migration results including count of migrated images

Rate limited: 300s cooldown.

Inputs: dry_run. Returns: result

memory_rebuild_crossrefsA

Recompute cross-reference links for all memories. Rate limited: 300s cooldown.

Use this periodically (or after bulk imports) to close the eventual-consistency gap in the related graph — see memory_related for the consistency model.

Inputs: no named parameters. Returns: result

memory_rebuild_embeddingsA

Recompute embeddings for all memories. Rate limited: 300s cooldown.

Inputs: no named parameters. Returns: result

memory_statsA

Get statistics and analytics about stored memories.

Also reports WHICH DATABASE this session is bound to (memora #997). A valid-but-wrong database name in a workspace's .mcp.json is otherwise undetectable: every tool works, reads succeed, and writes land silently in another project's store. Reporting the bound identity is what makes that drift visible to an agent or an operator at all.

Inputs: no named parameters. Returns: result

memory_store_documentA

Store a structured document as a root memory + searchable fragments.

Parses markdown into typed fragments (claims, plan items, references, risks, section chunks) that are individually searchable while the full document remains retrievable as a unit.

Args: content: Full markdown document content document_key: Stable identifier (e.g. "research/memora-enhancements-2026-04-08") version: Document version (default: 1). If >1, supersedes previous version. tags: Tags applied to root and fragments metadata: Additional metadata merged into root and fragments skip_fragment_crossrefs: If True, fragments skip crossref computation (default: True) project: Optional project the document belongs to: recorded on the root and every fragment, whose tag becomes "/documents" (bare "documents" without a project)

Returns: {document_key, root_id, fragment_count, node_map: {node_kind: [ids]}}

Inputs: content (required), document_key (required), tags, project, +3 more. Returns: result

memory_tag_hierarchyB

Return stored tags organised as a namespace hierarchy.

Inputs: include_root. Returns: result

memory_tagsB

Return the allowlisted tags.

Inputs: no named parameters. Returns: result

memory_updateB

Update an existing memory.

Metadata updates merge into existing metadata by default. Set a metadata key to null/None to delete that key. Pass replace_metadata=True only when intentionally replacing the whole metadata object.

Inputs: memory_id (required), tags, content, metadata, +1 more. Returns: result

memory_upload_imageA

Upload an image file directly to R2 storage.

Uploads a local image file to R2 and returns the r2:// reference URL that can be used in memory metadata.

Args: file_path: Absolute path to the image file to upload memory_id: Memory ID this image belongs to (used for organizing in R2) image_index: Index of image within the memory (default: 0) caption: Optional caption for the image

Returns: Dictionary with r2_url (the r2:// reference) and image object ready for metadata

Inputs: file_path (required), memory_id (required), caption, image_index. Returns: result

memory_validate_tagsC

Validate stored tags against the allowlist and report invalid entries.

Inputs: include_memories. Returns: result

memory_verify_integrityA

Read-only embedding integrity doctor with bounded offending ids.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 44 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: specialized create variants for issues, todos, sections, and documents, plus separate search modes. A few clusters overlap (memory_list vs memory_list_compact vs semantic/hybrid search; memory_create vs absorb vs create_batch), but the descriptions clarify their intents well enough.

    Naming Consistency4/5

    The memory_ prefix and snake_case are used consistently throughout, and mutations mostly follow verb_noun (create_issue, delete_document, rebuild_crossrefs). Some informational tools use bare nouns (memory_stats, memory_insights, memory_clusters) and a few deprecated/legacy names (memory_list_compact, top_k alias) break the pattern slightly, but the overall scheme remains predictable.

    Tool Count2/5

    44 tools is well above the 25+ threshold, making the selection surface very heavy for an agent even though the domain is broad. Many maintenance, admin, and analytics tools could be consolidated or hidden behind fewer entry points.

    Completeness5/5

    The tool surface is remarkably complete: full CRUD for memories and documents, specialized issue/todo types, multiple search modes, deduplication, merging, supersession detection, tags, hierarchy, stats, import/export, image handling, and events. Minor gaps like the lack of dedicated todo/issue update tools are covered by generic memory_update, so there are no real dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Persistent AI memory server with hybrid search and embedded sync. Enables AI agents to store, retrieve, and manage information across sessions with temporal knowledge graph support.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent memory for AI tools by building a local knowledge graph from conversations, enabling cross-session recall and context awareness without cloud dependencies.
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Persistent memory and knowledge graph server that fuses keyword, vector, and graph search into a single query, enabling AI assistants to recall typed entities and relationships across sessions.
      MIT