A local-first memory layer that persists project context across AI coding sessions. Installs globally via npm and auto-configures for Claude Desktop, Cursor, VS Code, Continue, Zed, Windsurf, and others. Exposes eight core tools: set_project to anchor a codebase, remember and recall for decisions and constraints, read_file and search for exploration, structure for directory traversal, git for repository analysis including hotspots and coupling, and optional read-only Notion lookup. Stores everything in a local SQLite database and can install git hooks to capture context automatically on commit, merge, and checkout. Reach for this when you need session continuity without relying on model memory alone.
Local-first project memory for AI coding tools over MCP.
Context Sync gives an agent a persistent memory layer for a codebase:

Context Sync is built for session continuity. Instead of relying on a model to remember earlier conversations, it stores the project context that matters and makes it retrievable through a small MCP tool surface.
The current core tools are:
set_projectrememberrecallread_filesearchstructuregitnotionInstall globally:
npm install -g @context-sync/server
Auto-configuration runs during global install. After install, restart your AI tool.
If you install locally instead of globally, auto-config does not run. Use the manual config guide in docs/CONFIG.md.
Check that context-sync appears in your MCP tool list:
codex mcp listclaude mcp listIf auto-config fails, use docs/TROUBLESHOOTING.md and docs/CONFIG.md.
Run the setup wizard if you want Notion integration:
context-sync-setup
or:
npx context-sync-setup
Notion support is intentionally read-only at the tool surface:
notion({ action: "search", query: "..." })notion({ action: "read", pageId: "..." })Start every new session by setting the project first:
1. set_project({ path: "/absolute/path/to/project" })
2. recall()
3. structure({ depth: 2 })
4. read_file({ path: "src/index.ts" })
5. remember({ type: "decision", content: "Use SQLite for local storage" })
Recommended pattern:
set_project once per project/session startrecall to recover contextstructure and search to exploreread_file for focused inspectionremember when something should survive the current sessionWhen you run set_project inside a git repository, Context Sync can install hooks for automatic context capture.
Installed hooks:
post-commitpre-pushpost-mergepost-checkoutHooks are marked with Context Sync Auto-Hook, and existing hooks are backed up first.
The git tool supports:
statuscontexthotspotscouplingblameanalysisDefault locations:
~/.context-sync/data.db~/.context-sync/config.json~/.context-sync/install-status.jsonCustom database options:
context-sync --db-path /absolute/path/to/dbCONTEXT_SYNC_DB_PATHSee docs/DATA.md for storage details.
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent