Memoir logo

Memoir

Project-scoped memory and handoffs for coding agents, stored locally with optional Git, cloud, and encrypted backups.

Install Memoir

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for memoir, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

memoir MCP server gives coding agents persistent, project-scoped memory through readable local files and MCP tools. It records decisions, rationale, goals, next actions, canonical memories, and session handoffs, then retrieves them through search and resume operations. Optional local, Git, and cloud backup workflows move encrypted state between machines. Use memoir when an agent needs continuity across sessions, tools, or development environments without storing the project ledger in Git.

Use cases

  • Save project decisions and their rationale for later sessions
  • Resume coding work across Codex and Cursor
  • Search shared and project-scoped engineering notes
  • Back up memory and session state between machines

Key features

  • Project-scoped memory in local files
  • Decision, rationale, goal, and next-action tracking
  • Lexical recall with source-change checks
  • Cross-session project handoffs
  • Local, Git, and cloud backup workflows
  • Encrypted backup and recovery operations

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

6/6 checks healthy over the last 42d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev

Adoption & maintenance

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

GitHub stars15Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.

How Memoir works

What memoir does

memoir MCP server provides persistent context for coding agents working on a project. It stores decisions, explanations, goals, next actions, and canonical memory records in local Markdown and JSON files. The MCP connection lets an agent save, search, read, resume, and hide memory without requiring the agent to execute terminal commands.

Memory is separated into project-scoped and shared records. Project scope is based on MEMOIR_PROJECT_ROOT or the current working directory, while shared records require an explicit shared scope. The project ledger is kept in ignored .memoir/ files. Canonical memories and session state are stored under ~/.config/memoir/.

How it works

Install the CLI, run setup from a project directory, and let Memoir create a project MCP entry. The setup process preserves existing settings and starts the server to check its tools; the client still needs to accept its project trust or MCP prompt and may need a restart.

Agents can add a decision with its rationale, save a canonical Markdown memory, search active project and shared records, or request a session resume. Recall uses an incremental lexical index while checking source changes and scope. Resume reports the saved goal, questions, decisions, and next actions, and compares the saved commit with the current checkout.

The separate project handoff workflow supports continuity between Codex and Cursor on the same folder and branch. It records answers, decisions, next actions, and Memoir check receipts rather than importing personal memory or transcripts. The project view opens in a local browser for searching, correcting, or removing saved handoff records. Local recovery snapshots can be inspected or exported as encrypted backups.

Setup and configuration

Node.js 18 or later can run the CLI; maintained Node.js 22 or 24 releases are recommended for production use.

Terminal
npm install -g memoir-cli
cd /path/to/project
memoir setup --tool claude,codex,cursor

Typical memory commands include memoir goal, memoir note, memoir next, memoir recall, and memoir resume. The project handoff commands are memoir work setup, memoir work resume, memoir work view, memoir work doctor, and memoir work backup.

Use memoir init to select a backup destination and encryption settings. Local and Git backup operations use memoir push and memoir restore; cloud operations use memoir cloud push and memoir cloud restore. Encrypted backups require a passphrase supplied through the environment or interactively. Cloud writes require a user-held secret of at least 12 characters.

Tools and capabilities

  • memoir_note stores a scoped decision and rationale.
  • memoir_remember writes a canonical Markdown record.
  • memoir_recall searches project and shared memory and returns matching evidence.
  • memoir_read opens a canonical record by ID.
  • memoir_resume returns current continuity information and compares commits.
  • memoir_forget hides or purges matching decisions and records.
  • CLI workflows support project handoffs, browser viewing, checks, local recovery, and backup or restore operations.

Limitations and notes

Canonical memory files and session state are plaintext on the device; backup encryption does not encrypt those source files. Scope is an organizational boundary, not authentication against an agent that can already read the filesystem. Different checkouts are not bridged through GitHub by the project handoff workflow, and ordinary terminal checks are not captured automatically.

Cloud recovery has no lost-passphrase recovery service. Self-hosted cloud services must apply the required database migration before accepting new writes. Legacy records may need review and labeling before strict scope isolation can be trusted.

Reviews

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

Frequently Asked Questions about Memoir

memoir is an MCP server that connects coding agents to project-scoped local memory. Its main tools record decisions and canonical notes, search saved context, read records, resume sessions, and forget entries. The companion CLI also manages project handoffs, local browser views, recovery snapshots, and optional local, Git, or cloud backups.

Install it with `npm install -g memoir-cli`, change to the project directory, and run `memoir setup --tool claude,codex,cursor`. Restart the client and accept its project trust or MCP prompt. Node.js 18 or later is supported, with Node.js 22 or 24 recommended for production.

Yes, memoir supports Cursor through its project MCP setup and project handoff workflow. Run `memoir setup --tool cursor`, or use `memoir work setup` for handoffs, then open the same folder and branch in Cursor and ask it to continue the project.

memoir stores project ledger files in ignored `.memoir/` files, canonical memory under `~/.config/memoir/memories/`, and session state in `~/.config/memoir/session.json`. New memories use `MEMOIR_PROJECT_ROOT` or the current working directory unless you explicitly select shared scope.

Run `memoir init` to choose a destination and encryption, then use `memoir push` and `memoir restore` for local or Git backups. Cloud storage uses `memoir cloud push` and `memoir cloud restore`. Encrypted backups require a passphrase, while new cloud writes require a secret of at least 12 characters.

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