# Cohort MCP

> Cohort MCP is an open-source MCP server for knowledge and memory. Local MCP server that gives a team one shared, human-approved memory in a git vault. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/magnusmage/cohort
- **MCP Registry name:** io.github.magnusmage/cohort-mcp
- **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

Cohort treats a single git repository of plain markdown as the memory every teammate's AI assistant shares. Facts, decisions and open threads live there, and the README states that no hosted server or account with the maintainers is involved: the vault sits in your own GitHub repo and nothing is sent to them.

The flow has three steps. At session start the assistant loads a bounded slice of the vault, verified records first, fenced as data rather than instructions. At session end it proposes new records, which pass a local gate with a secret and PII scan, an injection linter and a contradiction check. A person then verifies a record from the terminal, and only then does it count as trusted memory.

Promotion and retirement are deliberately human-only CLI commands, so the model can read and propose but never verify. The README lists Kimi Code CLI, Kimi Work desktop, ZCode and Claude Code as supported clients and says web chats without disk access cannot run it. Cohort is released under Apache-2.0.

## Features

- **Bounded context load:** Returns team context under a token budget, verified records first and fenced as data.
- **Write gate:** Scans proposed records for secrets, PII and injection text and checks for contradictions.
- **Human-only verification:** Records become trusted only after a person approves them from the terminal.
- **Provenance lookup:** Shows who wrote a record, with which model and when, from git history.
- **Client rule files:** Can generate AGENTS.md, CLAUDE.md and Cursor rules from the vault.

## Good for

- Share decisions across teammates who use different AI accounts
- Carry open threads between sessions without re-pasting context
- Audit who or which model wrote a stored fact
- Keep team memory in your own GitHub repo

## Install

### Claude Code (Terminal)

```sh
claude mcp add cohort-mcp -- npx -y cohort-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cohort-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cohort-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cohort-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cohort-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "cohort-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cohort-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "cohort-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cohort-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cohort-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cohort-mcp"
      ]
    }
  }
}
```

## Tools

- `cohort_load`: Return bounded team context, fenced as data, verified-first, under a token budget.
- `cohort_propose`: Run proposed records through the server-enforced write gate.
- `cohort_status`: Report effective policy, record counts, the quarantine queue and stale records.
- `cohort_policy_get`: Return the caller's effective, read-only policy limits.
- `cohort_search`: Search the vault within readable scope, verified-only by default.
- `cohort_why`: Return a record's provenance from git history.

## FAQ

### Does Cohort send my vault anywhere?

The README says it runs against your own GitHub repo and the maintainers receive no vault, sessions or telemetry.

### Can the AI approve its own writes?

No. Verifying, superseding and retiring records are human-run terminal commands.

### What licence is Cohort MCP under?

Apache-2.0, per the README.

### Does Cohort MCP work in a web chat?

No. It needs a client that can reach your disk and git.

### Is Cohort MCP free?

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

### How do I add Cohort MCP to Claude Code?

Run this command in your terminal: claude mcp add cohort-mcp -- npx -y cohort-mcp

### What are the best alternatives to Cohort MCP?

The closest alternatives to Cohort MCP 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/cohort-mcp
