# briefd

> briefd is an open-source MCP server for knowledge and memory. Self-hosted server that compiles git-stored team knowledge into token-budgeted context. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI, API
- **Repository:** https://github.com/ismailperim/briefd
- **MCP Registry name:** io.github.ismailperim/briefd
- **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-18

## About

Instead of loading every CLAUDE.md or AGENTS.md rule into each session, briefd keeps team knowledge as Markdown in a git repository and answers one question for a coding agent: what does it need to know for this task? The answer is a deduplicated bundle that never exceeds the max_tokens the caller sets, ordered from domain to conventions to project, with a source line per section.

The README reports a benchmark on its sample repo of 44 documents and 47 tasks: 86% fewer tokens than pasting everything into CLAUDE.md, with the answering section present 96% of the time. In real Claude Code sessions it reports 35% less context per turn and 40% lower cost per task, at the price of 3 to 4 extra tool-call round trips. It also distinguishes itself from agent memory tools, because people write the knowledge and agents only open pull requests through propose_update.

Retrieval combines SQLite FTS5 with multilingual-e5-small embeddings in pure Go, with no external services. The first run downloads about a 470 MB model. It runs as a team server with a dashboard, or over stdio for one user, and needs a source repo and a bearer token.

## Features

- **Token-budgeted bundles:** Compiles one deduplicated context block that stays under a set limit.
- **Git as source of truth:** Reads Markdown knowledge from a repo; the index is a disposable cache.
- **Reviewable updates:** Agents propose changes as branches or pull requests, never writing to the index.
- **Hybrid retrieval:** Fuses keyword and multilingual embedding search with no external services.
- **Staleness and gap tracking:** Dates sections and lists unanswered questions as a backlog on the dashboard.
- **Stdio or HTTP:** Runs as a shared team server or a single-user stdio process.

## Good for

- Give coding agents team conventions without loading all of them each turn
- Keep business rules and terminology in a reviewed repo
- Spot rules that drift from the code they govern
- Share one knowledge base across many projects in a domain

## Install

### Claude Code (Terminal)

```sh
claude mcp add briefd --env BRIEFD_SOURCE='<BRIEFD_SOURCE>' --env BRIEFD_API_TOKEN='<BRIEFD_API_TOKEN>' --env BRIEFD_GIT_TOKEN='<BRIEFD_GIT_TOKEN>' -- docker run -i --rm -e BRIEFD_SOURCE -e BRIEFD_API_TOKEN -e BRIEFD_GIT_TOKEN ghcr.io/ismailperim/briefd:0.9.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "briefd": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRIEFD_SOURCE",
        "-e",
        "BRIEFD_API_TOKEN",
        "-e",
        "BRIEFD_GIT_TOKEN",
        "ghcr.io/ismailperim/briefd:0.9.0"
      ],
      "env": {
        "BRIEFD_SOURCE": "<BRIEFD_SOURCE>",
        "BRIEFD_API_TOKEN": "<BRIEFD_API_TOKEN>",
        "BRIEFD_GIT_TOKEN": "<BRIEFD_GIT_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "briefd": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRIEFD_SOURCE",
        "-e",
        "BRIEFD_API_TOKEN",
        "-e",
        "BRIEFD_GIT_TOKEN",
        "ghcr.io/ismailperim/briefd:0.9.0"
      ],
      "env": {
        "BRIEFD_SOURCE": "<BRIEFD_SOURCE>",
        "BRIEFD_API_TOKEN": "<BRIEFD_API_TOKEN>",
        "BRIEFD_GIT_TOKEN": "<BRIEFD_GIT_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "briefd": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRIEFD_SOURCE",
        "-e",
        "BRIEFD_API_TOKEN",
        "-e",
        "BRIEFD_GIT_TOKEN",
        "ghcr.io/ismailperim/briefd:0.9.0"
      ],
      "env": {
        "BRIEFD_SOURCE": "<BRIEFD_SOURCE>",
        "BRIEFD_API_TOKEN": "<BRIEFD_API_TOKEN>",
        "BRIEFD_GIT_TOKEN": "<BRIEFD_GIT_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "briefd": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRIEFD_SOURCE",
        "-e",
        "BRIEFD_API_TOKEN",
        "-e",
        "BRIEFD_GIT_TOKEN",
        "ghcr.io/ismailperim/briefd:0.9.0"
      ],
      "env": {
        "BRIEFD_SOURCE": "<BRIEFD_SOURCE>",
        "BRIEFD_API_TOKEN": "<BRIEFD_API_TOKEN>",
        "BRIEFD_GIT_TOKEN": "<BRIEFD_GIT_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "briefd": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRIEFD_SOURCE",
        "-e",
        "BRIEFD_API_TOKEN",
        "-e",
        "BRIEFD_GIT_TOKEN",
        "ghcr.io/ismailperim/briefd:0.9.0"
      ],
      "env": {
        "BRIEFD_SOURCE": "<BRIEFD_SOURCE>",
        "BRIEFD_API_TOKEN": "<BRIEFD_API_TOKEN>",
        "BRIEFD_GIT_TOKEN": "<BRIEFD_GIT_TOKEN>"
      }
    }
  }
}
```

## Tools

- `compile_bundle`: Compiles one deduplicated context block for a task within a token budget.
- `search_context`: Returns ranked sections that fit the budget, for inspection.
- `get_document`: Returns one document in full.
- `list_scopes`: Lists scopes with document and section counts.
- `propose_update`: Creates a branch, and a pull request when configured, with a proposed change.
- `report_usage`: Reports which sections helped, or marks a knowledge gap.
- `suggest_links`: Suggests missing and broken links in the knowledge base.

## FAQ

### What does it need to run?

A knowledge source (git URL or mounted directory) and a BRIEFD_API_TOKEN; a git token is only needed for private HTTPS remotes.

### How is it different from agent memory tools?

Memory tools record what an agent observed; briefd serves what the team wrote and reviewed in git.

### How many tools does it expose?

Seven, adding two each when Jira or Confluence is configured.

### Can I try it quickly?

Yes, briefd demo serves a built-in sample knowledge base; the first run downloads about 470 MB of embedding model.

### Is briefd free?

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

### How do I add briefd to Claude Code?

Run this command in your terminal: claude mcp add briefd --env BRIEFD_SOURCE='<BRIEFD_SOURCE>' --env BRIEFD_API_TOKEN='<BRIEFD_API_TOKEN>' --env BRIEFD_GIT_TOKEN='<BRIEFD_GIT_TOKEN>' -- docker run -i --rm -e BRIEFD_SOURCE -e BRIEFD_API_TOKEN -e BRIEFD_GIT_TOKEN ghcr.io/ismailperim/briefd:0.9.0

### What are the best alternatives to briefd?

The closest alternatives to briefd 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-2): 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/briefd
