Agent Memory logo

Agent Memory

by xChuCx

Stores reviewable, branch-aware project memory in Markdown tracked by Git, with MCP tools for context, updates, and health checks.

Install Agent Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xchucx-agent-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@xchucx/agent-memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @xchucx/agent-memory

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The xChuCx/agent-memory MCP server gives coding agents local, Git-native project memory stored as Markdown in the repository. It provides tools to fetch a bounded context pack, propose immediate or staged edits, and inspect memory, security, Git, and lock status. Reach for it when project knowledge should remain reviewable, branch-aware, secret-scanned, and independent of cloud storage or a vector database.

Use cases

  • Store project decisions and conventions in reviewable Markdown
  • Fetch bounded context for coding-agent sessions
  • Stage durable memory changes for human approval
  • Check memory health and repository posture
  • Verify memory state with deterministic digests

Key features

  • Git-versioned Markdown memory
  • Branch-aware context retrieval
  • Secret and PII scanning on write
  • Reviewable staged updates
  • Section-aware merge support
  • MCP and CLI interfaces

Tools3

What Agent Memory lets your agent do. Expand a tool for its parameters.

Self-reported~56 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/17 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · @xchucx/agent-memory (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
npm downloads402Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed3Callable tools this server registers over MCP.
Directory activity15 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Memory works

What xChuCx/agent-memory MCP server does

The xChuCx/agent-memory MCP server stores durable project knowledge in Markdown under a repository-managed memory area. Its intended content includes current task state, decisions, coding conventions, pitfalls, and facts about individual modules. Git remains the synchronization and review mechanism, so memory changes can be inspected with normal repository workflows rather than hidden in a hosted service or database.

The system is designed for local use and supports branch-aware memory. It complements instruction files such as AGENTS.md or CLAUDE.md: those files describe how an agent should behave, while this project records searchable, reviewed knowledge about the codebase.

How it works

Agents communicate through three MCP tools:

  • memory.fetch_context returns a budget-limited Markdown context pack. It can provide a bootstrap context or retrieve information using a query.
  • memory.propose_update accepts structured memory edits. Working notes and pitfalls can apply immediately, while durable categories can be staged for approval.
  • memory.status reports memory health, including file counts, staged proposals and drift, plus security, Git, and lock posture.

Staged durable changes follow a review gate: inspect the generated diff with agent-memory review --diff, then use agent-memory apply or reject the proposal. This prevents durable edits from being written without approval. Writes also scan for secrets and personally identifiable information before content is stored.

The project includes a section-aware merge driver for concurrent team edits. Later releases also include multi-store search, a deterministic SHA-256 Merkle digest for active memory, and the VTP-1 lifecycle with task specification, claims, receipts, verification, and settlement.

Setup and configuration

Install a prebuilt agent-memory binary from the project’s latest release, or run the published package with npx -y @xchucx/agent-memory. A Go 1.25 or newer toolchain can alternatively install the binary with go install, and the repository can be built from source.

Inside the target repository, initialize memory with agent-memory init --name my-project. Start the MCP process with agent-memory mcp. The server resolves its repository root from the --root option, then CLAUDE_PROJECT_DIR, and finally the current working directory. A root should be scoped to the project being served; a single user-level registration with a hardcoded repository can send another project’s writes to the wrong location.

The agent-memory install claude command creates the Claude Code skill and merges a project-scoped .mcp.json. Other runtimes can use the same server through their adapter or MCP configuration. The README explicitly identifies Cursor, Claude Code, Codex/AGENTS.md, and Gemini CLI as supported runtime contexts.

Tools and capabilities

The xChuCx/agent-memory MCP server exposes context retrieval, structured update proposals, and health reporting over MCP. Its broader CLI includes initialization, fetch, review, apply, rejection, status, synchronization, digest, and VTP operations. Memory is plain text, byte-preserving, Git-versioned, and usable without cloud access or a vector database.

Limitations and notes

This release is repository-local; the roadmap identifies system-level and multi-repository memory as future work. Durable knowledge requires an explicit review and apply workflow. Homebrew, Scoop, and winget packages are listed as planned rather than available installation methods.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Memory

Run `npx -y @xchucx/agent-memory mcp`, install a prebuilt release binary, use `go install github.com/xChuCx/agent-memory/cmd/agent-memory@latest`, or build it from source with Go 1.25 or newer.

Run `agent-memory init --name my-project` inside the repository, then start the server with `agent-memory mcp`.

Yes. The README identifies Cursor as a compatible runtime, and the same MCP server can be registered for it.

No. It uses Markdown in the repository as the source of truth and runs locally without cloud storage or a vector database.

Durable proposals can be staged, inspected with `agent-memory review --diff`, and then applied or rejected.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xchucx-agent-memory?style=directory)](https://allmcps.com/mcp/xchucx-agent-memory)
HTML Embed
<a href="https://allmcps.com/mcp/xchucx-agent-memory"><img src="https://allmcps.com/api/badge/xchucx-agent-memory?style=directory" alt="Agent Memory on AllMCPs" /></a>