Linksee Memory logo

Linksee Memory

by michielinksee

Local SQLite memory for Claude Code, Cursor, Codex, Gemini CLI, and Windsurf with recall, decision anchors, and drift detection.

Install Linksee Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "michielinksee-linksee-memory": {
      "command": "npx",
      "args": [
        "-y",
        "linksee-memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio michielinksee-linksee-memory -- npx -y linksee-memory

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 7 tools correctly ().

Overview

michielinksee/linksee-memory stores cross-session agent memory in one local SQLite file shared by supported coding clients. Its MCP tools cover remembering and recalling decisions, learnings, caveats, and file history, while drift detection compares recorded intent with committed reality. Claude Code can also install hooks for session capture and decision reinjection; other clients share the database but rely on agents calling the tools. Reach for it when a project needs persistent, local-only context across sessions or when code should be checked against explicit product decisions.

Use cases

  • Record decisions and caveats for later coding sessions
  • Recall file history before changing an existing implementation
  • Check product decisions for drift after completing work
  • Share a reviewed, sanitized field note after resolving an integration issue

Key features

  • Local SQLite memory shared across coding clients
  • Session briefs, relevance search, and file history
  • Decision anchors with optional path and violation scopes
  • Drift detection with human resolution states
  • AST-aware cached file reading
  • English and Japanese memory support

Tools7

What Linksee Memory lets your agent do. Expand a tool for its parameters.

Verified live~4.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 69d

What it can do

From the 7 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 1Handles credentials · 2Makes network requests · 1Read-only tools · 6
Tool definitions changed on 2026-11-30. Review them if you approved this server earlier.
Network at startup3 connections
Files written at startup3
Install scriptsNone
npm provenanceSigned build
Package age228 days
Maintainers1

Observed 2026-11-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · linksee-memory (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars16Stargazers on the source repository.
npm downloads4.3kPackage downloads in the last 30 days.
Last commit19d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed7Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Linksee Memory works

What michielinksee/linksee-memory does

michielinksee/linksee-memory provides local-first memory for AI-assisted software work. It keeps knowledge in a SQLite database on the machine, allowing Claude Code, Cursor, Windsurf, OpenAI Codex, and Gemini CLI to use the same records. The database is shared across projects on that machine and records can include their originating client and project entity.

The memory model covers context, learnings, goals, caveats, and decisions. Importance values of 0.9 or higher pin records against automatic forgetting. The server supports English and Japanese, and uses an Ebbinghaus-style forgetting curve for unpinned memories. A decision can also be attached to an anchor so it is treated as an enforceable constraint rather than only a historical note.

How it works

The remember tool creates, updates, or deletes records. A plain create stores content; an anchor can turn a decision into a normative rule with optional forbidden signals and path globs. Updates can replace content or merge selected JSON keys, and supersedes can mark a newer decision as replacing an older one.

recall supports relevance-ranked search, file history, session briefs, topic location, decision triage, and entity listings. Calling it without parameters produces a session-oriented brief, while path returns edit history and where locates a topic on the Current Truth Map. The read_smart tool caches AST-aware file chunks so unchanged rereads use little output and modified files return changed chunks.

Truth-map tools represent hypotheses, constraints, commitments, and sources of truth. drift_status reports aligned, held, review, or drifting items. resolve_drift records whether an item was fixed, superseded, acknowledged, dismissed, hardened, or softened. declare_anchor accepts only explicitly declared human intent; it does not infer anchors from patterns.

Setup and configuration

Node.js 22.16 or later is recommended because SQLite with FTS5 is built into Node. Node.js 20 and Node.js 22.0 through 22.15 can use better-sqlite3, which may need a native build and an allowed npm install script.

For Claude Code, run npx -y linksee-memory setup from a shell to register the MCP server, install the skill, and add session and guard hooks. The command modifies Claude configuration files while retaining a backup of settings.json. Use setup --dry-run to inspect changes first. Codex can register the server with codex mcp add linksee -- npx -y linksee-memory.

Claude Code can alternatively install the plugin from its marketplace. The plugin and shell setup should not be enabled together: the plugin provides the MCP server and skill, while shell setup also installs hooks. The server can also be started with npx -y linksee-memory@latest.

Tools and capabilities

  • remember: Save, update, delete, pin, supersede, or enforce project knowledge.
  • recall: Search memory, inspect file history, create session briefs, locate topics, and run triage views.
  • read_smart: Read files with cached chunk metadata and AST-aware change detection.
  • drift_status: Inspect divergence between recorded intent and current reality.
  • declare_anchor: Record an explicit decision, constraint, prohibition, commitment, or reference point.
  • resolve_drift: Record human feedback about a drift item and adjust its enforcement state.
  • share_draft: Build a review link for a field note after the user asks to share it.

share_draft validates the draft for secrets and sensitive-looking values, keeps the URL under 2,000 characters, and returns a URL plus notice. It does not send the note automatically; the user must open and submit the link.

Limitations and notes

The database is local to one machine. There is no account, API key, cloud synchronization, or network call by default, so transferring memory to another machine requires copying ~/.linksee-memory/ with clients closed.

Claude Code receives the special behavior supplied by hooks: automatic session capture and reinjection before edits. Cursor, Windsurf, Codex, and Gemini CLI share the memory but do not receive those pre-edit warnings or automatic saves; their agents must call the MCP tools.

A database from schema versions 1 through 5 must be migrated with the matching migration command before use. Migration should be performed with clients closed and creates a copy while moving the original files into a dated backup directory. The project is released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Linksee Memory

michielinksee/linksee-memory is an MCP server that connects Claude Code, Cursor, Windsurf, Codex, and Gemini CLI to one local SQLite memory. Its main tools remember and recall project knowledge, read files with cached diffs, detect drift from decisions, declare anchors, resolve drift, and create reviewed sharing links.

Run `npx -y linksee-memory setup` for Claude Code or `codex mcp add linksee -- npx -y linksee-memory` for Codex. Claude Code can also install the marketplace plugin. Do not use the plugin and shell setup together if you want to avoid registering the server twice.

Yes, Cursor can share the local SQLite memory with the other supported clients. Cursor receives saved and recalled records, but the Claude Code-only hooks for automatic session capture and pre-edit warnings do not apply to Cursor.

It compares explicit truth-map anchors, such as decisions and constraints, with committed reality and classifies items as drift, review, held, or aligned. Use `drift_status` to inspect results and `resolve_drift` to record a fix, supersession, acknowledgement, dismissal, or enforcement change.

No, the memory stays in a local SQLite file and the server makes no network calls by default. Sharing is a separate user-directed workflow: `share_draft` builds a reviewed link, but the user must open and submit it.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLinksee Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/michielinksee-linksee-memory?style=directory)](https://allmcps.com/mcp/michielinksee-linksee-memory)
HTML Embed
<a href="https://allmcps.com/mcp/michielinksee-linksee-memory"><img src="https://allmcps.com/api/badge/michielinksee-linksee-memory?style=directory" alt="Linksee Memory on AllMCPs" /></a>