# Agentpack

> Agentpack is a free MCP server for developer tools. Repo-local task ledger that lets coding agents resume a task after context loss. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/ihorponom/agentpack
- **MCP Registry name:** io.github.ihorponom/agentpack
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

Agent memory keeps preferences and conventions; this keeps the state of one task. Connected agents write the goal, decisions, dead ends, verification evidence and checkpoints into a .agentpack folder in the repository, and a later session, possibly in a different client, loads a compact summary and carries on instead of redoing the investigation.

Each task has a Task Passport holding goal, status, constraints, write scope, next actions and verification tied to a commit. Notes about a file store its hash, so the tool flags a conclusion when the file changes, though a matching hash does not prove the conclusion is right. A task gate checks edits against the passport and by default only warns; it can be set to block edits outside the write scope. The README calls hooks a guardrail, not a sandbox.

It works with Claude Code, Codex, Cursor and Claude Desktop, can export tasks as portable bundles, and has a terminal inspector and local token-usage reports. It has no runtime dependencies, telemetry or network calls, and needs Node.js 20 or later.

## Features

- **Task Passport:** Holds goal, constraints, write scope, next actions and commit-bound verification.
- **Resume across clients:** Any MCP client can load the same state after compaction or a new chat.
- **Stale-note flags:** File notes store a hash so changes to the file are flagged.
- **Task gate:** Warns or blocks edits outside the passport's write scope.
- **Portable bundles:** Export a task to one JSON file and import it elsewhere.
- **Local-first:** Plain files in the repo, with no cloud, telemetry or network calls.

## Good for

- Continue a refactor after the agent's context is compacted
- Hand a task from Claude Code to Cursor
- Keep a record of rejected approaches and why
- Limit an agent to the paths a task is meant to change

## Install

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

```sh
claude mcp add agentpack -- npx -y agentpack-cli
```

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": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentpack": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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 agentpack -- npx -y agentpack-cli
```

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

```toml
[mcp_servers.agentpack]
command = "npx"
args = ["-y", "agentpack-cli"]
```

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user agentpack npx -- -y agentpack-cli

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

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": {
    "agentpack": {
      "command": "npx",
      "args": [
        "-y",
        "agentpack-cli"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `load_context`: Loads the compact task state at the start of a session.

## FAQ

### How is Agentpack different from agent memory?

Memory stores how you like to work; Agentpack stores where one task stands, including decisions and dead ends.

### Does Agentpack send data anywhere?

No. The README says there is no telemetry or network call in normal operation.

### What does Agentpack need?

Node.js 20 or later; install with npm install -g agentpack-cli and run agentpack init.

### Will the gate block my edits?

Not by default. It warns unless gateMode is set to block.

### Is Agentpack free?

Yes. Agentpack is free to use.

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

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

### What are the best alternatives to Agentpack?

The closest alternatives to Agentpack 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/agentpack
