Yuvalsuede Memory MCP logo

Yuvalsuede Memory MCP

Persistent local memory, automatic context capture, and optional Git snapshots for Claude Code projects.

Install Yuvalsuede Memory MCP

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

Setup steps from the project

Yuvalsuede Memory MCP 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
    npm install -g claude-code-memory --force
    
  2. 2. Configure
    memory-mcp setup  # select "global" when prompted
    
  3. 3. Configure
    memory-mcp init /path/to/project
    

Overview

The memory-mcp MCP server gives Claude Code persistent project memory through searchable local files and MCP tools. It captures session context with Claude Code hooks, uses Haiku to extract and consolidate memories, and keeps a compact summary in CLAUDE.md alongside the full .memory/state.json store. Optional Git snapshots commit the whole project after memory extraction, allowing changes to be reviewed or restored. Reach for it when recurring sessions need project decisions, architecture, progress, and troubleshooting context without relying on cloud storage.

Use cases

  • Preserve architecture and implementation decisions across Claude Code sessions
  • Search prior project context during an active conversation
  • Capture progress, patterns, and gotchas from session transcripts
  • Create Git snapshots before or after context changes
  • Restore a project state associated with an earlier session

Key features

  • Two-tier memory with CLAUDE.md and .memory/state.json
  • Haiku-based extraction and memory consolidation
  • Keyword, tag, and question-based retrieval
  • Automatic Git snapshots on a dedicated branch
  • Context metrics and HTML dashboard
  • MCP tools for saving, filtering, deleting, and initializing memories

Tools10

What Yuvalsuede Memory MCP lets your agent do. Expand a tool for its parameters.

Self-reported~111 tokens of context

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.

24/24 checks healthy over the last 88d

Adoption & maintenance

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

GitHub stars100Stargazers on the source repository.
Last commit10mo agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Yuvalsuede Memory MCP works

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:

Terminal
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.

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 Yuvalsuede Memory MCP

memory-mcp is an MCP server that connects Claude Code to local project memory stored in CLAUDE.md and .memory/state.json. Its main tools search, relate, ask about, save, recall, delete, consolidate, initialize, and report statistics for memories accumulated across sessions.

Install it globally with npm using `npm install -g claude-code-memory`, then run `memory-mcp setup`. Setup configures the Anthropic API key and Claude Code hooks; initialize a project afterward with `memory-mcp init [dir]`.

It requires Claude Code CLI, Node.js 18 or newer, and an Anthropic API key. The key is used by Haiku for transcript extraction, memory consolidation, and synthesized answers, with documented extraction costs of about $0.001 each.

It documents Claude Code CLI as the required client and describes the MCP tools as being used by Claude during a session.

Git snapshots commit the entire project to a `__memory-snapshots` branch after memory extraction. Enable them during initialization or with `memory-mcp snapshot-enable`, then use snapshot history, comparison, and restore commands; pushing to a remote is optional.

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 PreviewYuvalsuede Memory MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memory-mcp-3?style=directory)](https://allmcps.com/mcp/memory-mcp-3)
HTML Embed
<a href="https://allmcps.com/mcp/memory-mcp-3"><img src="https://allmcps.com/api/badge/memory-mcp-3?style=directory" alt="Yuvalsuede Memory MCP on AllMCPs" /></a>