npm.io
1.0.0-beta.18 • Published 2d agoCLI

@shellicar/mcp-memory

Licence
MIT
Version
1.0.0-beta.18
Deps
7
Size
152 kB
Vulns
0
Weekly
0

@shellicar/mcp-memory

Persistent memory for Claude, shared across every session and project.

npm package build status

Features

  • Persists across sessions - what one conversation learns, the next can find, with no shared context required.
  • Relevance search, not recall by id - describe what you need in plain words; ranked hits come back, best first.
  • Shares the CLI's store - reads and writes the same ~/.claude/memory.db as claude-sdk-cli, so a memory written by one is found by the other.
  • stdio transport - drop it into any MCP client that speaks stdio.

Installation & Quick Start

npm i -g @shellicar/mcp-memory
pnpm add -g @shellicar/mcp-memory

It runs as a stdio MCP server under the mcp-memory command. Point your MCP client at it:

{
  "mcpServers": {
    "memory": {
      "command": "mcp-memory"
    }
  }
}

Motivation

Claude's context doesn't survive between sessions. Anthropic's own documented pattern for multi-session work is a progress log and checklist file, re-read at the start of each session, but that's just a work-log: it tells you what was done, not the trap that was hit, the decision that was made and why, or the correction to something Claude believed wrong. This gives Claude somewhere to write those down and search them back up later, in any session, on any project, not just the one where it was written.

Storage

Memories live in ~/.claude/memory.db, the same SQLite file claude-sdk-cli itself reads and writes. This server doesn't keep a separate store: a memory written through the CLI shows up here, and a memory written here shows up in the CLI, because they're the same database.

Each memory is stamped with the git remote of the working directory it was written from, when available, so a search hit can announce where it came from.

Credits & Inspiration