memoir

memoir

An MCP memory server that gives AI tools persistent memory across sessions, tools, and machines. It supports 11 AI coding tools, with features like sync, migrate, and consolidate.

Category
访问服务器

README

<div align="center">

memoir

Sync AI memory across every coding tool. Zero config.

npm version npm downloads GitHub stars License: MIT

</div>

npx memoir-cli

One command. No install, no config, no API keys. Your AI now has persistent memory across sessions, tools, and machines. Works with Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, and 6 more tools.


What it does

memoir is an MCP memory server that gives your AI tools persistent memory. Your AI can search, save, and recall context automatically — like a Claude Code backup that works everywhere.

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.

Quick start

npx memoir-cli

That's it. memoir detects your AI tools, configures MCP, and activates memory. No global install needed.

Your AI gets 14 memory tools:

MCP Tool What it does
memoir_recall Search across all your AI memories
memoir_remember Save context for future sessions
memoir_list Browse all memory files by tool
memoir_read Read a specific memory in full
memoir_consolidate Analyze memories for duplicates, staleness, and bloat
memoir_status See which AI tools are detected
memoir_profiles Switch between work/personal
memoir_set_goal Set the current session goal (pinned into CLAUDE.md)
memoir_add_next Add a next action to the current session
memoir_complete_next Mark a next action as done
memoir_note Record a decision with its rationale
memoir_ask Capture an open question for later
memoir_session Show goals, next actions, decisions, and recent sessions
memoir_why Look up why a past decision was made

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. Sync AI memory between tools, back it up to the cloud, restore it on any machine. And when your memories pile up, memoir consolidate cleans house — finds duplicates, flags stale context, and optionally uses AI to merge and prune.

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

Sync across machines

memoir push       # back up AI memory + workspace + session
memoir restore -y # restore on any machine

Push syncs AI memory, cursorrules, 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

Consolidate memories

memoir consolidate          # scan for duplicates, stale files, bloat
memoir consolidate --smart  # AI-powered analysis (finds contradictions + merge candidates)
memoir consolidate --apply  # interactively clean up

Over time, memories pile up across tools. Consolidate finds exact and near-duplicates, flags files untouched for 60+ days, and catches contradictions where you told Claude one thing and Cursor another. With --smart, Gemini Flash does a semantic pass and suggests intelligent merges.

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

Command What it does
memoir activate Enable auto-recall in this project
memoir deactivate Remove memoir from this project
memoir push Back up AI memory + workspace + session
memoir restore Restore everything on a new machine
memoir status Show detected AI tools
memoir migrate Translate memory between tools via AI
memoir snapshot Capture current coding session
memoir resume Pick up where you left off
memoir encrypt Toggle E2E encryption
memoir profile Manage profiles (personal/work)
memoir cloud push Back up to memoir cloud
memoir cloud restore Restore from memoir cloud
memoir share Create encrypted shareable link
memoir consolidate Find duplicates, stale memories, and bloat
memoir doctor Diagnose issues
memoir diff Show changes since last backup
memoir view Preview what's in your backup
memoir update Self-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

Links

MIT Licensed

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选