The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Memory listing page.
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.
Run this in your project directory:
This creates two files in your project:
.mcp.json — registers the memory server so your AI tool auto-starts itCLAUDE.md — tells the AI to actively use memory every sessionCommit 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.
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.
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.
The npx setup command works for all MCP clients. If you prefer client-specific configuration:
This adds memory to your global Claude Code config. It works across all projects, but won't be shared with your team via git.
Add to ~/.cursor/mcp.json:
Add to ~/.codeium/windsurf/mcp_config.json:
Add to .vscode/mcp.json in your project:
Add to your Claude Desktop config:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonOr use the global binary directly in your MCP config:
The first run downloads the embedding model (~80MB, one-time). After that, everything works offline.
npx -y @shackleai/memory-mcp@latest setup and you're done~/.shackleai/Initialize or switch project context. Auto-called on server startup — only call manually if switching projects mid-session.
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.).
Save important information to persistent memory. Use for decisions, conventions, bugs, architecture, preferences, TODOs, and context.
Automatically checks for duplicates. If similar content exists (cosine similarity > 0.9), updates the existing memory instead of creating a new one.
Search past memories by semantic meaning.
Uses vector similarity search — finds relevant memories even when wording differs.
Update an existing memory when information changes.
Remove a memory that is no longer relevant (soft delete).
List all projects with stored memories.
Save a session summary and open items. Creates continuity between sessions.
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.All data lives locally on your machine:
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.
Create ~/.shackleai/config.yaml (optional — sensible defaults work out of the box):
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 (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 |
sk_shackle_*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.
Or add to .mcp.json in your project:
Add to your client's MCP config file:
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.
The server auto-detects your project in this order:
--project-path /path/to/projectSHACKLEAI_PROJECT_PATH=/path/to/projectprocess.cwd() (this is what most MCP clients pass)For explicit control, set the project path in your MCP config:
Or via environment variable:
npx setup fails or "command not found: setup"Your npm/npx is too old. This happens when npm is v6.x (ships with older Node installers). Check with:
If it shows 6.x, fix it:
Make sure Node.js 20+ is installed. Then verify the server runs:
If using a global install, verify the binary is in your PATH:
claude mcp listIf you used npx setup, Claude Code reads .mcp.json from your project directory automatically — you don't need claude mcp list to show it. Just start claude in the project directory.
If you used claude mcp add instead, verify with:
The setup command creates a CLAUDE.md file with instructions that tell the AI to use memory proactively. If you already had a CLAUDE.md, the setup appends memory instructions to it. Check that your CLAUDE.md contains the "ShackleAI Memory" section.
If the AI still isn't storing, you can ask it directly:
"Store what you just did in memory"
This confirms the tools work, and the AI will be more proactive about storing in subsequent interactions.
The embedding model (~80MB) downloads on first use. This is a one-time download. Subsequent runs use the cached model and are fast.
Check that ~/.shackleai/ directory exists and has write permissions. The server creates it automatically on first run.
Use --project-path to explicitly set the project, or call memory_init with the correct path.
Every AI coding tool today has amnesia. Close the session, context is gone. Switch tools, everything lost.
ShackleAI fixes this by providing a universal memory layer that works across every MCP-compatible AI tool:
npx setup — or install globally with any npm version)Issues and PRs welcome at github.com/shackleai/memory-mcp.
MIT — free and open source forever.
The shackle that keeps your AI anchored. Built by ShackleAI.