Memtomem
Markdown-based long-term memory that carries coding work between Claude Code and Codex
- Pricing
- Open source
- Platforms
- CLI, self-hosted, Web
- Runs
- Locally
- Version
- 0.7.10
- Listing updated
- 3 days ago
About Memtomem
Memtomem is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add memtomem -- uvx memtomemAdd to claude_desktop_config.json
{
"mcpServers": {
"memtomem": {
"command": "uvx",
"args": [
"memtomem"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"memtomem": {
"command": "uvx",
"args": [
"memtomem"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"memtomem": {
"type": "stdio",
"command": "uvx",
"args": [
"memtomem"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"memtomem": {
"command": "uvx",
"args": [
"memtomem"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"memtomem": {
"command": "uvx",
"args": [
"memtomem"
]
}
}
}Tools this server provides (3)
Taken from the project documentation; the running server may differ.
- mem_status
- Reports memory server status
- mem_add
- Adds a memory
- mem_index
- Indexes files into memory
What it does
- 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
Pricing
Open source
Prices change. Check memtomem.com before you buy.
Memtomem 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 to Memtomem

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools