Chenxiaofie Memory MCP logo

Chenxiaofie Memory MCP

Persists Claude Code conversations as searchable episodes and entities, with automatic recall through session hooks.

Install Chenxiaofie Memory MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "memory-mcp-2": {
      "command": "uvx",
      "args": [
        "--from",
        "chenxiaofie-memory-mcp",
        "memory-mcp-init"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from chenxiaofie-memory-mcp memory-mcp-init

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The memory-mcp MCP server gives Claude Code persistent memory for conversations, decisions, preferences, and other extracted knowledge. It stores sessions as episodes, separates user-level and project-level information, and uses vector-based retrieval to find related history. Claude Code hooks can save messages, recall context, save responses, and close episodes automatically. Reach for it when an agent needs continuity across coding sessions rather than isolated chat context.

Use cases

  • Recall decisions from earlier coding sessions
  • Persist preferences across projects
  • Search prior episodes by semantic meaning
  • Review and update extracted knowledge entities

Key features

  • Persistent episode-based conversation memory
  • User-level and project-level storage
  • Semantic search across episodes and entities
  • Claude Code session hooks
  • Entity confirmation and deprecation workflow
  • Message cache management

Tools17

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

Self-reported~200 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.

17/17 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · chenxiaofie-memory-mcp (PyPI)

Adoption & maintenance

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

GitHub stars10Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed17Callable tools this server registers over MCP.

How Chenxiaofie Memory MCP works

What memory-mcp MCP server does

The memory-mcp MCP server adds persistent conversation memory to Claude Code. It records sessions as episodes, extracts or accepts knowledge entities, and retrieves related information in later sessions. Episodes represent individual conversations and can receive summaries when they are closed. Entities can represent project decisions, architecture, important files, user preferences, general concepts, and work habits.

Storage has two scopes. User-level data is shared across projects under ~/.claude-memory/, while project-level data is kept under {project-root}/.claude/memory/. This separation allows personal preferences and general concepts to remain available while project-specific decisions stay associated with the relevant codebase.

How it works

The memory-mcp MCP server can run with Claude Code hooks that connect session lifecycle events to memory operations. At session start, a new episode is created. When the user submits a prompt, the message can be saved and related memories retrieved. The assistant response is saved when Claude stops, and the episode receives a close signal when the session ends.

Without hooks, Claude Code can call the memory tools directly. A typical manual workflow starts an episode, records a decision or other entity, searches previous context, and closes the episode with a completion note.

Semantic recall uses vector-based retrieval across episodes and entities. The project requires a one-time download of a vector model of about 400 MB during initialization. The repository notes that its ChromaDB dependency supports Python 3.10 through 3.13, but not Python 3.14 or later.

Setup and configuration

Install uv, then initialize the service with:

bash
uvx --from chenxiaofie-memory-mcp memory-mcp-init

Register the stdio server with Claude Code using:

Terminal
claude mcp add memory-mcp -s user -- uvx --from chenxiaofie-memory-mcp memory-mcp

For automatic saving and recall, add the supplied commands to ~/.claude/settings.json under the SessionStart, UserPromptSubmit, Stop, and SessionEnd hook events. The repository recommends verifying the registration with claude mcp list; a connected entry should be shown for memory-mcp.

A source-based installation is also documented. It clones the repository, runs the platform-specific install script, and starts the module with the Python executable from the created virtual environment.

Tools and capabilities

Available MCP tools include:

  • Start, inspect, and close conversation episodes.
  • Add, confirm, reject, and deprecate knowledge entities.
  • Search semantically across stored episodes and entities.
  • Search entities by type and inspect pending candidates.
  • List episodes chronologically and retrieve complete episode details.
  • View system statistics and vector encoder status.
  • Cache messages manually, clear the cache, and remove older cached messages.

The entity workflow supports review of detected candidates before they become accepted knowledge. Deprecation marks an entity as outdated rather than removing the broader memory record.

Limitations and notes

The documented automatic workflow is specific to Claude Code because it depends on Claude Code session hooks and commands. The service requires Python 3.10–3.13 according to the repository documentation; Python 3.14 and newer are not supported because of ChromaDB compatibility. Vector initialization downloads approximately 400 MB, and automatic behavior requires configuring the hooks rather than only registering the MCP server.

The repository describes MIT licensing. No environment variables are specified in the provided setup instructions.

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

memory-mcp is an MCP server that connects Claude Code to persistent user-level and project-level memory storage. Its main tools create and close episodes, add and review entities, search past context semantically, inspect episode history, check encoder status, and manage cached messages across sessions.

Install it with uvx after installing uv and initializing the vector model. Run `uvx --from chenxiaofie-memory-mcp memory-mcp-init`, then register it with `claude mcp add memory-mcp -s user -- uvx --from chenxiaofie-memory-mcp memory-mcp`.

Add the documented SessionStart, UserPromptSubmit, Stop, and SessionEnd hooks to `~/.claude/settings.json`. These hooks create and close episodes, save user and assistant messages, and retrieve related memories during Claude Code sessions.

The memory-mcp MCP server supports Python 3.10 through 3.13. The documentation says Python 3.14 and later are unsupported because ChromaDB is not compatible with those versions.

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