# memtomem [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/memtomem/memtomem  
**GitHub Stars:** 26  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memtomem

## Description
Markdown-first long-term memory for AI agents. Hybrid BM25 + vector search, runs locally.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "memtomem": {
    "command": "uvx",
    "args": ["--isolated","--from","memtomem[all]==0.7.8","memtomem-server"]
  }
}
```

## Documentation

## What memtomem does

memtomem provides local, long-term memory for AI coding agents. Notes remain in Markdown under a user memory directory or a project's `.memtomem/memories.local` area, so they can be inspected, edited, and versioned directly. A search index is built from those files and combines BM25 keyword matching with vector search when semantic embeddings are configured.

The design favors explicit actions. Memory changes occur when a user or agent invokes an MCP tool, the `mm` CLI, or an installed host plugin. Optional hooks and the separate `memtomem-stm` proxy are not part of the default runtime behavior.

## How it works

Run `mm init` to choose a memory directory, configure search, and register MCP access. The Minimal preset uses BM25 without downloads; other presets can add a local ONNX embedding model, Korean tokenization, or provider discovery. Ollama and OpenAI embedding providers are also supported. A reranker is not enabled by the presets and can be selected through advanced configuration.

Use `mm add` to write a memory and index it immediately, `mm search` to query the store, and `mm index` to import existing notes. The MCP interface provides nine core tools, including operations represented by `mem_add`, `mem_index`, and `mem_status`. The CLI and MCP interface work against the same local store, allowing Claude Code, Codex CLI, and other MCP clients to access shared memories.

Project workflows add a handoff loop for coding sessions. A handoff save records a checkpoint in the project's local Markdown memory, a brief operation lists recent updates and active handoff IDs, and a resume operation loads a selected checkpoint. An update workflow records decisions, fixes, and preferences after work is completed. These actions run only when invoked.

## Setup and configuration

Install the complete package with:

```bash
uv tool install 'memtomem[all]'
```

The bundled extras include ONNX embeddings, the Korean tokenizer, the code chunker, and the Web UI. A smaller installation is available with `uv tool install memtomem`; Ollama and OpenAI embeddings can still be used without the bundled local model. Project-local installation is also supported through `uv add` and `uv run`.

Initialize the store with `mm init`, or use `mm init --non-interactive` for the Minimal preset. Verify the setup with `mm status`, add a test entry with `mm add`, and query it with `mm search`. Existing notes can be indexed with `mm index /path/to/your/notes`.

The optional dashboard starts with `mm web` and listens on `http://127.0.0.1:8080`. `mm web -b` runs it in the background, while `mm web stop` stops the tracked process. Development-only pages can be enabled with `mm web --dev` or `MEMTOMEM_WEB__MODE=dev`.

Embedding choices affect data locality: local ONNX and Ollama configurations keep processing on the machine, while OpenAI embeddings, cloud LLM use, or the Cohere reranker send note text to those services. Client plugins are available for Claude Code, Codex CLI, OpenCode, Kimi Code, Antigravity, and Cursor; MCP client setup also covers Claude Desktop, Windsurf, and Gemini CLI.

_Full upstream README: https://allmcps.com/mcp/memtomem/readme_

