Persistent Memory for Claude Code - Unison MCP Setup
Connect Claude Code to Unison via MCP in 60 seconds: every session recalls decisions, architecture facts, and PR context automatically - no re-explaining.
Learn how to give Claude Code persistent team memory using the Unison MCP server - every session recalls your project's decisions automatically.
Install
claude mcp add unison-brain -e UNISON_TOKEN=usk_live_... -- npx -y @unisonlabs/mcpNo key yet? npx @unisonlabs/cli auth login - email OTP, no browser.
The loop the agent runs
- Task start:
brain_contextwith the task as the query - relevant decisions, facts, and history arrive as one markdown block. - While working:
brain_record_factwhen something durable is learned;brain_writefor documents worth keeping. - Task end:
brain_ingestthe conversation so extraction captures what the session produced.
Every other session - yours, your teammates', tomorrow's - recalls what this one learned.
Make it automatic
Install the Unison skill so sessions run the loop without being told - it encodes search-first/write-back, the path contract, and the weakEvidence rule:
# from the unison-brain repo
cp skill/SKILL.md ~/.claude/skills/unison-brain/SKILL.mdWorking in a team? Each teammate connects with their own key to the same workspace; what one session writes to /workspace/, every session recalls. Your agents stop disagreeing by accident.
unison-fs
Mount the Unison brain as a real local directory (FUSE on Linux, NFS on macOS) and search it semantically with sgrep - agents that understand files need no integration at all.
Persistent Memory for Cursor - Unison MCP Setup
Connect Cursor to Unison via MCP: every session recalls your project's architecture decisions, open bugs, and team conventions - no more re-explaining your codebase.