# Memtomem

> Memtomem is an open-source MCP server for knowledge and memory. Markdown-based long-term memory that carries coding work between Claude Code and Codex. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, Web
- **Website:** https://memtomem.com
- **Repository:** https://github.com/memtomem/memtomem
- **MCP Registry name:** io.github.memtomem/memtomem
- **Categories:** knowledge and memory, developer tools
- **Listing updated:** 2026-11-14

## About

Memtomem keeps a project's memory as plain Markdown files, with a search index rebuilt from them. Its handoff, brief and update workflows move work between coding agents: save a checkpoint at the end of a session in Claude Code, then resume it in Codex CLI, where the server checks the record against the live git commit.

Search starts as BM25 keyword matching in the minimal preset and can fuse in dense vectors from local ONNX models, Ollama, OpenAI-compatible or Cohere embeddings. A Korean-optimized preset adds a tokenizer. Namespaces scope searches, though the site notes they are not access-control boundaries.

An optional separate proxy, memtomem-stm, can attach relevant memories to the responses of other MCP tools and compress them under token budgets. The README marks the product beta and says memory changes happen only when you or your agent call it; client hooks are optional.

## Features

- **Cross-agent handoff:** Saves a session checkpoint in one agent and resumes it in another after checking the git head.
- **Files you own:** Stores memories as Markdown you can read, edit and version, with the index rebuilt from them.
- **Hybrid search:** Starts with BM25 keywords and can add dense vector embeddings.
- **Context gateway:** Keeps master skills, commands and subagents in one store and pushes reviewed versions to runtimes.
- **Optional STM proxy:** Can surface memories and compress responses from other MCP tools it routes.
- **Local-first storage:** Uses SQLite and local ONNX inference with no GPU or cloud account required.

## Good for

- Continue yesterday's Claude Code task in Codex CLI
- Recover the reason behind a past decision along with its ADR source
- Index notes, docs and code for search by exact identifier or meaning
- Share one memory store across Claude Code, Codex, OpenCode and Antigravity
- Build a LangGraph memory demo without an API key

## Install

### Claude Code (Terminal)

```sh
claude mcp add memtomem -- uvx memtomem
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "memtomem": {
      "command": "uvx",
      "args": [
        "memtomem"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "memtomem": {
      "command": "uvx",
      "args": [
        "memtomem"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "memtomem": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "memtomem"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "memtomem": {
      "command": "uvx",
      "args": [
        "memtomem"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "memtomem": {
      "command": "uvx",
      "args": [
        "memtomem"
      ]
    }
  }
}
```

## Tools

- `mem_status`: Reports memory server status
- `mem_add`: Adds a memory
- `mem_index`: Indexes files into memory

## FAQ

### How do I install it?

The README runs uv tool install 'memtomem[all]' (or pipx), then mm init to pick a preset and register MCP.

### Does anything run in the background?

No. Memory operations run only when you or your agent invoke them; client hooks are optional extras.

### Can it search without downloading models?

Yes. The Minimal preset searches by BM25 keyword with no downloads; embeddings are opt-in.

### Is it production-stable?

The README labels it beta, with core tool and file-format changes announced in the changelog.

### Is Memtomem free?

Yes. Memtomem is open source, so you can use and self-host it for free.

### How do I add Memtomem to Claude Code?

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

### What are the best alternatives to Memtomem?

The closest alternatives to Memtomem are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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-2): 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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/memtomem
