# Memoir

> Memoir is a freemium MCP server for knowledge and memory. Project-scoped memory and session handoffs for coding agents, stored in local files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/camgitt/memoir
- **MCP Registry name:** io.github.camgitt/memoir
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add memoir -- npx -y memoir-cli
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add memoir -- npx -y memoir-cli
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.memoir]
command = "npx"
args = ["-y", "memoir-cli"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user memoir npx -- -y memoir-cli

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "memoir": {
      "command": "npx",
      "args": [
        "-y",
        "memoir-cli"
      ]
    }
  }
}
```

## Tools

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_read` (name 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

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/memoir-2
