Agent Memory
에이전트 메모리를 위한 파일 시스템 MCP
Kiro(CLI 및 IDE), Claude Desktop, Cursor 등 모든 MCP 호환 클라이언트에 agent-memory-daemon을 노출하는 MCP 서버입니다.
데몬이 사고(통합 + 추출)를 담당하며, 이 서버는 에이전트가 Model Context Protocol을 통해 메모리를 읽고, 추가하고, 검색할 수 있도록 하는 가벼운 파일 시스템 브리지 역할을 합니다.
작동 방식
┌──────────────┐ MCP/stdio ┌────────────────────┐ filesystem ┌────────────────────────┐
│ Kiro / Claude│ ◄───────────────► │ mcp-server-memory │ ◄─────────────────► │ agent-memory-daemon │
│ / Cursor │ │ (this package) │ ~/.agent-memory/ │ (runs in background) │
└──────────────┘ └────────────────────┘ └────────────────────────┘MCP 서버는
~/.agent-memory/아래의 파일을 읽고 씁니다.데몬은 동일한 디렉토리를 감시하며 통합 및 추출 작업을 수행합니다.
이 둘은 서로 직접 통신하지 않으며, 파일 시스템이 계약(contract) 역할을 합니다.
Related MCP server: Recall
노출된 도구
도구 | 목적 |
|
|
| 데몬이 나중에 메모리를 추출할 수 있도록 세션 요약 작성 |
| 메모리 파일 전체에서 부분 문자열 검색 |
| 통합 데몬이 실행 중인지 확인 (macOS LaunchAgent 전용) |
설치
npm install -g mcp-agent-memory빠른 시작 (대화형 마법사)
메모리 디렉토리, 데몬, 클라이언트 설정, 로그, LaunchAgent 등 모든 것을 설정하는 가장 빠른 방법은 설정 마법사를 사용하는 것입니다:
mcp-agent-memory --setup마법사는 다음 6가지 질문을 합니다:
메모리 디렉토리 —
.agent-memory/가 위치할 곳 (기본값~/.agent-memory)통합 데몬 설치 여부 — MCP 전용 모드라면 "no" 선택 (에이전트가 메모리를 읽기/쓰기/검색할 수는 있지만 자동 통합은 수행되지 않음)
LLM 백엔드 —
bedrock,openai, 또는kiro(데몬 설치를 거부하면 건너뜀)통합 설정 —
min_hours,min_sessions, 추출 간격, 최대 문자 수실행 모드 —
standalone(수동 시작) 또는launchagent(로그인 시 자동 시작, macOS 전용)로그 디렉토리 + TTL — 로그 저장 위치 및 보관 일수 (
0= 영구 보관)클라이언트 등록 — Kiro, Claude Desktop 및/또는 Cursor 설정에 MCP 서버 자동 등록 (기존 MCP 항목은 유지됨)
kiro 백엔드를 선택하면 마법사는 토큰 사용량을 약 7배 절감하는 간소화된 에이전트를 ~/.kiro/agents/memconsolidate.json에 복사합니다 (Kiro를 LLM 백엔드로 사용 참조).
launchagent를 선택하면 마법사는 agent-memory-daemon이 설치되어 있는지 확인하고(설치되어 있지 않으면 npm install -g 제안), plist를 등록하고 시작합니다.
CLI 참조
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)
# macOS LaunchAgent control:
mcp-agent-memory --daemon status # is the daemon running?
mcp-agent-memory --daemon start # load and start
mcp-agent-memory --daemon stop # unload (keeps the plist)
mcp-agent-memory --daemon restart # stop + start
mcp-agent-memory --daemon remove # unload and delete the plist--remove는 클라이언트 MCP 설정의 다른 항목을 보존하며 memory 키만 삭제합니다. 기본적으로 ~/.agent-memory/를 타임스탬프가 찍힌 .bak-* 디렉토리로 백업하므로 통합된 메모리를 복원할 수 있습니다.
수동 설치
마법사를 건너뛰고 직접 설정하려면 다음 단계를 따르세요.
데몬 설치 (선택 사항)
MCP 서버는 독립적으로 작동하며 ~/.agent-memory/ 아래의 파일을 읽고 씁니다. 메모리는 유지되지만 데몬을 추가하기 전까지는 세션에서 통합되거나 추출되지 않습니다.
npm install -g agent-memory-daemon
# 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이 MCP 서버가 기대하는 디렉토리 구조와 일치하는 즉시 사용 가능한 설정은 examples/memconsolidate.toml을 참조하세요.
로그인 시 데몬 실행 (macOS)
데몬을 수동으로 시작하는 대신 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두 번째 인수로 사용자 지정 설정 경로를 전달하세요: ./scripts/daemon.sh start /path/to/config.toml. 로그는 ~/.agent-memory/logs/daemon.{out,err}.log에 저장됩니다. remove를 실행해도 설정 및 메모리 파일은 그대로 유지됩니다.
Kiro를 LLM 백엔드로 사용
Kiro 크레딧이 있다면 Bedrock이나 OpenAI API 호출 비용을 지불하는 대신 kiro-cli를 통해 데몬을 실행할 수 있습니다. 이를 위해서는 kiro 백엔드를 추가하는 agent-memory-daemon 2.7 이상(브랜치 feat/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간소화된 에이전트를 사용하여 토큰 사용량을 약 7배 절감하세요. 기본적으로 모든 kiro-cli chat 호출은 Kiro의 전체 시스템 프롬프트와 전역 설정의 모든 MCP 도구 스키마를 로드하므로 호출당 약 12~18K의 추가 입력 토큰이 발생합니다. 이를 모두 건너뛰는 최소한의 에이전트를 만드세요:
cp examples/kiro-agent-memconsolidate.json ~/.kiro/agents/memconsolidate.jsonKiro 백엔드는 --agent memconsolidate를 자동으로 전달하므로 추가 설정이 필요하지 않습니다. 간단한 프롬프트로 측정했을 때: 간소화된 에이전트 사용 시 0.01 크레딧 vs 기본값 사용 시 0.07 크레딧(출력 품질 동일).
examples/kiro-agent-memconsolidate.json을 참조하세요. 이 에이전트는 mcpServers: {}, tools: [], useLegacyMcpJson: false로 설정되어 있어 전역 Kiro 설정으로부터 아무것도 상속받지 않습니다.
클라이언트 수동 설정
--setup및--configure마법사가 이 과정을 대신 처리해 줍니다. 이 섹션은 직접 설정하려는 사용자를 위한 것입니다.
Kiro (CLI 및 IDE)
~/.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
}
}
}그런 다음 Kiro에게 물어보세요: "내 메모리 인덱스를 읽어줘." 또는 "이걸 기억해: 나는 npm보다 pnpm을 선호해."
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 또는 %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"
}
}
}
}Claude Desktop을 재시작하세요. memory_* 도구가 나타납니다.
Cursor
동일한 서버 블록을 사용하여 ~/.cursor/mcp.json에 추가하세요.
환경 변수
변수 | 기본값 | 설명 |
|
| 데몬이 통합된 메모리 파일을 저장하는 위치 |
|
| 에이전트가 작성한 세션 요약이 저장되는 위치 |
두 경로 모두 agent-memory-daemon 설정에서 사용하는 경로와 일치해야 합니다.
권장 에이전트 프롬프트
에이전트에게 대화 시작 시 memory_read를 호출하고 종료 시 memory_append_session을 호출하도록 지시하세요. 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.토큰 사용 팁
세 가지 도구는 각각 다른 비용 프로필을 가집니다. 다음 관행을 통해 추론 및 통합 비용을 낮게 유지할 수 있습니다:
인수 없이
memory_read호출 시MEMORY.md인덱스(일반적으로 1KB 미만)만 반환합니다. 전체 내용이 필요한 경우가 아니라면topics보다 이 방식을 선호하세요.**
memory_search**는 부분 문자열 기반이며 파일당 최대 3개의 일치하는 줄만 반환하므로 전체 토픽 파일을 로드하는 것보다 저렴합니다.**
memory_append_session**은 호출 시 비용이 발생하지 않지만, 통합 과정에서 데몬의 LLM이 모든 세션을 처리합니다. 요약을 간결하고 구조화된 상태로 유지하세요.오래된 토픽 파일을 가끔 통합하거나 정리하세요.
mcp-agent-memory --configure를 실행하면 메모리 디렉토리가 25개 파일 또는 200KB를 초과할 경우 경고를 표시합니다.추출 후 세션 정리는 MCP 서버가 아닌 데몬이 처리합니다. 처리 후 세션을 보관하거나 삭제하는 옵션은
agent-memory-daemon설정을 참조하세요(데몬이 오래된 세션을 계속 다시 스캔하는 것을 방지).
라이선스
MIT
Available Tools
4 toolsmemory_append_sessionA
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.
Inputs: content (required), source.
memory_daemon_statusA
Check whether the memory consolidation daemon is running. Reports if the daemon is not installed or not available on this platform.
Inputs: no named parameters.
memory_readA
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.
Inputs: topics.
memory_searchA
Search memory files for a substring. Use this to recall specific facts without loading everything.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a distinct purpose: appending sessions, checking daemon status, reading memory index, and searching. No overlaps or ambiguities.
All tools follow a consistent pattern: 'memory_' prefix followed by a descriptive verb or verb_noun (append_session, daemon_status, read, search). Naming is predictable and clear.
With 4 tools, the surface is concise and well-scoped for a memory management server. Each tool addresses a core operation without redundancy.
The tools cover essential operations (append, read, search, status). Missing update/delete might be a minor gap, but the memory consolidation daemon likely handles lifecycle, making this acceptable.
Maintenance
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.686MIT

Recallofficial
AlicenseNot gradedqualityDmaintenanceOpen-source MCP memory server for AI agents — persistent, searchable, tiered memory across sessions. Works over stdio (Cursor, Claude Desktop) or HTTP+SSE. MIT licensed.79 PyPI8MIT- AlicenseAqualityBmaintenanceGives your AI persistent memory across conversations. Stores facts automatically, finds them by meaning using hybrid search with query expansion, and organizes everything into topics without manual tagging.291MIT

@memofs/mcp-serverofficial
AlicenseNot gradedqualityAmaintenance@memofs/mcp-server lets AI coding agents (Claude Code, Claude Desktop, Codex, Cursor, opencode, Gemini CLI, GitHub Copilot, Zed, and any other MCP client) securely read and write MemoFS memory through standard Model Context Protocol tools.6MIT