# Yuvalsuede Memory MCP [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/yuvalsuede/memory-mcp  
**GitHub Stars:** 100  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memory-mcp-3

## Description
Persistent memory + git snapshots for Claude Code. Never lose context or code.

## Tools
Capabilities this server exposes over MCP:

- **memory_search** — Keyword search across all memories
- **memory_related** — Get memories by tag or area
- **memory_ask** — Ask a question, get an LLM-synthesized answer from memory
- **memory_save** — Manually save a memory
- **memory_recall** — List all memories with filters
- **memory_delete** — Remove a memory
- **memory_consolidate** — Trigger memory consolidation
- **memory_consciousness** — Generate the full consciousness document
- **memory_stats** — Show memory statistics
- **memory_init** — Set project name and description

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/yuvalsuede/memory-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g claude-code-memory --force
```

2. Configure:

```sh
memory-mcp setup  # select "global" when prompted
```

3. Configure:

```sh
memory-mcp init /path/to/project
```

## Documentation

## What memory-mcp does

The memory-mcp MCP server maintains project-specific context across Claude Code sessions. It stores a compact, automatically updated summary in `CLAUDE.md`, which Claude Code reads when a session starts, and keeps the complete memory collection in `.memory/state.json` for deeper retrieval during a conversation.

Memories cover architecture, decisions, patterns, gotchas, progress, and broader project context. The system can capture these items from session transcripts rather than requiring every detail to be entered manually. It also supports manual saves, filtered recall, deletion, statistics, and project initialization through MCP tools.

An optional snapshot feature commits the complete project to a `__memory-snapshots` branch after memory extraction. This can preserve working states alongside the context that was recorded, with commands for listing, comparing, and restoring snapshots. Pushing snapshots to a remote is optional.

## How it works

Claude Code hooks run after responses, before context compaction, and when sessions end. The extractor reads the transcript from its current position, splits oversized input, and sends it to Anthropic's Haiku model for structured memory extraction. New entries are compared with existing content using Jaccard similarity to reduce duplicates.

The service maintains two retrieval tiers. The first is the line-budgeted `CLAUDE.md` summary, which contains the highest-priority context for fast session startup. The second is the full local store, which MCP queries can search during a session. `memory_search` performs keyword matching, `memory_related` retrieves entries by tag or area, and `memory_ask` uses Haiku to synthesize an answer from the top matching memories.

Confidence scores can decay over time: progress becomes less confident after seven days, while context uses a 30-day interval. Consolidation can merge overlapping entries and remove stale information. It runs when the configured extraction threshold is reached or can be triggered manually.

## Setup and configuration

Install the package globally with npm, then run the interactive setup command to configure the API key and Claude Code hooks:

```bash
npm install -g claude-code-memory
memory-mcp setup
```

Initialize memory for a project with `memory-mcp init [dir]`. The documented runtime requirements are Claude Code CLI, Node.js 18 or newer, and an Anthropic API key for the Haiku extractor. Extraction is estimated at about $0.001 per operation according to the project documentation.

Snapshot support can be enabled during initialization or later with `memory-mcp snapshot-enable`. Existing snapshots remain when the feature is disabled. The command-line interface also provides status, context metrics, memory search, questions over stored memory, consolidation, API-key management, and snapshot history. `memory-mcp context --html` generates a browser dashboard.

## Tools and capabilities

The memory-mcp MCP server exposes these tools:

- `memory_search` searches all stored memories by keyword.
- `memory_related` retrieves memories by tag or area.
- `memory_ask` generates an answer from matching memory.
- `memory_save` adds a memory manually.
- `memory_recall` lists memories with filters.
- `memory_delete` removes a memory.
- `memory_consolidate` starts consolidation.
- `memory_consciousness` generates the complete consciousness document.
- `memory_stats` reports memory statistics.
- `memory_init` sets a project name and description.

## Limitations and notes

Automatic extraction depends on an Anthropic API key and incurs model usage costs. The local data files contain the project memory, while snapshot mode can capture the entire project and optionally push commits to a remote. Snapshot behavior is therefore a repository-management choice, not only a memory-storage option.

_Full upstream README: https://allmcps.com/mcp/memory-mcp-3/readme_

