# Hot Memory MCP

> Hot Memory MCP is an open-source MCP server for knowledge and memory. Two-tier memory for Claude Code: a hook-injected hot cache plus semantic recall. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/michael-denyer/memory-mcp
- **MCP Registry name:** io.github.michael-denyer/hot-memory-mcp
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Instead of relying on a tool call for every lookup, a plugin's SessionStart and UserPromptSubmit hooks print the most-used memories into context before the model starts. The hot cache holds around 10 items drawn from recent recalls, predicted next memories and promoted items. Everything else sits in cold storage in SQLite, searched by meaning in roughly 50 ms with sentence-transformers embeddings (about 90 MB download on first run).

It promotes memories used three or more times and demotes unused ones after 14 days, scopes facts by git repository, applies trust scoring so outdated facts sink, and links related memories in a knowledge graph. Tools include remember, recall, promote, demote, memory_stats, bootstrap_project and link_memories, with matching slash commands. A local dashboard at port 8765 browses memories, injection history and the graph.

Install with uv tool install hot-memory-mcp or pip, then run memory-mcp-cli bootstrap once to seed from project docs. MIT licensed.

## Features

- **Hook-injected hot cache:** Frequent memories reach context without a tool call.
- **Semantic cold storage:** Search by meaning over everything else.
- **Auto promotion:** Used 3+ times promotes; 14 days unused demotes.
- **Per-repo isolation:** Project facts are separated by git repository.
- **Knowledge graph:** Link related memories for multi-hop recall.
- **Local dashboard:** Browse memories and injection history.

## Good for

- Stop re-explaining project architecture each session
- Seed memories from project docs
- Recall past decisions by meaning
- Inspect what was injected into a session

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add hot-memory-mcp -- uvx hot-memory-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add hot-memory-mcp -- uvx hot-memory-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.hot-memory-mcp]
command = "uvx"
args = ["hot-memory-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user hot-memory-mcp uvx -- hot-memory-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hot-memory-mcp": {
      "command": "uvx",
      "args": [
        "hot-memory-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `remember`: Stores a memory with a semantic embedding.
- `recall`: Searches memories by meaning.
- `promote`: Promotes a memory into the hot cache.
- `demote`: Demotes a memory out of the hot cache.
- `memory_stats`: Shows memory statistics.
- `bootstrap_project`: Seeds memories from project docs.
- `link_memories`: Creates knowledge graph connections between memories.

## FAQ

### Where is data stored?

In a local SQLite file; the path is set with MEMORY_MCP_DB_PATH.

### Which embedding model is default?

all-MiniLM-L6-v2.

### Is a plugin required?

Recommended, since it configures hooks and slash commands, but a manual config is possible.

### What does Hot Memory MCP cost?

It is MIT licensed.

### How do I add Hot Memory MCP to Claude Code?

Run this command in your terminal: claude mcp add hot-memory-mcp -- uvx hot-memory-mcp

### What are the best alternatives to Hot Memory MCP?

The closest alternatives to Hot Memory MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/hot-memory-mcp
