
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that acts as a filesystem bridge, letting MCP-compatible clients read, append, and search agent memory stored under ~/.agent-memory/.
MCP server for agent memory is cataloged as an MCP server attributed to tverney. An MCP server that acts as a filesystem bridge, letting MCP-compatible clients read, append, and search agent memory stored under ~/.agent-memory/. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for agent memory are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. The MCP server works standalone for reading and writing files, but memories are not consolidated or extracted from sessions until the daemon is added.
Through the filesystem: the server reads and writes files under ~/.agent-memory/, and the daemon watches the same directory to run consolidation and extraction, with no direct communication between them.
Memory files live in ~/.agent-memory/memory by default, and session summaries go to ~/.agent-memory/sessions, both configurable via environment variables.
README.md · 82ccccc81e7c · 采集于 2026-11-13 13:22:24 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MCP server that exposes agent-memory-daemon to any MCP-compatible client — Kiro (CLI & IDE), Claude Desktop, Cursor, and others.
The daemon does the thinking (consolidation + extraction); this server is a thin filesystem bridge so agents can read, append, and search memory through the Model Context Protocol.
┌──────────────┐ MCP/stdio ┌────────────────────┐ filesystem ┌────────────────────────┐
│ Kiro / Claude│ ◄───────────────► │ mcp-server-memory │ ◄─────────────────► │ agent-memory-daemon │
│ / Cursor │ │ (this package) │ ~/.agent-memory/ │ (runs in background) │
└──────────────┘ └────────────────────┘ └────────────────────────┘
~/.agent-memory/memory_readRead 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
topics | string[] | No | Topic file names to load in full (e.g., ["preferences", "projects"]). Omit to return the index only. |
memory_append_sessionAppend 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Markdown-formatted session summary. Use structured headers and bullets for better extraction; avoid verbose prose. |
source | string | No | Origin tag, e.g., "kiro", "claude-desktop" |
memory_searchSearch memory files for a substring. Use this to recall specific facts without loading everything.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The substring to search for across all memory files. |
npm install -g mcp-agent-memory
The fastest way to set everything up — memory directory, daemon, client configs, logs, and auto-start service (macOS LaunchAgent or Linux systemd user service) — is the setup wizard:
mcp-agent-memory --setup
It asks six questions:
.agent-memory/ lives (default ~/.agent-memory)bedrock, openai, or kiro (skipped if you declined the daemon)min_hours, min_sessions, extraction interval, max charsstandalone (start manually), launchagent (auto-start at login, macOS), or systemd (systemd user service, Linux). On Linux the wizard only offers systemd if systemctl --user is reachable; otherwise it falls back to standalone and tells you why.0 = forever)When you select the kiro backend, the wizard also copies a lean agent to ~/.kiro/agents/memconsolidate.json that cuts token usage by ~7× (see Kiro backend).
When you select launchagent or systemd, the wizard checks that agent-memory-daemon is installed (and offers to npm install -g it if not), then registers and starts the plist / user unit.
mcp-agent-memory # run as an MCP server (normal mode — clients spawn it)
mcp-agent-memory --setup # first-time interactive setup
mcp-agent-memory --configure # re-run most steps; can add/remove the daemon later
mcp-agent-memory --remove # interactive uninstall (backup memory, clean configs)
# Auto-start service control (macOS LaunchAgent / Linux systemd user service):
mcp-agent-memory --daemon status # is the daemon running?
mcp-agent-memory --daemon start # install and start
mcp-agent-memory --daemon stop # stop (keeps the plist / unit)
mcp-agent-memory --daemon restart # stop + start
mcp-agent-memory --daemon remove # stop and delete the plist / unit
--remove preserves other entries in client MCP configs — only the memory key is deleted. By default it backs up ~/.agent-memory/ to a timestamped .bak-* directory so you can restore your consolidated memories.
If you'd rather skip the wizard, here's how to do it by hand.
The MCP server works standalone — it just reads and writes files under ~/.agent-memory/. Memories persist, but they won't be consolidated or extracted from sessions until you add the daemon.
npm install -g agent-memory-daemon@^2.8.0
# copy the example config
mkdir -p ~/.agent-memory
cp examples/memconsolidate.toml ~/.agent-memory/memconsolidate.toml
# start the daemon
agent-memory-daemon start ~/.agent-memory/memconsolidate.toml
See examples/memconsolidate.toml for a ready-to-use config that matches the directory layout this MCP server expects.
Instead of starting the daemon manually, register it as a LaunchAgent:
./scripts/daemon.sh start # install plist, load it, start at login
./scripts/daemon.sh status # check if it's running
./scripts/daemon.sh stop # unload (keeps the plist)
./scripts/daemon.sh remove # unload and delete the plist
Pass a custom config path as a second arg: ./scripts/daemon.sh start /path/to/config.toml. Logs land in ~/.agent-memory/logs/daemon.{out,err}.log. remove leaves your config and memory files untouched.
On Linux, register it as a systemd user service:
./scripts/daemon-systemd.sh check # is a systemd user manager reachable?
./scripts/daemon-systemd.sh start # write unit, enable, start
./scripts/daemon-systemd.sh status # check if it's running
./scripts/daemon-systemd.sh stop # stop (keeps the unit)
./scripts/daemon-systemd.sh remove # disable and delete the unit
The unit is written to ~/.config/systemd/user/agent-memory-daemon.service. Logs go to the same place as on macOS. User services start at login. To start the daemon at boot without a login session, enable lingering: sudo loginctl enable-linger $USER.
Some hosts (containers, sandboxed or SSH-only machines) don't have a reachable systemctl --user. In that case check/start exit with code 2 and an explanation. Run the daemon standalone instead.
If you have Kiro credits, you can run the daemon through kiro-cli instead of paying for Bedrock or OpenAI API calls. This requires agent-memory-daemon ≥ 2.7 (branch feat/kiro-backend) which adds a kiro backend.
[llm_backend]
name = "kiro"
# optional overrides:
# binary = "/custom/path/to/kiro-cli"
# agent = "memconsolidate" # set to "" to use Kiro's default session context (not recommended)
# model = "claude-sonnet-4-20250514"
# timeoutMs = 300000
Use a lean agent to cut token usage by ~7×. By default, every kiro-cli chat call loads Kiro's full system prompt plus every MCP tool schema from your global config — roughly 12–18K extra input tokens per call. Create a minimal agent that skips all of that:
cp examples/kiro-agent-memconsolidate.json ~/.kiro/agents/memconsolidate.json
The Kiro backend passes --agent memconsolidate automatically, so no further config is needed. Measured on a trivial prompt: 0.01 credits with the lean agent vs. 0.07 credits with the default (same output quality).
See examples/kiro-agent-memconsolidate.json — the agent has mcpServers: {}, tools: [], and useLegacyMcpJson: false so it doesn't inherit anything from your global Kiro config.
The
--setupand--configurewizards handle this for you. This section is for users who want to wire things up by hand.
Edit ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "mcp-agent-memory"],
"env": {
"MEMORY_DIRECTORY": "~/.agent-memory/memory",
"SESSION_DIRECTORY": "~/.agent-memory/sessions"
},
"disabled": false,
"timeout": 30000,
"autoApprove": ["memory_read", "memory_search", "memory_append_session", "memory_daemon_status"]
}
}
}
Why
autoApprove? All memory tools are local-only filesystem operations — they read/write markdown files under~/.agent-memory/and never make network calls. Adding them toautoApprovelets Kiro call them without prompting you for confirmation each time, which is essential for the seamless "read memory at session start" experience.
Then ask Kiro: "Read my memory index." or "Remember this: I prefer pnpm over npm."
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "mcp-agent-memory"],
"env": {
"MEMORY_DIRECTORY": "~/.agent-memory/memory",
"SESSION_DIRECTORY": "~/.agent-memory/sessions"
},
"autoApprove": ["memory_read", "memory_search", "memory_append_session", "memory_daemon_status"]
}
}
}
Restart Claude Desktop. The memory_* tools will appear.
Add to ~/.cursor/mcp.json with the same server block (including autoApprove).
| Variable | Default | Description |
|---|---|---|
MEMORY_DIRECTORY | ~/.agent-memory/memory | Where the daemon stores consolidated memory files |
SESSION_DIRECTORY | ~/.agent-memory/sessions | Where agent-written session summaries land |
Both paths must match what your agent-memory-daemon config uses.
Tell your agent to call memory_read at the start of a conversation and memory_append_session at the end. Example steering rule for Kiro (~/.kiro/steering/memory.md):
At the start of every session, call memory_read (no arguments) to load my memory
index. Only pass `topics` when the task genuinely needs the full content of a
specific topic file.
When you learn something durable about me, my projects, or my preferences, call
memory_append_session with a concise markdown summary. Target 300-800 tokens,
use structured headers and bullets (not prose), and focus on durable findings
and decisions — not play-by-play. Verbose summaries cost more during the
daemon's consolidation pass.
Each of the three tools has a different cost profile. A few practices keep inference + consolidation bills low:
memory_read with no arguments returns only the MEMORY.md index (typically <1 KB). Prefer this over topics unless you need full content.memory_search is substring-based and returns ≤3 matching lines per file — cheaper than loading whole topic files.memory_append_session costs nothing at call time, but every session gets processed by the daemon's LLM during consolidation. Keep summaries concise and structured.mcp-agent-memory --configure — it now warns if your memory directory exceeds 25 files or 200 KB.agent-memory-daemon's config for options that archive or delete sessions after they're processed (prevents the daemon from re-scanning old sessions forever).MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for agent memory from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-agent-memory)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.