Anamnesis logo

Anamnesis

Cross-machine Markdown memory for Claude Code, with local SQLite search, Git sync, hooks, and five MCP tools.

Install Anamnesis

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": {
    "anamnesis": {
      "command": "npx",
      "args": [
        "-y",
        "anamnesis-dashboard"
      ],
      "env": {
        "ANAMNESIS_HOME": "YOUR_VALUE_HERE",
        "ANAMNESIS_MACHINE_ID": "YOUR_VALUE_HERE",
        "ANAMNESIS_GIT_REMOTE": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env ANAMNESIS_HOME=YOUR_VALUE_HERE --env ANAMNESIS_MACHINE_ID=YOUR_VALUE_HERE --env ANAMNESIS_GIT_REMOTE=YOUR_VALUE_HERE --transport stdio anamnesis -- npx -y anamnesis-dashboard

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y anamnesis-dashboard

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Anamnesis MCP server gives Claude Code access to a local, Markdown-first memory store with SQLite FTS5 search. It exposes five MCP tools for searching, listing, checking, writing, and synchronizing notes, while Claude Code hooks inject relevant context and capture session summaries. Git sync transfers Markdown between machines and rebuilds each machine’s local index, avoiding database-file synchronization. Reach for it when Claude Code needs durable project knowledge across computers without a cloud memory service.

Use cases

  • Share Claude Code memory across desktop and laptop
  • Search project conventions and past fixes
  • Capture session summaries before context compaction
  • Review and edit memory as Markdown under Git
  • Reflect session notes into durable project knowledge

Key features

  • Markdown-first memory storage
  • SQLite FTS5 keyword search
  • Git-based cross-machine synchronization
  • Claude Code session hooks
  • Five MCP memory tools
  • Optional reflection and note merging

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.

15/15 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · anamnesis-dashboard (npm)

Adoption & maintenance

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

npm downloads23Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Anamnesis works

What the Anamnesis MCP server does

The Anamnesis MCP server connects Claude Code with a local memory store under ~/.anamnesis. Notes are stored as Markdown files, making them readable, editable, and reviewable with Git. A SQLite FTS5 index is generated locally for keyword search; the database is derived data rather than the shared source of truth.

The store is intended for information such as project conventions, architecture decisions, successful fixes, preferences, and recent session summaries. Claude Code can receive relevant notes when a session begins, and session hooks can record information when a session ends or before context compaction.

How it works

Each machine keeps its own working copy of the Markdown memory repository and its own search index. Synchronization uses Git over a private network such as Tailscale, or another Git remote under your control. The sync sequence commits local changes, pulls with rebase, pushes updates, and rebuilds the local index after incoming changes.

Only Markdown is synchronized. If two machines modify the same note, Git reports a conflict rather than silently discarding one version. This design keeps the files portable and version-controlled while allowing search to remain local.

The Anamnesis MCP server provides Claude Code with five tools: memory_search, memory_list, memory_status, memory_write, and memory_sync. The first three are read-only. Hooks handle session context and capture, while the MCP tools let Claude Code query or update the store during work.

Optional reflection uses an OpenAI-compatible model configured by the user. It can turn accumulated session notes into durable notes. The merge command can consolidate near-duplicates, and eval measures reflection on a sandbox copy before changes are applied.

Setup and configuration

Install the package with uv tool install anamnesis-memory, then run anamnesis init. The initializer registers the MCP server with Claude Code at user scope, installs the SessionStart, SessionEnd, and PreCompact hooks, configures ~/.anamnesis, and performs an initial sync. --print previews the plan, while --local-only starts without a remote.

For cross-machine use, create a shared bare Git repository and pass its location to anamnesis init --remote. A Tailscale mesh is one documented option, but the remote can be any Git repository the machines can access. The repository can be attached later if setup began in local-only mode.

When configuring a project-scoped .mcp.json, Claude Code’s filtered environment means ANAMNESIS_HOME, ANAMNESIS_MACHINE_ID, and ANAMNESIS_GIT_REMOTE should be placed in the MCP server’s env block. The project also documents installation from source with Python 3.12 and the MCP extra.

Limitations and notes

The documented client integration is Claude Code. The search system uses keyword BM25 recall through SQLite FTS5 and does not use a vector store. The README reports approximately 94% recall on its project evaluation set, so semantic vector retrieval is not part of the described design.

No cloud account is required, but synchronization still depends on Git connectivity when using a remote. Reflection additionally requires an OpenAI-compatible model configured by the user. Generated notes include provenance and confidence metadata, and dashboard access is available through a separate web GUI for browsing, searching, editing, viewing history, and running reflection.

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 Anamnesis

Anamnesis is an MCP server that connects Claude Code to a local, Git-synced memory store built from Markdown and a SQLite FTS5 index. Its main tools are memory_search, memory_list, memory_status, memory_write, and memory_sync. Session hooks add relevant notes, capture session summaries, and synchronize memory across machines.

Install it with `uv tool install anamnesis-memory` and run `anamnesis init`. The command configures the store, registers the MCP server with Claude Code, installs the session hooks, and performs an initial sync. Use `--print` to preview changes or `--local-only` to defer remote setup.

Anamnesis syncs Markdown through Git and rebuilds the SQLite search index separately on each machine. Configure a shared bare repository or another Git remote, optionally reachable over Tailscale, then run `anamnesis init --remote` on each machine. Conflicting note edits are reported as Git conflicts.

The documented setup installs the server, tools, and hooks specifically for Claude Code.

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 PreviewAnamnesis AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anamnesis?style=directory)](https://allmcps.com/mcp/anamnesis)
HTML Embed
<a href="https://allmcps.com/mcp/anamnesis"><img src="https://allmcps.com/api/badge/anamnesis?style=directory" alt="Anamnesis on AllMCPs" /></a>