# Logbook

> Logbook is an open-source MCP server for knowledge and memory. Git-history memory for coding agents: reverts, weakened tests, hot spots and notes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/promptwheel-ai/logbook
- **MCP Registry name:** io.github.promptwheel-ai/logbook
- **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

Coding agents often re-propose approaches a repository already tried and dropped. Logbook scans a repo's commit history with deterministic regex over subjects and diffs and writes a bounded LOGBOOK.md, a structured events.jsonl and an annotations.jsonl of agent-written notes. The init command also adds a short workflow to AGENTS.md, CLAUDE.md or .cursorrules so the agent reads history before planning.

Everything runs locally, the CLI has no npm dependencies, and nothing is sent anywhere. Context comes back in pages of at most 20 events and 8 KiB with cursors tied to the repository HEAD. Agents can record why a past change happened with the annotate command, and those notes are labelled machine-authored and unreviewed. The MCP package serves the same layer over stdio; the README refers to five MCP tools without naming them here.

The README is candid about scope: findings are leads, not verdicts, squashed or rebased history is missed, and shallow clones starve the analysis. Its own benchmark showed a benefit on history-dense tasks but no advantage over a strong raw-Git instruction in a later held-out test.

## Features

- **Do-not-retry reverts:** Surfaces approaches the repo has already reverted.
- **Suppression audit:** Shows what tests or checks are still suppressed and since when.
- **Hot spots:** Highlights files with heavy change history.
- **Paged context:** Bounded pages with cursors tied to HEAD.
- **Agent annotations:** Durable notes on why a change happened, labelled unreviewed.
- **Local only:** No repository data leaves the machine.

## Good for

- Stop an agent re-trying a rejected approach
- Check where tests were weakened
- Brief an agent on a path's history before it edits
- Share verified notes with a team via annotations.jsonl

## Install

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

```sh
claude mcp add logbook -- npx -y @promptwheel/logbook-mcp
```

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": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "logbook": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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 logbook -- npx -y @promptwheel/logbook-mcp
```

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

```toml
[mcp_servers.logbook]
command = "npx"
args = ["-y", "@promptwheel/logbook-mcp"]
```

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user logbook npx -- -y @promptwheel/logbook-mcp

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

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": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
```

## FAQ

### Does Logbook send my repo anywhere?

The README says everything runs locally and repository data is never sent.

### What does Logbook need?

Node.js 18 or newer.

### How do I set Logbook up?

Run npx -y @promptwheel/logbook@latest init in the repository.

### Is Logbook better than raw git log?

The README says it is valuable on difficult, history-dense tasks and not universally better.

### Is Logbook free?

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

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

Run this command in your terminal: claude mcp add logbook -- npx -y @promptwheel/logbook-mcp

### What are the best alternatives to Logbook?

The closest alternatives to Logbook 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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/logbook
