SuperAPI AI Directory

mcp-agent-memory

Filesystem-based persistent agent memory: agents read, write and search memory while a background daemon handles consolidation and extraction.

Open website

About this tool

Purpose: mcp-agent-memory is an MCP server that exposes agent-memory-daemon to any MCP-compatible client (Kiro CLI and IDE, Claude Desktop, Cursor, etc.), providing persistent memory for agents. The daemon is responsible for "thinking" (consolidation and extraction); this server is just a lightweight filesystem bridge that lets agents read, append, and search memory via the Model Context Protocol.

Main capabilities: it provides three tools. memory_read reads the memory index MEMORY.md, and optionally reads a specified topic file; with no arguments it loads only the lightweight index, which is low-cost. memory_append_session appends a session summary to the sessions directory, from which the daemon later extracts persistent memory; it is recommended to call it at the end of important exchanges, with the summary focused on persistent findings and decisions (about 300–800 tokens). memory_search searches memory files by substring, used to recall specific facts without loading all content.

Usage: the server reads and writes files under ~/.agent-memory/, and the daemon watches the same directory and runs consolidation and extraction; the two do not communicate directly—the filesystem is the contract. An interactive installation wizard can be used to set up the memory directory, daemon, client configuration, logging, and autostart service (macOS LaunchAgent or Linux systemd user service); you can also configure the client manually by adding the server block to Kiro's ~/.kiro/settings/mcp.json, the Claude Desktop configuration, or Cursor's ~/.cursor/mcp.json, and you can add the memory tools to autoApprove, since they are local file operations and make no network requests. The daemon is optional; if not installed, it only reads and writes files and does not consolidate automatically. The LLM backend can be bedrock, openai, or kiro; using the kiro backend requires agent-memory-daemon ≥ 2.7, and a streamlined agent can reduce token usage by about 7x.

Applicable scenarios and limitations: suitable for coding or conversational agents that need to retain preferences, decisions, and facts across sessions. Note that calling memory_append_session costs nothing, but every session will be processed by the daemon's LLM, so summaries should be concise and structured; it is recommended to periodically consolidate or clean up old topic files, and the configuration wizard will warn when the memory directory exceeds 25 files or 200 KB. Session cleanup is handled by the daemon, not by this MCP server. Some containers, sandboxes, or SSH-only hosts do not have a usable systemctl --user, in which case the daemon should be run standalone instead.processed by the daemon's LLM, so summaries should be concise and structured; it is recommended to periodically consolidate or clean up old topic files, and the configuration wizard will warn when the memory directory exceeds 25 files or 200 KB. Session cleanup is handled by the daemon, not by this MCP server. Some containers, sandboxes, or SSH-only hosts do not have a usable systemctl --user, in which case the daemon should be run standalone instead.