# Brigade Memory

> Brigade Memory is an open-source MCP server for knowledge and memory. Shared memory, MCP config and check records for coding agents like Claude Code and Codex. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, VS Code, Self-hosted
- **Website:** https://brigade.tools
- **Repository:** https://github.com/escoffier-labs/brigade
- **MCP Registry name:** io.github.escoffier-labs/brigade-memory
- **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-27

## About

Coding agents such as Claude Code, Codex and Cursor each keep their own notes, so context learned in one session often disappears before the next. BrigadeStack stores durable memory as markdown cards inside the repository, where any checkout and any supported agent can search them. Agents leave handoff notes with decisions and next steps, which a reviewer can file as cards.

The same tool keeps one catalog of MCP servers and skills in a single file and writes it into each configured tool's own config, previewing changes before writing. It also runs test and build commands through a verification command that saves the command, exit code, logs and a fingerprint of the tested tree, so another agent can confirm what was run against which code.

It suits developers who switch between several coding agents on the same repository and want shared context, consistent MCP setup and verifiable test runs without a hosted service. The memory server exposes cards and a handoff writer over MCP, and the workflow runs on local files.

## Features

- **Shared memory cards:** Durable notes are stored as markdown cards in the repo and found by search from any checkout.
- **Handoff notes:** Agents write decisions, facts and next steps as handoffs that the next session can load.
- **Unified MCP and skill config:** One catalog is synced into each configured tool's own settings, with a preview before writing.
- **Verification records:** Commands run through the tool keep their exit code, logs and tree fingerprint as a receipt.
- **Shared task claims:** A task list lets agents claim work, and a second claim on the same item is refused.
- **Adjustable enforcement modes:** Strict, observe and off modes control whether checks are required before a session finishes.
- **Local code graph:** An optional local index of symbols and calls shows what a change may touch before editing.

## Good for

- Keep context shared between Claude Code and Codex working on the same repository
- Record test and build results so another agent can verify a claimed pass
- Give several coding agents the same GitHub or other MCP server without editing each config by hand
- Leave decision notes at the end of a session for the next agent to pick up
- Prevent two agents from picking up the same task from a shared list

## Install

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

```sh
claude mcp add brigade-memory -- uvx brigadestack
```

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": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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 brigade-memory -- uvx brigadestack
```

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

```toml
[mcp_servers.brigade-memory]
command = "uvx"
args = ["brigadestack"]
```

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user brigade-memory uvx -- brigadestack

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

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": {
    "brigade-memory": {
      "command": "uvx",
      "args": [
        "brigadestack"
      ]
    }
  }
}
```

## FAQ

### How do I install Brigade Memory?

Install with pipx install brigadestack (Python 3.11 or newer) or npm install -g brigadestack (Node.js 22.15+ or 23.11+). The command is brigadestack.

### Where is memory stored?

Memory is kept as markdown cards and JSON or markdown files inside the repository or workspace, with local state under a .brigade folder that is kept out of git by default.

### Does a passing check prove the tests are good?

No. A check record shows that a command ran and what it returned, not that the tests are adequate.

### Which agent tools are supported?

The docs list Claude Code, Codex, Cursor and OpenCode for workspace instructions, handoff inboxes and MCP and skill config, with ChatGPT Dot and Claude Duet connectors you host.

### Is Brigade Memory free?

Yes. Brigade Memory is open source, so you can use and self-host it for free.

### How do I add Brigade Memory to Claude Code?

Run this command in your terminal: claude mcp add brigade-memory -- uvx brigadestack

### What are the best alternatives to Brigade Memory?

The closest alternatives to Brigade Memory are Brigade Skills, Repo Memory, Memoir, Hippo memory and Project Memory MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Brigade Skills](https://ai-powered.com/mcp/brigade-skills): Brigade Skills is an open-source MCP server for agent tooling.
- [Repo Memory](https://ai-powered.com/mcp/repo-memory): Repo Memory is an open-source MCP server for knowledge and memory.
- [Memoir](https://ai-powered.com/mcp/memoir-2): Memoir is a freemium MCP server for knowledge and memory.
- [Hippo memory](https://ai-powered.com/mcp/hippo-memory): Hippo memory is an open-source MCP server for knowledge and memory.
- [Project Memory MCP](https://ai-powered.com/mcp/project-memory-mcp): Project Memory MCP is an open-source MCP server for knowledge and memory.
- [Agent Memory](https://ai-powered.com/mcp/agent-memory-5): Agent Memory is an open-source MCP server for knowledge and memory.
- [Compound Memory](https://ai-powered.com/mcp/compound-memory): Compound Memory is an open-source MCP server for knowledge and memory.
- [remem-mcp — Local-first MCP Memory + CodeGraph + Wiki](https://ai-powered.com/mcp/remem-mcp-local-first-mcp-memory-codegraph-wiki): remem-mcp — Local-first MCP Memory + CodeGraph + Wiki is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/brigade-memory
