Skip to content
MCP server

Logbook

Git-history memory for coding agents: reverts, weakened tests, hot spots and notes

Runs locally

Logbook is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.8.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add logbook -- npx -y @promptwheel/logbook-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "logbook": {
      "command": "npx",
      "args": [
        "-y",
        "@promptwheel/logbook-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Logbook

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.

What it does

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

Pricing

Open source

Local CLI; licence not shown

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

How AIPoweredBot checks servers