Anamnesis MCP Server
Cross-machine, file-first memory for Claude Code: markdown + SQLite FTS5, synced with git
Anamnesis scores 58 (Fair), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases, Version control, AI and memory. GitHub shows 0 stars. Package registries report about 58 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
58 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 58 comes from
22 + 15 + 0 + 10 + 4 + 7 = 58. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "oscardvs-anamnesis": { "command": "uvx", "args": [ "anamnesis-memory" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Anamnesis
Cross-machine memory for Claude Code
Website · Docs · Benchmark · Dashboard
uv tool install anamnesis-memory && anamnesis init
ἀνάμνησις (anamnesis): Greek for recollection, the act of calling knowledge back to mind.
Anamnesis is a local-first, file-based memory layer for Claude Code that syncs across your own machines. What Claude learns about your projects (conventions, architecture decisions, fixes that worked, what you did yesterday) is stored as plain markdown, indexed locally for search, and kept in sync over your private network.
Claude Code's own memory stays on the machine where it was written. Copying a SQLite index through a cloud folder such as Dropbox or iCloud corrupts it. Anamnesis syncs the markdown with git instead and rebuilds the index on each machine, so a note written on your desktop is searchable from your laptop.
No cloud account is required. The memory stays on your machines, version-controlled and human-readable.
How it works
┌─────────────┐ git over your private mesh ┌─────────────┐
│ desktop │ ◄──────────── (Tailscale) ────────► │ laptop │
│ │ │ │
│ Claude Code│ │ Claude Code│
│ ▼ │ │ ▼ │
│ MCP server │ markdown (source of truth) │ MCP server │
│ ▼ │ + SQLite FTS index (rebuilt locally) │ ▼ │
│ ~/.anamnesis│ │ ~/.anamnesis│
└─────────────┘ └─────────────┘
- Files first. Each note is a markdown file under
~/.anamnesis/memory/, readable andgit diff-able. The markdown is the source of truth; everything else is derived from it. - A local index. A SQLite FTS5 index gives keyword (BM25) recall. It is rebuilt locally and is not synced. On the project's eval set, keyword search reaches about 94% recall, so there is no vector store until measurements call for one.
- Sync over git. The markdown is a git repo synced over your private Tailscale mesh, or any git remote you control. Only the markdown travels; each machine rebuilds its own index, so the database file is not copied between machines. If two machines edit the same note, sync reports a git conflict instead of dropping either side.
- Claude Code integration. An MCP server exposes read-only query tools, and session hooks do the rest: SessionStart injects the relevant notes, and SessionEnd captures a summary of the session and syncs it.
- Reflection and merge. An optional reflection pass (any OpenAI-compatible model, set in config)
distills session notes into durable notes, and
anamnesis mergeconsolidates near-duplicates. Generated notes carry provenance and confidence in their front-matter.merge --applyis gated on your eval set so it does not lower recall, andanamnesis evalmeasures reflection before and after on a sandbox copy. - A dashboard. A web GUI to browse, search, edit, and read the history of your memory across every machine.
Quickstart
Prereqs: Claude Code, uv, and git.
uv tool install anamnesis-memory && anamnesis init
anamnesis init registers the MCP server with Claude Code at user scope, installs the SessionStart,
SessionEnd, and PreCompact hooks, configures the store at ~/.anamnesis, and runs a first sync. It is
idempotent: it backs up settings.json and does not duplicate hooks. --print shows the full plan without
writing anything, and --local-only skips the remote until you want one.
Claude Code gets five tools: memory_search, memory_list, and memory_status (read-only, safe to
auto-approve), plus memory_write and memory_sync. Full reference:
CLI ·
MCP tools ·
configuration.
git clone https://github.com/oscardvs/anamnesis && cd anamnesis/server
uv venv --python 3.12
uv pip install -e ".[mcp,dev]"
uv run anamnesis init --print
The repo also ships a project-scoped .mcp.json. Claude Code launches MCP servers with a filtered
environment, so ANAMNESIS_HOME / ANAMNESIS_MACHINE_ID / ANAMNESIS_GIT_REMOTE belong in its "env"
block, not your shell. Server internals: server/README.md.
Cross-machine sync
Memory is a git repo (~/.anamnesis/memory/) synced over your private
Tailscale mesh, or any git remote you control. Set it up once:
-
Put every machine on the same tailnet (install Tailscale,
tailscale up). Pick one always-on machine to host the shared repo;tailscale statusprints its MagicDNS name (for examplehost.your-tailnet.ts.net). -
Create one shared bare repo on the host:
git init --bare -b main ~/anamnesis-memory.git -
Point each machine at it:
anamnesis init --remote 'you@host.your-tailnet.ts.net:anamnesis-memory.git'The host itself uses the local path:
--remote "$HOME/anamnesis-memory.git".
Sync runs commit -> pull --rebase -> push and rebuilds the local index after pulling, so a note written on
one machine is searchable on the others within a sync cycle. If you started with --local-only, re-run
init --remote ... later; the store attaches to the remote and pushes its history.
Hooks
anamnesis init installs three Claude Code hooks:
- SessionStart injects the most relevant notes for the current project (your global preferences, the project's durable notes, and a couple of recent session summaries) and starts a background sync.
- SessionEnd captures an episodic note from the session transcript and syncs it, so it is on your other machines by the next session. PreCompact captures the same kind of note before context compaction.
Two more commands build on them:
- Reflection (optional). Point
anamnesis config set reflection.provider ...at an OpenAI-compatible model andanamnesis reflectdistills accumulated session notes into durable conventions. Withreflection.autoset, it runs at session end once a project has enough unreflected notes.anamnesis mergeconsolidates near-duplicates and only applies if recall on your eval set holds. - Import.
anamnesis importcopies Claude Code's own per-project memory into the store, so notes you already wrote for it are included.
To set the hooks up by hand instead of with init, copy
examples/hooks.settings.json into ~/.claude/settings.json and point it
at your install.
Benchmark
bench/cross-machine-tokens/ runs one scripted task on a fresh machine
twice: once without Anamnesis, where the agent explores the project to learn its conventions, and once with
the real SessionStart memory block injected. It drives the Claude Code CLI headlessly on a synthetic project,
so a Pro/Max subscription is enough and no API key is needed.
The committed result.json (3 runs per arm on claude-opus-4-8) shows about 8% fewer total input tokens
with memory, 366k versus 336k on average, with output tokens and turn count about the same. The conventions
were known from the first turn instead of being rediscovered. An earlier version of the scenario used a
5-file project and showed no difference; that null result is documented in the same README.
Dashboard
A web GUI for the memory store: browse and full-text search every note, edit markdown with per-note history, see every machine (which one wrote what and when it last synced), and run reflection from the browser. Provenance badges show where each note came from: you, a session capture, reflection, or import.

npx anamnesis-dashboard # http://localhost:3000
or, from the CLI you already have:
anamnesis dashboard
Needs Node 20 or newer. From a repo clone, cd dashboard && npm run dev works for development.
It is a thin read/write client over the same local store the MCP server uses: it reads the SQLite index
directly and shells out to the anamnesis CLI for writes and sync. Use --port, --store, and
--no-open to adjust how it serves. See dashboard/README.md for configuration
and design notes.
Status
September 2026: v0.1.3 is on PyPI. The local-first core is done and has been used across a real multi-machine setup: the store, the MCP server, the hooks, git sync, the one-command install, the reflection and merge passes with their eval harness, and the dashboard. APIs may still change between releases.
Next: a hosted relay for people without their own mesh (the server already ships anamnesis relay commands
behind a [relay] extra, but they are not documented yet) and team memory.
Repository layout
| Path | What |
|---|---|
server/ | The MCP memory server and CLI (Python, FastMCP). |
dashboard/ | The memory GUI (Next.js). |
site/ | The public website and docs (live). |
bench/ | The cross-machine token benchmark and the demo recording pipeline. |
examples/ | A hand-written hooks.settings.json for manual hook setup. |
Contributing
Issues and discussion are welcome. If the install is rough on your machine, open an issue with the exact command you ran and its output.
License
Apache License 2.0. See NOTICE.
Frequently asked questions
What is Anamnesis MCP Server?
Cross-machine, file-first memory for Claude Code: markdown + SQLite FTS5, synced with git
How do I install Anamnesis MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Anamnesis MCP Server runs locally from the PyPI package anamnesis-memory with the command uvx anamnesis-memory.
Is Anamnesis MCP Server free and open source?
Yes. Anamnesis MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Anamnesis MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Anamnesis MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Anamnesis MCP Server's trust score calculated?
Anamnesis MCP Server scores 58 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.