N3MemoryCore Lite (Working Memory)
概览
作者提供的说明(英文原文)
Ephemeral 7-day hybrid vector+BM25 working memory, multilingual, backed by Redis Stack.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 33/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"n3mc-workingmemory": {
"command": "uvx",
"args": [
"n3memorycore-mcp-lite"
]
}
}
}在终端中运行这条命令
claude mcp add n3mc-workingmemory -- uvx n3memorycore-mcp-lite或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"n3mc-workingmemory": {
"command": "uvx",
"args": [
"n3memorycore-mcp-lite"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"n3mc-workingmemory": {
"type": "stdio",
"command": "uvx",
"args": [
"n3memorycore-mcp-lite"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 NeuralNexusNote 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5832 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5832 个服务器的 12% 更新
- 基础检查结果等于或优于此分类中其他 5832 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
N3MemoryCore Lite (Working Memory) 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.6.2)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
N3MemoryCore MCP — Lite (Ephemeral)
**N3MC-MCP-Lite is an "external memory server" used by MCP-compatible
editors such as Claude Code, Cursor, and Windsurf.**
It runs as an MCP Server so AI can save and search conversation and
code context across sessions.
A NeuralNexusNote™ product — free Lite build: ephemeral hybrid
(vector + BM25) memory exposed as a Model Context Protocol server, backed
by Redis Stack with a 7-day TTL per entry.
💬 **The MCP protocol can only nudge the LLM to call
save_memory, so
which conversations actually get saved is ultimately up to the LLM. But
if you ask Claude Code, it can also wire up hook-based auto-saving of
every conversation.**
Just say "after every turn, automatically save the full Claude Code
transcript to Lite" and Claude Code will drop a script under
~/.claude/hooks/and add aStophook to~/.claude/settings.json.
The harness runs the hook deterministically — it does not depend on the
LLM remembering to call
save_memory, so Claude can never accidentally
skip a save. See the
Hook-based full-transcript saving
section below for details.
🇯🇵 [日本語版はこちら](./README_JP.md)
🛡️ [Development Philosophy](./PHILOSOPHY.md)
🚀 Quickstart — connect to Claude Code in 3 steps
The fastest path from "nothing installed" to "Claude Code is using
N3MC memory". Pick the install path that matches you (PyPI / fork /
uvx), then add the server to your client config. Both Claude Code
CLI and Claude Desktop are covered.
Step 1 — Start Redis Stack
docker run -d --name redis-stack -p 6379:6379 redis/redis-stack-server:latest
(Subsequent sessions: docker start redis-stack)
Step 2 — Install the package (choose one)
Quickest path — Claude Code marketplace. Bundles install + MCP wiring in two commands. Run inside Claude Code:
/plugin marketplace add NeuralNexusNote/n3mcmcp-lite
/plugin install n3mc-workingmemory@neuralnexusnote
Then /reload-plugins and skip Step 3 — the plugin manifest handles MCP wiring. The manual options below remain available for forks, custom configs, and Claude Desktop.
(a) From PyPI — most users:
pip install n3memorycore-mcp-lite
(b) From a fork (you cloned this repo) — contributors / customizers:
git clone https://github.com/<YOU>/n3mcmcp-lite
cd n3mcmcp-lite pip install -e ".[dev]"
(c) Zero-install via uvx — no global install, isolated env:
# Just verify it runs; the actual launch is handled by your MCP client config:
uvx --from n3memorycore-mcp-lite n3mc-workingmemory --help
After step 2, the n3mc-workingmemory command is on your PATH. Run where n3mc-workingmemory (Windows) or which n3mc-workingmemory (macOS/Linux) to confirm.
Step 3 — Wire it into your MCP client
| Client | What to do |
|---|---|
| Claude Code (CLI), this repo's working tree | .mcp.json is already committed — just cd into the repo and run claude. The CLI auto-connects on next prompt. |
| Claude Code (CLI), a different project directory | Copy .mcp.json into that project, or add the same n3mc-workingmemory block to its .mcp.json. See Claude Code (standalone CLI). |
| Claude Desktop (incl. its built-in "Code" tab) | Edit claude_desktop_config.json (path differs per OS). See Claude Desktop. |
| Claude Code with auto-tool-approval | One extra block in ~/.claude/settings.json so the AI never blocks on "Allow?" prompts. See Auto-approve tool calls. |
| uvx-launched (no global install needed) | Use the uvx-form command/args in your client config. See Claude Code (standalone CLI). |
That's it. Once Claude Code is connected, the server's behavioral instructions take over — search_memory runs at the start of every turn and save_memory runs after each meaningful exchange, all automatically.
First call may take 30–60 seconds the first time only — the
~400 MB
intfloat/multilingual-e5-baseembedding model downloads to
~/.cache/huggingface/. Subsequent starts complete in seconds.
⚠️ Prerequisites (required before install)
This server does not run out of the box — you must prepare two things first:
- Redis Stack on `localhost:6379` — the Lite build stores memory in Redis + RediSearch. The easiest way is Docker:
# First time only (creates the container):
docker run -d --name redis-stack -p 6379:6379 redis/redis-stack-server:latest
Every subsequent session (container already exists):
docker start redis-stack
Re-running the `docker run` command after the container exists fails with `Conflict. The container name "/redis-stack" is already in use`. Use `docker start` from the second session onward.
Why no persistence flags on the docker line: this build is
*deliberately volatile*. Ephemerality is a design feature, not a
missing capability — see the "Use cases" section below. Rather
than rely on fragile shell-quoting for
--save ""(which breaks on
Windows PowerShell and cmd.exe), the MCP server enforces the
ephemeral state at startup by issuing
CONFIG SET appendonly noand
CONFIG SET save ""on every connect. If you manually re-enable
persistence between sessions, it is reverted on the next Lite run.
The plain
docker runabove is sufficient — the server is the
source of truth for the ephemerality guarantee.
- [`uv`](https://docs.astral.sh/uv/) on your `PATH` — required only for the Claude Code plugin /
uvxinstall path. Not needed if you install from source.
The server refuses to start if Redis is unreachable, and the Claude Code plugin will fail to launch without uv. Install both before running /plugin install or any client-side config.
Features
- 💾 Fully local — Your conversations stay in your own Redis instance. Nothing sent to the cloud.
- 🔍 Semantic search — Finds relevant past conversations even when the exact words differ.
- 🌐 Multilingual out of the box — CPU-only, no LLM/GPU required. NFKC fold (
アルファ↔アルファ,123↔123, ligatures), bigram coverage for Japanese / Chinese / Korean / Thai / Lao / Myanmar / Khmer, diacritic cross-match for Latin scripts (café↔cafe). - 🛡️ Encoding safety — stdio UTF-8 reconfigure on Windows (cp932 → UTF-8), lone-surrogate sanitization on every input. Same defenses as the Free build.
- 🔄 Context across sessions — Working memory that lasts 7 days (auto-expires via Redis TTL; pair with any persistent memory backend if you need longer retention).
- ⚡ Works automatically — Saving and searching happen automatically. The MCP
initializeresponse ships behavioral instructions, so no user action is required. - 🤖 Multi-agent ready — Multiple AI agents share one Redis. The
b_localandb_sessionbiases prioritize each project's own memories while still surfacing the team's collective knowledge. - 🏢 Team & organization support — Deploy Redis on a shared server and point
N3MC_REDIS_URLto it for team-wide memory sharing (⚠️ authentication must be handled at the Redis layer). - 🧹 Ephemerality is a design feature — 7-day auto-expiry means failed attempts and abandoned designs don't bleed into the next task.
docker restart redis-stackwipes everything instantly. - 💰 Reduces token waste — No more re-explaining past context. Memory search uses local embeddings (
intfloat/multilingual-e5-base) and costs zero Claude tokens, and accurate context injection means fewer corrections and back-and-forth.
How It Works
User's message
│ ▼ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ 1. Auto-save │────▶│ 2. Semantic │────▶│ 3. Context │ │ Save last │ │ search │ │ injection │ │ response to │ │ Find related │ │ Feed to │ │ Redis │ │ memories │ │ Claude │ └──────────────┘ └──────────────┘ └──────────────┘ │ ▼ Claude responds with full context
Everything runs automatically via the behavioral instructions shipped in the MCP initialize response. No Claude Code hooks are involved — the only client-side setup is adding the tools to permissions.allow. No user action required.
Relationship with Claude's built-in auto-memory
Claude Code has a built-in auto-memory system (~/.claude/projects/.../memory/). N3MemoryCore complements it rather than competing with it.
| Claude auto-memory | N3MemoryCore RAG | |
|---|---|---|
| Strengths | Reliable, loads every session, great for fixed facts | Conversation context, detailed history |
| Weaknesses | Cannot capture conversation flow or context | Depends on search quality; not guaranteed to surface |
| Best for | User profile, folder paths, stable settings | Conversation threads, past decisions, reasoning |
Recommended usage:
- Fixed information needed every session (folder paths, user preferences) → save to auto-memory
- Conversation context and history (discussion threads, past decisions) → N3MemoryCore accumulates automatically (7-day window; pair with a persistent memory backend if you need longer retention)
Use cases — when working memory is the right tool
The 7-day TTL and volatile Redis storage are design features, not limitations. They make this server the right fit for:
- Agentic code-generation loops — failed attempts and abandoned designs don't bleed into the next task;
docker restart redis-stackwipes the slate clean. - Multi-agent collaboration — decisions made during one task don't contaminate unrelated follow-ups.
- Experimental / throwaway prototyping — leave it alone and memory evaporates in 7 days, no pruning needed.
- Project-scoped working memory — pin a
session_idper task / project to keep contexts cleanly separated.
If you need long-term, persistent knowledge accumulation across months or years, working memory is not the right layer. Pair this server with any persistent memory MCP — the official knowledge-graph server, your own SQLite-backed implementation, or an external service — to cover the long-term side.
What is this?
n3memorycore-mcp-lite is a local-only MCP server that gives Claude (and any other MCP-compatible client) short-lived memory across conversations. It stores text entries in a local Redis Stack instance with both a BM25 full-text index and a 768-dimension vector index (intfloat/multilingual-e5-base), and returns hybrid-ranked results.
Every operation runs on the user's machine. No API calls, no cloud storage.
Tools exposed
| Tool | Purpose |
|---|---|
search_memory | Hybrid (vector + BM25) search, ranked & time-decayed, session_id boost |
save_memory | Persist a short entry (7d TTL, dedup: exact + near-duplicate) |
list_memories | Most-recent entries, newest first |
| delete_memory
只显示了开头部分;其余内容请在仓库中阅读