M3 Memory
概览
作者提供的说明(英文原文)
Local-first, cloud-friendly memory — 100+ tools, 99.2% LongMemEval-S retrieval@8, hybrid search.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i2 项中通过 2 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 238/周 · ★ 30
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 2 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"m3-memory": {
"command": "uvx",
"args": [
"m3-memory"
]
}
}
}在终端中运行这条命令
claude mcp add m3-memory -- uvx m3-memory或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"m3-memory": {
"command": "uvx",
"args": [
"m3-memory"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"m3-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"m3-memory"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 skynetcmd 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于3天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5862 个服务器的 95%
- 发布到注册中心的时间比此分类中其他 5862 个服务器的 71% 更新
- 基础检查结果等于或优于此分类中其他 5862 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
M3 Memory 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于3天前,最新版本(2026.10.25.0)于15天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Ruflo, Context7, Metabase
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
🧠 m3 Memory
Give your AI a memory that lasts.
Your AI assistant is helpful until you start a new conversation and it has forgotten what you were working on. m3 fixes that.
Your assistants remember your projects, preferences, decisions and past work, even after you close the app, start a new session or switch to a different agent. By default everything stays on your own computer, and it works offline. m3 itself needs no cloud account or API key; your AI assistant may have its own requirements.
pipx install m3-memory # or pip install m3-memory in a virtual environment; use one, not both
m3 setup # finds your agents and connects them to m3 m3 doctor # checks that everything is working
No pipx yet? sudo apt install pipx (Debian, Ubuntu), brew install pipx (macOS) or py -m pip install --user pipx (Windows). If m3 is not found right after installing, open a new terminal.
Setup finds your agents and connects m3 to them. m3 setup detects your AI agents and wires m3 into each; if you run a local LLM (Ollama, LM Studio), it offers to use it to summarize and link your memories. That part is optional; to use it, install the LLM before m3 setup: Windows · macOS · Linux. That's the whole install.
New here? The 5-minute Getting Started guide walks you through your first saved memory.
What m3 is
m3 is a memory layer for AI agents: the AI assistants that work for you, such as Claude Code, Codex, Cursor or Gemini CLI. It runs on your own computer and stores facts, decisions, preferences and conversation history so your assistants can recall them later, across sessions, across tools and across machines. Assistants reach it through MCP, the standard way AI assistants connect to tools, and you can use it from the command line too.
It is not an AI model or a chatbot. You keep using the assistants you already use; they call m3 when they need to remember or recall something.
📅 A week with m3
Monday: you tell your AI assistant you're building a website and decide on PostgreSQL.
Wednesday: you open a new session and ask, "Where did we leave off?" Your assistant
finds the decision and carries on, without you repeating it.
Friday: you switch agents, say from Claude Code to Codex. Codex sees the same project
memory.
See it for yourself in a short video of one agent saving a decision that another recalls. (Developers: the same thing from the command line.)
✨ What m3 does for you
| You want to... | m3... | Under the hood |
|---|---|---|
| Stop repeating yourself | remembers what you told it in earlier sessions | persistent memory over MCP and a CLI |
| Pick up where you left off | keeps your conversations and finds them again | chat-log capture |
| Use more than one AI assistant | shares one memory across Claude Code, Cursor, Gemini CLI and others | one local store, many clients |
| Find things in your own words | finds a memory even when you don't recall the exact words | hybrid search: keywords plus meaning |
| Use fewer AI tokens | puts the most relevant memory first, and loads only six of its tools when your assistant connects | the right session first for 91.8% of questions; about 3,200 tokens of tool descriptions instead of 33,000 |
| Keep track when things change | keeps the earlier version when a decision changes: similarity-based supersession on write, explicit corrections, and optional model-assisted contradiction review | bitemporal history, supersession and contradiction checks |
| Keep your information private | stores everything on your computer and works offline | SQLite by default; air-gap ready |
| Let assistants work together | lets several assistants share notes, hand off work and split tasks | multi-agent scopes and handoffs |
| Keep memory tidy | can tidy up in the background: links related facts, merges duplicates, fades stale notes | the built-in cognitive loop (enable it in m3 setup) |
Simple to understand, easy to start, powerful when you need it. Every row links to the doc that backs it; How memory works in m3 explains the mechanics, and the technical summary and benchmarks carry the measurements.
🎯 Better memory, fewer wasted tokens
AI assistants can only work with so much text at once, and they measure it in tokens: small pieces of words, which can also set what you pay. When your assistant searches its memory, finding the right thing first means it reads less of what it doesn't need.
An illustration, not a measurement:
less precise search m3: the right memory first
- unrelated note 1. ✔ the decision you need
- unrelated note (it may already have what it needs)
- ✔ the decision you need
- unrelated note
- unrelated note
On the LongMemEval-S benchmark, the correct session was m3's first result for 91.8% of questions (459 of 500). That measures retrieval accuracy, not token savings: how much your assistant saves depends on how it uses the results. m3 returns as many as it is asked for, so precise ranking lets an assistant ask for fewer, or stop at the first good one, and keep more room for the work itself.
m3 saves context in a second, measured way: it registers only 6 of its 100+ tools when an assistant connects, so their descriptions take about 3,200 tokens instead of about 33,000 for the full catalog (Interfaces).
How memory works in m3
When an agent (or you, from the shell) wants to remember something, it calls memory_write. m3 stores the text exactly as given, with a type, title and metadata. Later, memory_search finds it with hybrid retrieval: keyword matching (BM25), semantic similarity (local BGE-M3 embeddings) and diversity re-ranking (MMR). Nine signals contribute to the score, and every result can explain it.
When a fact changes, m3 does not overwrite it. Three mechanisms, each different:
- Similarity-based supersession (on every write). A new memory very similar to an older one of the same type (cosine similarity above 0.92 by default) but with different text becomes the current version: the older one's
valid_tois closed and both stay queryable withas_of. It does not judge whether the two actually contradict, so a refinement ("PostgreSQL with connection pooling") replaces the older wording too; nothing is lost from the history. It applies only to an agent's own memories, and only when the write names its user or agent. - Explicit supersession. An agent calls
memory_supersedeto replace a memory it knows is wrong. - Contradiction detection (model-assisted). With the cognitive loop on, its Reflector stage uses a model to find memories that genuinely disagree and records them for resolution.
With the cognitive loop enabled, m3 also embeds new memories, extracts entities and relationships, and decays memories that are not used. Rolling related notes up into higher-level beliefs is a separate opt-in.
The default store is a single SQLite file. PostgreSQL is a first-class alternative when you want one store shared across machines.
📍 Project status
The core is stable, and so are the web dashboard, the cognitive loop and the Observer & Reflector stages.
| Status | What it means | Features |
|---|---|---|
| Stable | Safe to build on: tested on every release, and changes come with a deprecation notice. | Saving, searching, updating and superseding memories · hybrid search (keywords plus meaning) · version history · supersession on write · GDPR export and erasure · SQLite and PostgreSQL storage · MCP server and m3 CLI · sync across machines · web dashboard · background cognitive loop · Observer & Reflector stages |
| Planned | Coming next, in this order (ROADMAP). | Health and Prometheus metrics endpoint · HNSW approximate search on PostgreSQL |
- Memory reads audited: each memory read and search hit is logged with who read it, whose data it was and when, kept 90 days, and included in GDPR export and erasure (GDPR). Chat-log reads are next.
- One config file:
m3_config.tomlholds every setting, andm3 config showprints each one with where it came from (Config reference). Old environment-variable names are no longer read;m3 doctornames any still set (Environment variables). - Predictable upgrades: calendar versions (
YYYY.M.D.N). A renamed setting, argument or tool keeps working, with a warning, before it is removed, andm3 doctornames anything you still use (Changelog).
⚡ m3 at a glance: technical capabilities
m3 is a persistent, local-first memory layer for AI agents: an MCP server and a JSON-in, JSON-out command-line tool over the same store. It is not an LLM, a chatbot, a plain vector database, a RAG framework or an agent runtime.
m3 is more than a searchable memory store. It combines hybrid keyword and semantic retrieval, bitemporal history, automatic supersession, model-assisted contradiction review, a knowledge graph and background memory maintenance (the cognitive loop). Several agents can share one store; several machines can share one PostgreSQL database, or keep local stores synced through a PostgreSQL warehouse. Your existing assistants reach all of it through MCP, the CLI or framework integrations, with no new agent runtime, and it can run entirely on your own hardware.
| Capability | Support | Details |
|---|---|---|
| Memory that persists across sessions and agents | Built in | Text is stored verbatim and survives restarts, new sessions and switching agents. (Memory model) |
| Hybrid retrieval | Built in | BM25 ke