Persistent memory for AI tools. Local-first knowledge graph with hybrid search.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give your AI tools a persistent memory β so every session starts where the last one left off.
Your AI starts fresh every session. Memento fixes that.
It runs on your machine, connects to any MCP-compatible AI tool, and builds a persistent knowledge graph from your conversations β entities, relationships, decisions, and context that survive every session restart.
No cloud. No API keys required. No subscriptions. Your data stays on your machine.
Prerequisites: Docker β or β Go 1.23+ + Node.js 18+ + Ollama
The script detects your environment, runs preflight checks, builds everything, and prints the exact command to connect your AI tool at the end. First run downloads Ollama models (~5 GB). After that, starts in seconds.
Once connected, try this in Claude:
Close the tab. Open a new session. Ask:
Your AI already knows. No re-explaining. No context window tricks.
Close the tab. Open a new session.
Behind the scenes, Memento built this automatically:

Every entity gets wired into a knowledge graph β people, tools, projects, decisions β with confidence scores and timestamps.
Open http://localhost:6363/integrations β the web UI generates configs, download buttons, and connection testing for every client:

| Client | Setup |
|---|---|
| Claude Code | Run ./launch.sh β it prints the exact copy-paste command at the end. Example form: claude mcp add memento -- `pwd`/memento-mcp |
| Claude Desktop | Download config β drop in ~/Library/Application Support/Claude/ |
| Cursor | Download config β drop in .cursor/mcp.json + optional Cursor Rules file |
| Windsurf | Download config β drop in .codeium/windsurf/mcp_config.json |
| OpenClaw | Add to ~/.openclaw/mcp.json under mcpServers β same pattern as Claude Desktop |
| Generic MCP | Any MCP client β same pattern: command path + MEMENTO_DATA_PATH env var |
The integrations page generates ready-to-paste configs with your actual binary paths and data directories. It also has connection testing, troubleshooting, and per-project workspace scoping.
The MCP connection makes tools available, but Claude won't use them automatically. Add this to ~/.claude/CLAUDE.md to make Claude store decisions and recall context without being asked:
The web UI at Integrations β Claude Code β Make it proactive generates a version with your specific paths and connection settings, plus a download button.
See the full integration guides: Claude Code | Claude Desktop | Cursor & Windsurf | OpenClaw
Point everyone's AI tools at the same Memento instance and your team's decisions, conventions, and context become shared knowledge β queryable by anyone, attributable to anyone.
Every memory is tagged with who stored it. Memento auto-detects this from your git config, or you can set it explicitly:
Or in your MCP config:
Once set, you can ask:
Setup: Each teammate runs Memento pointing at the same PostgreSQL database. Personal context stays personal (use a separate personal connection). Shared architectural decisions, conventions, and project context go into the shared connection.
See the team setup guide for full PostgreSQL configuration.
Once connected, your AI has 20 tools it can call β no prompting required:
| Tool | What it does |
|---|---|
store_memory | Persist a decision or piece of context β enrichment happens async, returns in <10ms |
recall_memory | Retrieve memories by ID, natural-language query, or paginated list with filters |
find_related | Hybrid search: full-text + semantic vector + RRF ranking |
update_memory | Edit content, tags, or metadata of an existing memory |
forget_memory | Soft-delete a memory (with grace period) or hard-delete permanently |
| Tool | What it does |
|---|---|
traverse_memory_graph | Follow entity relationships to discover contextually connected memories (multi-hop BFS) |
detect_contradictions | Find conflicting relationships, superseded-but-active memories, temporal impossibilities |
explain_reasoning | Surface why specific memories were retrieved for a query |
get_session_context | "Where did I leave off?" β recent memories grouped by topic |
| Tool | What it does |
|---|---|
update_memory_state | Move through lifecycle: planning β active β paused / blocked / completed β archived |
evolve_memory | Create a new version that supersedes the old one β preserves full history |
consolidate_memories | LLM-assisted merge of multiple related memories into one coherent record |
get_evolution_chain | View the full version history of a memory from original to latest |
| Tool | What it does |
|---|---|
restore_memory | Recover a soft-deleted memory |
list_deleted_memories | Browse soft-deleted memories that can still be restored |
retry_enrichment | Re-run entity extraction on a memory that previously failed |
| Tool | What it does |
|---|---|
create_project | Create a project memory with optional pre-created phases |
add_project_item | Add epics, phases, tasks, steps, or milestones under a project |
get_project_tree | Retrieve the full nested hierarchy of a project |
list_projects | List all projects, optionally filtered by lifecycle state |
Store returns in <10ms. Enrichment β entity extraction, relationship mapping, embedding generation β runs asynchronously. Your AI is never blocked.

People, projects, tools, organizations, languages, APIs β extracted automatically from your AI conversations. No tagging required.

Your AI knows who works_on what, which tools depend_on which services, and what the current state of each decision is β with confidence scores and timestamps.

Live enrichment queue, entity browser, relationship explorer, and graph visualizer β all in the web UI.
Mem0 requires cloud API keys and a paid plan for production use. Memento runs entirely on your machine with Ollama β no API keys, no cloud, no per-memory pricing. Memento also ships a full web UI with graph visualization, entity browser, and one-click integration setup. Mem0 has no web interface.
Zep requires Neo4j or FalkorDB for its knowledge graph. Memento uses SQLite (zero deps) or PostgreSQL β no graph database to manage. Zep's open-source version is limited; the full feature set requires Zep Cloud.
Built-in memory is a flat list of facts with no relationships, no search, no graph, and no way to export or control your data. Memento gives you a structured knowledge graph you own, with hybrid search and full lifecycle management.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/memento-3)<a href="https://allmcps.com/mcp/memento-3"><img src="https://allmcps.com/api/badge/memento-3?style=directory" alt="Memento on AllMCPs" /></a>