# linksee-memory > Local-first memory MCP for AI coding agents. One local SQLite file gives Claude Code, Cursor, Codex, Gemini, and ChatGPT Desktop a shared, persistent memory — a 6-layer WHY structure, diff-only file cache, active forgetting, and decision-drift detection. Free and open source. Install with `npx -y linksee-memory`. ## Install - Quickstart (Claude Code): `claude mcp add -s user linksee -- npx -y linksee-memory` - npm: https://www.npmjs.com/package/linksee-memory - GitHub (OSS): https://github.com/michielinksee/linksee-memory ## What it solves - Cross-session amnesia: agents forget everything between sessions; linksee-memory persists context locally so the next session starts informed. - Cross-agent memory: the same memory is shared across Claude Code, Cursor, Codex, Gemini, and ChatGPT Desktop — declare a fact once, recall it anywhere. - Decision drift: declared decisions are checked against committed reality and flagged when the work silently diverges from what was agreed. ## Guides & comparisons - vs the official Anthropic memory MCP server: https://linksee.app/compare/anthropic-memory-mcp - Give Claude Code persistent memory across sessions: https://linksee.app/guides/claude-code-persistent-memory - Share one memory across Claude Code / Cursor / Codex / Gemini: https://linksee.app/guides/cross-agent-memory ## Docs & background - Docs: https://docs.linksee.app - "Your Claude Code forgets every session (add persistent memory in 5 minutes)": https://zenn.dev/kanseilink/articles/linksee-memory-claude-code-recall-20260508 - "Share one memory across Claude Code / Cursor / Codex / Gemini": https://zenn.dev/kanseilink/articles/linksee-memory-claude-cross-llm-20260511