Memory
概览
作者提供的说明(英文原文)
Persistent memory for AI coding tools. 11 tools for any MCP-compatible AI tool.
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 1/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@shackleai/memory-mcp" ] } } }退出 Claude 再重新打开
试一试
用 Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Memory,或回答中出现 Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Memory
Memory 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Memory 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
- Exa✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add memory -- npx -y @shackleai/memory-mcp在 Claude Code 中输入 /mcp
应能看到 Memory 在列表中并显示已连接
试一试
用 Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Memory,或回答中出现 Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Memory,或回答中出现 Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Memory,或回答中出现 Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add memory -- npx -y @shackleai/memory-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shackleai/memory-mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 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月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 shackleai 验证,该账户拥有此仓库
- ! 注意
仍在维护
代码最后更新于8个月前,已超过 6 个月
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5919 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5919 个服务器的 5% 更新
- 基础检查结果等于或优于此分类中其他 5919 个服务器的 12%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Memory 安全吗?
它在 2 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于8个月前,最新版本(0.5.2)于8个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Ruflo, Context7, Metabase
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
作者的 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.