Memkeeper
What it does
Local-first memory for AI agents: on-device hybrid retrieval over a single SQLite file.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "memkeeper": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/teflon07/memkeeper:0.5.3" ] } } }退出 Claude 再重新打开
试一试
用 Memkeeper 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Memkeeper,或回答中出现 Memkeeper 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Memkeeper
Memkeeper 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Memkeeper 的应用
- 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Docker(只需一次)
- 需要先在电脑上安装 Docker(只需一次)
- 需要先在电脑上安装 Docker(只需一次)
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Context7✓ ChatGPT
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Docker(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user memkeeper -- docker run -i --rm ghcr.io/teflon07/memkeeper:0.5.3在 Claude Code 中输入 /mcp
应能看到 Memkeeper 在列表中并显示已连接
试一试
用 Memkeeper 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Memkeeper,或回答中出现 Memkeeper 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Docker(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Memkeeper 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Memkeeper,或回答中出现 Memkeeper 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Docker(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Memkeeper 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Memkeeper,或回答中出现 Memkeeper 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user memkeeper -- docker run -i --rm ghcr.io/teflon07/memkeeper:0.5.3Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"memkeeper": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/teflon07/memkeeper:0.5.3"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"memkeeper": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/teflon07/memkeeper:0.5.3"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"memkeeper": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/teflon07/memkeeper:0.5.3"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月13日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 teflon07 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于3个月前
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 6015 个服务器的 87%
- 发布到注册中心的时间比此分类中其他 6015 个服务器的 23% 更新
- 基础检查结果等于或优于此分类中其他 6015 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Memkeeper 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于3个月前,最新版本(0.5.3)于4个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Ruflo
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Most software has the memory of a goldfish. This one doesn’t.
memkeeper
Local-first memory for AI agents. A fast, embeddable memory engine that stores, ranks, and retrieves an agent's durable context, entirely on your machine, with no required network or LLM calls.
Memkeeper is the open-source, local-first control plane that AI agents run on: durable memory, project context, coordinated task handoffs, and deny-by-default permissions, all deterministic and on your own machine. *This repo is the memory engine at its core.*
ℹ️ Generated release mirror. This repo is generated from a private
development repo and published as releases. The
mainbranch may be
regenerated, so pin to tagged releases (or the release artifacts) rather
than to arbitrary
maincommits — tagged releases are stable. See
CONTRIBUTING.md for how to contribute; issues, security
reports, and design feedback are the best paths today.
- Local-first. A single SQLite database. No server, no cloud, no telemetry.
- Fast at prompt time. Deterministic BM25/FTS retrieval with optional ONNX semantic embeddings and a cross-encoder reranker.
- Durable by design. Atomic writes, schema-versioned storage, and a retention model that promotes recurring, high-signal memories to a durable tier.
Real CLI output, formatted for readability via scripts/mkfmt . The search query shares no keywords with the memory it surfaces.
Status: pre-release (v0.5.3). APIs and the wire protocol may change before 1.0.
Quickstart
# Install the latest release binary (macOS arm64 / Linux x86_64) to ~/.local/bin.
It's self-contained — nothing else to install.
curl -fsSL https://raw.githubusercontent.com/teflon07/memkeeper/main/install.sh | bash
Optional, one-time: fetch on-device semantic models. Lexical search works without it.
memkeeper pull-models
Create a store, remember something, search it back.
memkeeper init memkeeper remember --json '{"content":"memkeeper stores memories in a local SQLite database"}' memkeeper search --json '{"query":"where are memories stored","limit":3}'
That's the whole install: a self-contained binary, no runtime network/LLM/API key. Prefer not to pipe a script to your shell? Grab a binary from the releases page and verify its .sha256, or build from source. The store defaults to ~/.memkeeper/store.sqlite when --store is omitted; a --json value can also be @ or - (stdin) instead of an inline string, which avoids shell-quoting pitfalls (handy in Windows PowerShell).
Upgrade from v0.2.x
v0.3.0 introduced the schema 5 to schema 6 upgrade; v0.4.0 through v0.5.3 keep schema 6 unchanged. The migration is transactional, but schema 6 stores cannot be opened by v0.2.x. Stop any long-running memkeeper process and keep a schema 5 backup until you verify the upgrade.
Back up the store with your v0.2.x binary before installing the current release:
STORE=~/.memkeeper/store.sqlite
memkeeper backup --store "$STORE" --output "$STORE.schema5.bak" --json
Install the current release, run the migration explicitly, and verify the result before restarting any long-running process:
curl -fsSL https://raw.githubusercontent.com/teflon07/memkeeper/main/install.sh | bash
memkeeper init --store "$STORE" --json memkeeper doctor --store "$STORE" --json
init is safe to rerun. If you need to roll back, restore the schema 5 backup before starting the older binary.
Use it from your agent (MCP)
memkeeper speaks MCP (JSON-RPC 2.0 over stdio), so any MCP client — Claude Code, Cursor, and others — can read and write memory during a session. Point your client's MCP config at the native binary (no Python, no extra deps):
{ "mcpServers": { "memkeeper": { "command": "memkeeper", "args": ["mcp"] } } }
The agent calls remember to capture a durable fact and search to recall it later, across separate sessions, with the same retrieval as the CLI.
Real memkeeper mcp JSON-RPC round-trips, formatted for readability via scripts/mcpfmt .
What to store
memkeeper holds self-contained memories: facts, decisions, preferences, lessons. Each remember is one memory written to stand on its own, with its context and intent intact (store "the user likes pineapple on pizza," not just "pineapple"). Atomic means one idea per memory, not a stripped keyword. Retrieval, dedup, supersession, and the entity graph all work best at that grain.
Two ends to avoid:
- Too small: a bare keyword or fragment that drops the point.
- Too large: a whole document. The curated memory tier has no chunking, and the embedder sees only the first ~512 tokens of an entry, so loading long files (for example, an entire markdown library) gives weak semantic recall on those entries (lexical BM25 still indexes the full text). To bring whole documents in, don't store them as memories — use the document store, memkeeper's separate RAG tier that chunks and embeds files into an isolated space (the
memkeeper-ingestadd-on imports whole folders this way). Or distill the document down to its takeaways and store those as memories.
Capturing memories
memkeeper is curated memory you populate deliberately — not an automatic transcript logger. Memories get in two ways:
- Directly —
memkeeper remember --json '{"content":"…"}', from the CLI or a script. - From an agent — the native MCP server lets an MCP client (Claude and other agents) call
rememberduring a session, so durable facts are captured as they come up. When a confirmed memory names entities or states a relationship, the MCP tool asks the agent to include a bounded graph projection in the same call. memkeeper validates and commits the memory, exact aliases, and typed relationships atomically. The one memory ID is the relationship evidence.
memkeeper does not run a second LLM or background extractor for this. The MCP host agent supplies the structured graph fields while making the normal remember call. Raw CLI callers can supply the same graph object explicitly.
On the *retrieval* side, memkeeper hook retrieve is a Claude Code UserPromptSubmit hook client that injects relevant memories into the prompt — so an agent recalls without an explicit search. It retrieves; capture stays a deliberate remember.
Semantic retrieval (default)
memkeeper has three retrieval modes. Local semantic is the default and the recommended, fully on-device mode. Pick one up front — the embedding backend is recorded in the store, so changing it means re-embedding (reindex --embed), not a flip.
The deterministic floor (zero models, zero network) and semantic + rerank on top — same store, same query path. Real output via scripts/mkfmt .
| Mode | Network | Setup |
|---|---|---|
| Local semantic (default) | none | install binary, then pull-models |
| Lexical only | none | works out of the box; just skip pull-models |
| Off-device semantic | embeds via an API | set MEMKEEPER_EMBED_PROVIDER=openai + base URL + key |
Privacy: off-device semantic sends your memory text to the embeddings
provider to be vectorized. Use it only where that is acceptable; the two on-device
modes never send memory content anywhere.
Local semantic (default)
The release binary ships semantic-capable (the ONNX runtime is statically bundled), so there's no rebuild — it just needs the embed + rerank models, which aren't downloaded automatically. Fetch them once:
# Needs curl; ~2.1GB, or --quantized for ~0.6GB (slightly lower recall).
memkeeper pull-models
pull-models writes to ~/.memkeeper/models/ (override with MEMKEEPER_MODELS_DIR or --dir) — exactly where memkeeper looks by default. So semantic turns on with no env vars to set: run a search afterward and it's active.
If the models are missing, memkeeper does not degrade *silently*: it logs their absence and points you at pull-models, marks results semantic-unavailable (e.g. "semantic":{"attempted":false,"reason":"missing_embedding"}), and falls back to lexical (BM25/FTS) so search keeps working. Set MEMKEEPER_REQUIRE_SEMANTIC=1 to fail closed instead — refuse the request rather than serve degraded results — in any deployment that must never silently run lexical-only.
Embeddings are computed when a memory is written. Memories you stored before the models were present (for example, the one from the Quickstart above) are lexical-only until embedded. Backfill existing memories once with:
memkeeper reindex --embed
New memories written with the models in place are embedded automatically.
Lexical only
Skip pull-models and the release binary runs deterministic, model-free lexical-only (BM25/FTS) retrieval — zero network, zero models. Building from source with --no-default-features produces a leaner binary that omits the ONNX runtime entirely (see Build from source).
Off-device semantic (no model download)
Prefer not to download the ONNX models? Point memkeeper at an OpenAI-compatible embeddings API (OpenAI, OpenRouter, or any compatible proxy) instead. This mode embeds and reranks over the network rather than loading the local models, so it needs no pull-models:
# Embeddings (required for semantic): any OpenAI-compatible /embeddings endpoint.
export MEMKEEPER_EMBED_PROVIDER=openai # "openai" = the OpenAI-compatible API dialect export MEMKEEPER_EMBED_BASE_URL=https://api.openai.com/v1/embeddings # or your provider, e.g. OpenRouter export MEMKEEPER_EMBED_API_KEY=sk-... export MEMKEEPER_EMBED_MODEL=text-embedding-3-small export MEMKEEPER_EMBED_DIMS=1536
Reranking (optional, recommended): Cohere /rerank dialect, which OpenRouter speaks.
export MEMKEEPER_RERANK_PROVIDER=openrouter export MEMKEEPER_RERANK_API_KEY=sk-... export MEMKEEPER_RERANK_MODEL=cohere/rerank-v3.5
The prebuilt release binaries support all three modes