Memory
概览
作者提供的说明(英文原文)
Persistent memory for AI coding tools. 11 tools for any MCP-compatible AI tool.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 90/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add memory -- npx -y @shackleai/memory-mcp或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 shackleai 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5730 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5730 个服务器的 5% 更新
- 基础检查结果等于或优于此分类中其他 5730 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Memory 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.5.2)于8个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
ShackleAI Memory
Persistent memory for AI coding tools. The first MCP-native memory server.
Give Claude Code, Cursor, Windsurf, VS Code Copilot, OpenAI Codex, or any MCP-compatible AI tool persistent memory across sessions. Your AI remembers decisions, conventions, bugs, and context — picks up exactly where you left off.
Install — One Command
Run this in your project directory:
npx -y @shackleai/memory-mcp@latest setup
This creates two files in your project:
- `.mcp.json` — registers the memory server so your AI tool auto-starts it
- `CLAUDE.md` — tells the AI to actively use memory every session
Commit both to git so your whole team gets memory. That's it — no config, no API keys, no accounts.
npm/npx version too old? If the command fails, see Troubleshooting.
How It Works
1. Run the setup command above (one-time)
- Start your AI tool in the project directory
- Memory server starts automatically in the background
- AI stores decisions, conventions, and bugs as you work
- Next session — AI searches memory and picks up where you left off
You don't need to do anything after setup. The AI sees the memory tools and uses them proactively — storing important decisions, searching for past context, and saving session summaries.
Verify It Works
After setup, start a session and give your AI a task. Then ask:
"What have you stored in memory so far?"
If it calls memory_search and shows stored entries, it's working. In your next session, ask:
"What do you remember about this project?"
It should recall context from the previous session without reading any files.
Alternative Setup Methods
The npx setup command works for all MCP clients. If you prefer client-specific configuration:
Claude Code (global config)
claude mcp add memory -- npx -y @shackleai/memory-mcp@latest
This adds memory to your global Claude Code config. It works across all projects, but won't be shared with your team via git.
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": { "memory": { "command": "npx", "args": ["-y", "@shackleai/memory-mcp@latest"] } } }
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": { "memory": { "command": "npx", "args": ["-y", "@shackleai/memory-mcp@latest"] } } }
VS Code Copilot
Add to .vscode/mcp.json in your project:
{
"servers": { "memory": { "command": "npx", "args": ["-y", "@shackleai/memory-mcp@latest"] } } }
Claude Desktop
Add to your Claude Desktop config:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": { "memory": { "command": "npx", "args": ["-y", "@shackleai/memory-mcp@latest"] } } }
Install globally (if npx doesn't work)
npm install -g @shackleai/memory-mcp
shackleai-memory setup
Or use the global binary directly in your MCP config:
{
"mcpServers": { "memory": { "command": "shackleai-memory" } } }
Run from source (for contributors)
git clone https://github.com/shackleai/memory-mcp.git
cd memory-mcp && npm install && npm run build
{
"mcpServers": { "memory": { "command": "node", "args": ["/absolute/path/to/memory-mcp/dist/index.js"] } } }
First Run
The first run downloads the embedding model (~80MB, one-time). After that, everything works offline.
Features
- One-command setup —
npx -y @shackleai/memory-mcp@latest setupand you're done - Fully automatic — auto-detects project on startup, no manual init needed
- 11 MCP tools — init, store, search, update, delete, list projects, session end, TODO status, export, import, cleanup
- MCP resources — project context available as a readable resource
- Local-first — everything stored on your machine at
~/.shackleai/ - Zero config — no API keys, no cloud account, no setup beyond the install command
- Offline — local embeddings via MiniLM-L6-v2 (free, runs on CPU)
- Human-readable — memories stored as Markdown files you can read and edit
- Git-friendly — version control your AI's memory with standard git
- Semantic search — find relevant memories by meaning, not just keywords
- Deduplication — automatically detects and merges duplicate memories
- Auto-archive — old session files cleaned up based on retention period
- Multi-project — separate memory spaces per project, auto-detected
- LLM-portable — switch AI tools anytime, your memory stays
MCP Tools Reference
memory_init
Initialize or switch project context. Auto-called on server startup — only call manually if switching projects mid-session.
Input: { project_path: "/path/to/project" }
Output: { project_name, tech_stack, memory_count, summary }
Auto-detects project name from package.json, pyproject.toml, or directory name. Detects tech stack (Node.js, Python, Rust, Go, Java, Ruby, PHP, .NET, Docker, etc.).
memory_store
Save important information to persistent memory. Use for decisions, conventions, bugs, architecture, preferences, TODOs, and context.
Input: {
content: "We chose PostgreSQL with Prisma ORM for type-safe queries", category: "decision", // decision|convention|bug|architecture|preference|todo|context|session_summary importance: "high", // low|medium|high (optional, default: medium) tags: ["database", "orm"] // optional } Output: { id, stored: true, deduplicated: false }
Automatically checks for duplicates. If similar content exists (cosine similarity > 0.9), updates the existing memory instead of creating a new one.
memory_search
Search past memories by semantic meaning.
Input: { query: "what database are we using", category: "decision", limit: 5 }
Output: { results: [{ id, content, category, relevance, ... }], count }
Uses vector similarity search — finds relevant memories even when wording differs.
memory_update
Update an existing memory when information changes.
Input: { id: "mem-uuid", content: "Updated content", reason: "Changed approach" }
Output: { updated: true, previous_content }
memory_delete
Remove a memory that is no longer relevant (soft delete).
Input: { id: "mem-uuid" }
Output: { deleted: true }
memory_list_projects
List all projects with stored memories.
Input: {}
Output: { projects: [{ name, path, tech_stack, memory_count, last_session }], count }
memory_session_end
Save a session summary and open items. Creates continuity between sessions.
Input: { summary: "Built auth system with JWT", open_items: ["Add refresh tokens", "Write tests"] }
Output: { saved: true, date: "2026-03-04" }
MCP Resources
The server exposes project context as an MCP resource:
- `memory://project/context` — Current project's conventions, decisions, architecture, bugs, and TODOs. MCP clients that support resources can auto-load this at session start.
Storage
All data lives locally on your machine:
~/.shackleai/
db/ memory.db SQLite database + vector index projects/ my-project/ decisions.md Key decisions with reasoning conventions.md Coding standards and patterns bugs.md Known issues and fixes architecture.md Architecture choices preferences.md Developer preferences todos.md Open items context.md General context sessions/ 2026-03-04.md Today's session summary 2026-03-03.md Yesterday's session config.yaml Optional configuration
Markdown is the source of truth. You can read, edit, or delete any memory file with a text editor. The SQLite database is the search index.
Configuration
Create ~/.shackleai/config.yaml (optional — sensible defaults work out of the box):
# Embedding provider: "local" (free, offline) or "openai" (better quality, requires API key)
embedding: provider: local
Custom storage path (default: ~/.shackleai)
storage_path: /path/to/custom/location
Maximum memories per project before oldest are archived
max_memories_per_project: 10000
Session files older than this are auto-archived
max_session_history_days: 90
Automatically detect and merge duplicate memories
auto_dedup: true
Cosine similarity threshold for deduplication (0.0 to 1.0)
dedup_threshold: 0.9
Cloud Mode
By default, ShackleAI Memory runs locally with SQLite — no account needed. Cloud mode syncs your memories to ShackleAI's managed infrastructure via the Gateway, giving you server-side persistence, cross-device access, and PostgreSQL + pgvector-powered semantic search.
Local vs Cloud
| Local (default) | Cloud | |
|---|---|---|
| Storage | SQLite + sqlite-vec on your machine | PostgreSQL + pgvector via ShackleAI Gateway |
| Embeddings | Local MiniLM-L6-v2 (CPU) | Server-side embeddings |
| Account required | No | Yes (free tier available) |
| Cross-device | No — ~/.shackleai/ is per-machine | Yes — memories persist in the cloud |
| Tools available | All 11 tools | All 11 tools |
| Offline support | Full | Requires internet |
Get an API Key
- Go to shackleai.com and sign in (or create an account)
- Navigate to Settings > API Keys
- Click Create Key — you'll get a unified account key in the format
sk_shackle_* - Copy the key. It won't be shown again.
Configure Cloud Mode
Cloud mode connects to the ShackleAI Gateway MCP endpoint with Bearer authentication. Configure your MCP client to point at the Gateway instead of running the local server.
Claude Code
claude mcp add memory-cloud --transport http https://gateway.shackleai.com/mcp \
--header "Authorization: Bearer sk_shackle_YOUR_KEY_HERE"
Or add to .mcp.json in your project:
{
"mcpServers": { "memory": { "type": "http", "url": "https://gateway.shackleai.com/mcp", "headers": { "Authorization": "Bearer sk_shackle_YOUR_KEY_HERE" } } } }
Cursor / Windsurf / VS Code Copilot
Add to your client's MCP config file:
{
"mcpServers": { "memory": { "type": "http", "url": "https://gateway.shackleai.com/mcp", "headers": { "Authorization": "Bearer sk_shackle_YOUR_KEY_HERE" } } } }
All 11 memory tools (memory_init, memory_store, memory_search, memory_update, memory_delete, memory_list_projects, memory_session_end, memory_status, memory_export, memory_import, memory_cleanup) work identically in cloud mode — no code changes needed.
Advanced: Auto-Init Options
只显示了开头部分;其余内容请在仓库中阅读