Skip to main content

🧠 Memory MCP

Give your AI assistant a persistent second brain

License: MIT Python 3.11+ MCP 1.0 Claude Code PyPI CI


Stop re-explaining your project every session.

Memory MCP learns what matters and keeps it ready — instant recall for the stuff you use most, semantic search for everything else.


The Problem

Every new chat starts from scratch. You explain your architecture again. You paste the same patterns again. Your context window bloats with repetition.

Other memory solutions help, but they still require tool calls for every lookup — adding latency and eating into Claude's thinking budget.

Memory MCP fixes this with a two-tier architecture:

  1. Hot cache (0ms) — Frequently-used knowledge printed into context by the plugin's SessionStart and UserPromptSubmit hooks before Claude even starts thinking. Claude Code adds a hook's stdout to the conversation, so no tool call is needed.
  2. Cold storage (~50ms) — Everything else, searchable by meaning via semantic similarity.

The system learns what you use and promotes it automatically. Your most valuable knowledge becomes instantly available. No manual curation required.

Before & After

😤 Without Memory MCP 🎯 With Memory MCP
"Let me explain our architecture again..." Project facts persist and isolate per repo
Copy-paste the same patterns every session Patterns auto-promoted to instant access
500k+ token context windows Hot cache keeps it lean (~20 items)
Tool call latency on every memory lookup Hot cache: 0ms — a hook already put it in context
Stale information lingers forever Trust scoring demotes outdated facts
Flat list of disconnected facts Knowledge graph connects related concepts

Install

# Install package
uv tool install hot-memory-mcp   # or: pip install hot-memory-mcp

# Add plugin (recommended)
claude plugins add michael-denyer/memory-mcp

The plugin gives you auto-configured hooks and slash commands. Embeddings run on sentence-transformers on every platform, including Apple Silicon.

Manual config (no plugin)

Add to ~/.claude.json:

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

See Reference for full configuration options.

Restart Claude Code. Run memory-mcp-cli bootstrap once to seed memories from your project docs; the hooks inject whatever is promoted, but nothing seeds itself.

First run: Embedding model (~90MB) downloads automatically. Takes 30-60 seconds once.

How It Works

flowchart LR
    subgraph LLM["Claude"]
        REQ((Request))
    end

    subgraph Hot["HOT CACHE · 0ms"]
        HC[Session context]
        PM[(Promoted memories)]
    end

    subgraph Cold["COLD STORAGE · ~50ms"]
        VS[(Vector search)]
        KG[(Knowledge graph)]
    end

    REQ -->|"hook stdout"| HC
    HC -.->|"draws from"| PM
    REQ -->|"recall()"| VS
    VS <-->|"related"| KG

The hot cache (~10 items) reaches Claude through two plugin hooks. SessionStart runs memory-mcp-cli hot-cache --force and UserPromptSubmit runs memory-mcp-cli hot-cache, and Claude Code adds each command's stdout to the conversation. The command prints only when the text differs from what the session last saw, which is cheap while the set is stable and reprints in full when it shifts. The set combines recent recalls, predicted next memories, and top promoted items. Promoted memories (~20 items) is the backing store of frequently-used memories. Memories used 3+ times auto-promote; unused ones demote after 14 days.

What Makes It Different

Most memory systems make you pay a tool-call tax on every lookup. Memory MCP's hot cache bypasses this entirely — a hook prints your most-used knowledge into the conversation before Claude starts thinking.

Memory MCP Generic Memory Servers
Hot cache Injected by a hook at 0ms Every lookup = tool call
Self-organizing Learns and promotes automatically Manual curation required
Project-aware Auto-isolates by git repo One big pile of memories
Knowledge graph Multi-hop recall across concepts Flat list of facts
Trust scoring Outdated info decays and sinks All memories equal
Setup One command, local SQLite Often needs cloud setup

The Engram Insight: Human memory doesn't search — frequently-used patterns are already there. That's what hot cache does for Claude.

Quick Reference

Slash Command Tool Description
/memory-mcp:remember remember Store a memory with semantic embedding
/memory-mcp:recall recall Search memories by meaning
/memory-mcp:hot-cache promote / demote Manage promoted memories
/memory-mcp:stats memory_stats Show statistics
/memory-mcp:bootstrap bootstrap_project Seed from project docs
— link_memories Knowledge graph connections

See Reference for all 10 slash commands and full tool API.

Dashboard

memory-mcp-cli dashboard    # Opens at http://localhost:8765

Dashboard

Browse memories, hot cache, injection history, sessions, and the knowledge graph.

How to Use

Memory MCP is designed to run as three complementary components:

Component Purpose
Claude Code Plugin Hooks that inject the hot cache, plus the /memory-mcp:* slash commands
MCP Server Core memory tools available to Claude via Model Context Protocol
Dashboard Web UI to browse, manage, and debug your memory database

The plugin is recommended for most users — it auto-configures the MCP server and adds productivity features. Run the dashboard alongside when you want visibility into what's being stored.

Documentation

Document Description
Reference Full API, CLI, configuration, MCP resources
Troubleshooting Common issues and solutions

License

MIT

Metadata

Release files for hot-memory-mcp 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hot-memory-mcp 0.9.0
File Size Uploaded Provenance Actions
hot_memory_mcp-0.9.0.tar.gz 531.5 kB With provenance Details for hot_memory_mcp-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hot-memory-mcp 0.9.0
File Interpreter ABI Platform Actions
hot_memory_mcp-0.9.0-py3-none-any.whl Python 3 none any Details for hot_memory_mcp-0.9.0-py3-none-any.whl

Total release size: 722.7 kB

Release files / hot_memory_mcp-0.9.0.tar.gz

Download URL hot_memory_mcp-0.9.0.tar.gz
Size 531.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13d277f5a5590d5dafe72a515dcb2a12f8aee5720cb1843c4c0a0e392d250896
BLAKE2b-256 checksum
How to use checksums
ad0ff6b25b365c19bcc417bd2f18c47cce917694140d8010f0606f79a56902e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / hot_memory_mcp-0.9.0-py3-none-any.whl

Download URL hot_memory_mcp-0.9.0-py3-none-any.whl
Size 191.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e389aa665ee2a9c03a3592f4ae39ccf87a63cae32f60359980aaac9be0b4eaf
BLAKE2b-256 checksum
How to use checksums
897bb5011c324b34fa87760900a6494100af6ded92f0957249abefbf521a3bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for hot-memory-mcp 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hot_memory_mcp-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page