Memtomem logo

Memtomem

Local Markdown memory for coding agents with hybrid BM25 and vector search over an MCP interface.

Install Memtomem

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "memtomem": {
      "command": "uvx",
      "args": [
        "--isolated",
        "--from",
        "memtomem[all]==0.7.8",
        "memtomem-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --isolated --from memtomem[all]==0.7.8 memtomem-server

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

memtomem keeps long-term agent memory in Markdown files you can read, edit, and version, then indexes those files for hybrid BM25 and vector search. Its MCP tools expose memory operations to compatible clients, while the `mm` CLI handles initialization, adding, indexing, searching, status checks, and optional web access. Reach for it when coding sessions or multiple local agents need a shared, project-aware memory store without background capture by default. Optional embedding providers and plugins support semantic search and session handoffs.

Use cases

  • Share project memory across coding-agent sessions
  • Search Markdown notes with keyword and semantic matching
  • Save and resume handoff checkpoints between agents
  • Index an existing notes directory for agent retrieval
  • Review decisions, fixes, and preferences after commits

Key features

  • Markdown-owned local memory files
  • Hybrid BM25 and vector search
  • MCP tools plus the `mm` CLI
  • Explicit memory writes with no background runtime
  • Project-local session handoffs
  • Optional Web UI and embedding providers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · memtomem-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars26Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Memtomem works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memtomem

memtomem is an MCP server that connects AI coding agents to local Markdown memory files and their search index. Its main tools include adding memories, indexing notes, checking status, and searching stored knowledge; the same store can support multiple MCP clients and project handoff workflows.

Install it with `uv tool install 'memtomem[all]'`, then run `mm init` to configure the memory directory and MCP registration. A smaller install is available with `uv tool install memtomem`, and `uvx` can run the server on demand.

Yes, memtomem supports Claude Desktop through MCP client setup. After initialization or manual registration, call `mem_status` from the client to verify the connection.

Yes, multiple coding agents can use one local memory store. Project workflows provide explicit save, brief, resume, and update operations for carrying checkpoints, decisions, fixes, and preferences between sessions.

Yes, memories are stored as plain Markdown files that you can read, edit, and version. The search index is rebuilt from those files, while some index-related metadata and working state remain in the database.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemtomem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memtomem?style=directory)](https://allmcps.com/mcp/memtomem)
HTML Embed
<a href="https://allmcps.com/mcp/memtomem"><img src="https://allmcps.com/api/badge/memtomem?style=directory" alt="Memtomem on AllMCPs" /></a>