Memento logo

Memento

Persistent, local-first memory for MCP-compatible AI tools using a searchable knowledge graph.

Install Memento

Run the project’s own setup commands, in order.

Setup steps from the project

Memento installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/scrypster/memento.git
    
  2. 2. Run
    cd memento
    
  3. 3. Start the server
    ./launch.sh
    
  4. 4. Start the server
    docker compose --profile postgres up -d
    
  5. 5. Install
    go build -o memento-mcp ./cmd/memento-mcp/
    

Overview

The Memento MCP server gives MCP-compatible AI tools persistent memory across sessions by storing conversations as a local knowledge graph. It provides memory storage, retrieval, hybrid search, graph traversal, lifecycle management, and project organization tools. Enrichment extracts entities, relationships, and embeddings asynchronously through local Ollama models. Reach for it when an AI assistant needs to retain project decisions, preferences, or shared engineering context without sending data to a cloud service.

Use cases

  • Store architectural decisions across AI sessions
  • Recall project context before making recommendations
  • Search related memories with hybrid retrieval
  • Track evolving tasks and project hierarchies
  • Share attributed engineering knowledge across a team

Key features

  • Persistent cross-session memory
  • Local knowledge graph with entity relationships
  • Hybrid full-text and semantic search
  • Asynchronous Ollama enrichment
  • Memory versioning, lifecycle states, and recovery
  • Project hierarchy management

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 72d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Memento works

What the Memento MCP server does

The Memento MCP server adds persistent memory to MCP-compatible AI tools. It stores decisions, preferences, project context, and other durable information so an assistant can retrieve it in later sessions. Memories are represented in a knowledge graph with entities, relationships, timestamps, and confidence scores.

It can also support shared team knowledge when multiple users connect to the same PostgreSQL database. Memories can be attributed to a user through the MEMENTO_USER setting.

How it works

A memory is stored quickly, while enrichment runs in the background. Local Ollama models perform tasks such as entity extraction, relationship mapping, and embedding generation. This keeps the initial store operation from waiting for enrichment to finish; newly stored memories are searchable immediately.

Search combines full-text matching with semantic vectors and reciprocal-rank fusion. Related context can also be discovered by traversing entity relationships across multiple hops. Retrieval supports natural-language queries, memory IDs, pagination, and filters. The system can explain why particular memories were returned and can assemble recent session context grouped by topic.

The Memento MCP server also models memory changes over time. Memories can move through states such as planning, active, paused, blocked, completed, and archived. A newer version can supersede an older one while preserving the history. Soft-deleted memories remain recoverable during their grace period, and contradiction detection can identify conflicting or outdated information.

Setup and configuration

The documented quick start uses Docker, or a local installation with Go 1.23 or newer, Node.js 18 or newer, and Ollama. Clone the repository and run ./launch.sh; the script performs checks, builds the components, and prints a connection command for the AI client. The initial setup downloads Ollama models of approximately 5 GB.

The local web interface is available at http://localhost:6363/integrations. It generates client-specific configurations, provides connection testing and troubleshooting, and can create settings for project-scoped workspaces. Generic MCP configurations use the executable path and MEMENTO_DATA_PATH. Set MEMENTO_USER when memory attribution should use an explicit identity rather than the detected Git configuration.

For team use, each teammate points Memento at the same PostgreSQL database. Separate personal and shared connections can be used when private context should not enter the shared store.

Tools and capabilities

The Memento MCP server exposes 20 tools across several areas:

  • Core memory operations: store_memory, recall_memory, find_related, update_memory, and forget_memory.
  • Search and analysis: traverse_memory_graph, detect_contradictions, explain_reasoning, and get_session_context.
  • Lifecycle and history: update_memory_state, evolve_memory, consolidate_memories, and get_evolution_chain.
  • Recovery: restore_memory, list_deleted_memories, and retry_enrichment.
  • Projects: create_project, add_project_item, get_project_tree, and list_projects.

Claude Code users can add instructions that make the client proactively store decisions and recall relevant context. The integrations page can generate those instructions with local paths and connection settings.

Limitations and notes

The project is identified as version 0.1.0-alpha, so it should be evaluated with that maturity level in mind. Local Ollama models are required for the documented enrichment workflow, and the first setup downloads several gigabytes of model data. Team sharing requires a common PostgreSQL database; local personal storage and shared storage are separate configuration choices.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memento

Memento is an MCP server that connects MCP-compatible AI tools to a local persistent knowledge graph. Its main tools store, recall, search, update, and delete memories, while graph traversal, contradiction detection, lifecycle management, recovery, and project tools provide broader context across sessions. Local Ollama models enrich stored memories asynchronously.

Run the repository’s `./launch.sh` script after cloning it. You need Docker, or Go 1.23+, Node.js 18+, and Ollama. The script performs preflight checks, builds the components, and prints the command needed to connect an MCP client. The first run downloads approximately 5 GB of Ollama models.

Yes, Memento works with Claude Desktop through a generated MCP configuration. Open `http://localhost:6363/integrations`, download the Claude Desktop config, and place it in `~/Library/Application Support/Claude/`. The integrations page also provides connection testing and troubleshooting.

Yes, team members can share memory by pointing their Memento instances at the same PostgreSQL database. Set `MEMENTO_USER` to attribute memories explicitly, or let Memento detect the identity from Git configuration. Use a separate personal connection when private context should remain separate.

Memento searches with full-text matching and semantic vectors combined through reciprocal-rank fusion. You can also retrieve memories by ID, use filters and pagination, traverse related entities across multiple hops, and request an explanation for why memories matched a query.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemento AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memento-3?style=directory)](https://allmcps.com/mcp/memento-3)
HTML Embed
<a href="https://allmcps.com/mcp/memento-3"><img src="https://allmcps.com/api/badge/memento-3?style=directory" alt="Memento on AllMCPs" /></a>