🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

memoir-cli

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memoir-cli

MCP server that gives Claude, Cursor, and Gemini long-term memory across sessions. Your AI remembers your codebase, decisions, and preferences — across tools and machines.

Source
npmnpm
Version
3.4.0
Version published
Weekly downloads
33
-77.24%
Maintainers
1
Weekly downloads
 
Created
Source

memoir

Portable memory for every AI coding tool.

npm version npm downloads GitHub stars License: MIT

npm install -g memoir-cli
memoir activate

Your AI now remembers across sessions, tools, and machines. Works with Claude Code, Cursor, Windsurf, Gemini, Copilot, and 6 more tools.

What it does

memoir is an MCP server that gives your AI tools persistent memory. Your AI can search, save, and recall context automatically.

you: how does auth work in this project?

  memoir_recall("auth setup architecture")
  Found 3 memories matching "auth"

claude: Based on your previous sessions: this project uses JWT auth
  with refresh tokens, the middleware is in src/middleware/auth.ts,
  and you chose Zustand over Redux for auth state (decided March 12).

No re-explaining. memoir remembered.

Setup

1. Install

npm install -g memoir-cli

2. Add MCP to your AI tool

Claude Code — add to ~/.mcp.json:

{
  "mcpServers": {
    "memoir": { "command": "memoir-mcp" }
  }
}

Cursor — add to .cursor/mcp.json:

{
  "mcpServers": {
    "memoir": { "command": "memoir-mcp" }
  }
}

3. Activate in your project

memoir activate

That's it. Your AI now has 6 memory tools:

MCP ToolWhat it does
memoir_recallSearch across all your AI memories
memoir_rememberSave context for future sessions
memoir_listBrowse all memory files by tool
memoir_readRead a specific memory in full
memoir_statusSee which AI tools are detected
memoir_profilesSwitch between work/personal

Why memoir

Your AI forgets everything between sessions. You re-explain your codebase, your conventions, your decisions — every time.

memoir fixes this by giving your AI a shared memory layer that works across every tool you use. Tell Claude something once. Cursor knows it too.

11 tools supported: Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, OpenAI Codex, ChatGPT, Aider, Zed, Cline, Continue.dev

Sync across machines

# Back up
memoir push

# Restore on any machine
memoir restore -y

Push syncs AI memory, session context, workspace (git repos + uncommitted work), and project configs. E2E encrypted with AES-256-GCM.

Translate between AI tools

memoir migrate --from chatgpt --to claude
# AI-powered — rewrites conventions, not copy-paste

memoir migrate --from chatgpt --to all
# Translate to every tool at once

Cloud sync

memoir login
memoir cloud push      # encrypted cloud backup
memoir cloud restore   # restore from any version
memoir history         # view backup versions
memoir share           # create encrypted shareable link

All Commands

CommandWhat it does
memoir activateEnable auto-recall in this project
memoir deactivateRemove memoir from this project
memoir pushBack up AI memory + workspace + session
memoir restoreRestore everything on a new machine
memoir statusShow detected AI tools
memoir migrateTranslate memory between tools via AI
memoir snapshotCapture current coding session
memoir resumePick up where you left off
memoir encryptToggle E2E encryption
memoir profileManage profiles (personal/work)
memoir cloud pushBack up to memoir cloud
memoir cloud restoreRestore from memoir cloud
memoir shareCreate encrypted shareable link
memoir doctorDiagnose issues
memoir diffShow changes since last backup
memoir viewPreview what's in your backup
memoir updateSelf-update to latest version

Security

  • E2E encryption — AES-256-GCM with scrypt key derivation
  • Secret scanning — API keys, tokens, passwords auto-redacted before sync
  • Local MCP server — runs on your machine, no data sent externally
  • Zero-knowledge cloud — encrypted before upload

MIT Licensed

Keywords

mcp

FAQs

Package last updated on 05 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts