Memoir
Project-scoped memory and session handoffs for coding agents, stored in local files
Memoir is a freemium MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- Version
- 3.17.6
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add memoir -- npx -y memoir-cliAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"memoir": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add memoir -- npx -y memoir-cliOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.memoir]
command = "npx"
args = ["-y", "memoir-cli"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Or run: gemini mcp add -s user memoir npx -- -y memoir-cli
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "memoir": { "command": "npx", "args": [ "-y", "memoir-cli" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Memoir
Decisions, rationale, goals and next actions are kept as readable files on your machine, and an MCP server lets a coding agent save and fetch them. A separate project handoff carries answered questions, decisions, next actions and receipts from checks run through the tool, so work can move between clients such as Codex and Cursor in the same folder and branch. It deliberately does not import personal memory or transcripts, and the MCP connection cannot execute commands.
Tools cover recording a decision with its reasons, writing a canonical Markdown memory, recalling matches with paths and line evidence, resuming with the saved goal compared against the current commit, and forgetting a record, optionally purging its history. Scope can be project or shared. The README is frank that memory files are plaintext on the device and that scope is an organisational boundary, not access control.
Backups are optional and local, Git or cloud, with client-side encryption and a passphrase you hold. A browser project view lets you search saved answers and correct or remove decisions. It needs Node.js 18 or newer, and Node 22 or 24 is recommended for production.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 6 tools reads data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- memoir_note
- Record a scoped decision and rationale
- memoir_remember
- Write a canonical Markdown record
- memoir_readName suggests: reads
- Read a record by id
- memoir_recall
- Search active project and shared records
- memoir_resume
- Return goal, next actions, questions and decisions
- memoir_forget
- Hide or purge a decision or record
What it does
- Project memory
- Stores decisions, rationale, goals and next actions in local readable files.
- Cross-client handoff
- Continues a project between clients like Codex and Cursor.
- Recall with evidence
- Returns matching passages with paths and line evidence.
- Resume with checks
- Compares the saved commit with the checkout so old notes do not imply passing tests.
- Encrypted backups
- Local, Git or cloud copies with a passphrase you hold.
- Browser project view
- Search, correct or remove saved decisions.
Good for
- Resume a coding task in a fresh agent session
- Hand a project from Codex to Cursor
- Record why a design choice was made
- Search past decisions on a topic
- Back up agent memory between machines
Pricing
Freemium
Local use is free; cloud backup has plans including Pro, prices not published
Memoir FAQ
Where is memory stored?
In plaintext files under ~/.config/memoir on your device; backups can be encrypted.
Does installing upload my project?
No. The README says publishing the package does not upload your project ledger and the handoff runs locally.
Which clients does Memoir support?
Setup lists Claude, Codex and Cursor, among others.
What does Memoir need?
Node.js 18 or newer.
Is Memoir free?
Memoir has a free plan, with paid plans for more usage or features.
How do I add Memoir to Claude Code?
Run this command in your terminal: claude mcp add memoir -- npx -y memoir-cli
What are the best alternatives to Memoir?
The closest alternatives to Memoir are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


