# tverney/mcp-agent-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/tverney/mcp-agent-memory  
**GitHub Stars:** 6  
**npm Downloads (last month):** 395  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tverney-mcp-agent-memory

## Description
Persistent agent memory via filesystem-native consolidation daemon. Agents read/write/search memory through MCP; a background daemon handles consolidation and extraction. Works with Kiro, Claude Desktop, Cursor, and any MCP client. npx mcp-agent-memory --setup

## Tools
Capabilities this server exposes over MCP:

- **memory_read** — Read the agent memory index (MEMORY.md) and optionally specific topic files. Call with no arguments to load only the lightweight index (cheap). Pass `topics` only when you need the full content of a specific topic file.
- **memory_append_session** — Append a session summary to the sessions directory. The daemon will later extract durable memories from it. Call this at the end of meaningful exchanges. Keep summaries focused on durable findings and decisions (target 300-800 tokens), not play-by-play — longer summaries cost more during consolidation.
- **memory_search** — Search memory files for a substring. Use this to recall specific facts without loading everything.
- **memory_daemon_status** — Check whether the memory consolidation daemon is running. Reports if the daemon is not installed or not available on this platform.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-agent-memory": {
    "command": "npx",
    "args": ["-y","mcp-agent-memory"]
  }
}
```

## Documentation

## What tverney/mcp-agent-memory does

tverney/mcp-agent-memory provides a filesystem bridge between MCP-compatible clients and an agent memory directory. It lets agents inspect an index, open selected topic files, search stored content, and save session summaries for later processing. The default directory is `~/.agent-memory/`, although setup can configure another location.

The package is designed to work with Kiro, Claude Desktop, Cursor, and other MCP clients. Memory remains available without the consolidation daemon; the daemon adds automated extraction of durable information from saved sessions and consolidation of the memory files.

## How it works

The MCP process and `agent-memory-daemon` communicate through files rather than a direct process connection. The MCP server reads and writes the configured memory directory, while the daemon watches that directory and performs consolidation and extraction passes in the background.

Calling `memory_read` without arguments returns only `MEMORY.md`, keeping the initial context small. Topic names can be supplied when an agent needs the complete contents of particular files. Session summaries are appended to the sessions directory, where the daemon can process them later. Focused summaries of durable findings and decisions are preferred over detailed activity logs.

The daemon is optional. Without it, agents can still read, write, and search memory, but session summaries are not automatically converted into durable memories.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g mcp-agent-memory
```

Run `mcp-agent-memory --setup` for the interactive configuration flow. It can create the memory directory, optionally install the consolidation daemon, configure an LLM backend, set consolidation parameters, create an auto-start service, configure logs and retention, and register the MCP server in Kiro, Claude Desktop, or Cursor. macOS uses a LaunchAgent for automatic startup; Linux uses a systemd user service when `systemctl --user` is available.

The package can also be run directly as an MCP server with `mcp-agent-memory`. `--configure` reruns configuration, while `--remove` removes the configured memory entry from client settings and backs up the memory directory by default.

For manual daemon setup, install `agent-memory-daemon`, create a configuration under the memory directory, and start the daemon with that configuration. Supported backend choices in the setup flow include Bedrock, OpenAI, and Kiro.

## Tools and capabilities

- `memory_read` returns the memory index and optionally selected topic files.
- `memory_append_session` stores a Markdown session summary and accepts an optional source tag.
- `memory_search` performs substring searches across memory files.
- `memory_daemon_status` reports whether the consolidation daemon is running, installed, or unavailable on the platform.
- CLI commands manage setup, configuration, removal, and daemon start, stop, restart, status, or removal operations.

## Limitations and notes

The daemon is a separate optional component and requires its own installation and LLM configuration for automated consolidation. Linux hosts without a reachable user-level systemd manager cannot use the systemd run mode and must run the daemon standalone. The server itself provides file-based memory operations; consolidation happens asynchronously through the daemon.

_Full upstream README: https://allmcps.com/mcp/tverney-mcp-agent-memory/readme_

