agentic-memory MCP server
2026년 10월 2일 커밋AI 에이전트가 사실, 결정, 추론 과정 및 수정 사항을 단일 탐색 가능 파일에 저장할 수 있도록 지속적인 인지 그래프 메모리를 제공합니다.
다른 이름 agentralabs/agentic-memory
- 스타
- 32
- Tools
- 13
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 10월 2일
- 라이선스
- MIT
agentic-memory MCP란?
agentic-memory은(는) MCP server입니다. AI 에이전트가 사실, 결정, 추론 과정 및 수정 사항을 단일 탐색 가능 파일에 저장할 수 있도록 지속적인 인지 그래프 메모리를 제공합니다. 13개 도구를 제공합니다. 예: memory_capture_message, memory_capture_tool, memory_capture_file.
프로젝트 README에서 생성된 요약
agentic-memory MCP server 정보
agentic-memory는 Claude Code, Cursor, Windsurf 또는 Cody를 사용하는 개발자가 AI 에이전트에게 지속적인 인지 그래프 메모리를 제공할 수 있게 합니다. 에이전트는 세션 간에 컨텍스트를 잃어버리는 대신, 단일하고 컴팩트한 .amem 바이너리 파일 내에 사실, 결정, 추론 과정 및 수정 사항을 저장하고 탐색할 수 있습니다. 이 시스템은 단순한 벡터 검색 대신 그래프 기반 방식을 사용하여 심층적인 인과 관계 쿼리와 결정 이력 추적을 가능하게 합니다.
서버는 로컬에서 작동하며 특화된 MCP 레이어를 통해 다양한 AI 클라이언트와 통합됩니다. 메시지, 도구 호출, 결정을 캡처하기 위한 13가지 특정 도구와 검색 및 탐색 기능을 갖추고 있습니다. 아키텍처에는 시간, 의미 또는 워크플로우에 따라 정보를 찾을 수 있도록 시간, 의미, 인과, 엔티티, 절차의 5가지 별도 인덱스가 포함되어 있습니다. 또한 append-only 스토리지 레이어와 암호학적 무결성 검사를 통해 장기적인 신뢰성을 확보하도록 설계되었습니다.
활용 사례
- 1결정 추론 추적이전 세션에서 내린 특정 기술적 선택의 논리적 근거를 에이전트에게 설명하도록 요청합니다.
- 2장기 컨텍스트 유지AI가 수개월에 걸친 서로 다른 채팅 세션 동안 프로젝트 아키텍처와 사용자 선호도를 기억하도록 합니다.
- 3신념 변화 감사특정 기술 요구 사항이나 프로젝트 사실이 시간이 지남에 따라 어떻게 변화했는지 추적합니다.
- 4메모리 캡처 자동화에이전트가 파일 작업과 도구 출력을 기록하여 검색 가능한 지식 베이스를 구축하도록 지시합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
agentic-memory MCP 도구 13
README에서 감지됨memory_capture_messagememory_capture_toolmemory_capture_filememory_capture_decisionmemory_capture_boundarymemory_retrievememory_resurrectmemory_v3_session_resumememory_search_temporalmemory_search_semanticmemory_search_entitymemory_v3_stats
| memory_capture_message | — | |
| memory_capture_tool | — | |
| memory_capture_file | — | |
| memory_capture_decision | — | |
| memory_capture_boundary | — | |
| memory_retrieve | — | |
| memory_resurrect | — | |
| memory_v3_session_resume | — | |
| memory_search_temporal | — | |
| memory_search_semantic | — | |
| memory_search_entity | — | |
| memory_v3_stats | — |
도구 13개 모두 보기도구 수 줄이기
memory_verify_integrity
| memory_verify_integrity | — |
구성
AGENTIC_TOKEN
| 이름 | 설명 | 유형 |
|---|---|---|
| AGENTIC_TOKEN | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식
- 소스 저장소 연결 및 접근 가능agentralabs/agentic-memory is public and reachablegithub.com/agentralabs/agentic-memory ↗통과
- 패키지가 이 저장소를 소스로 지정검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-10-02github.com/agentralabs/agentic-memory ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지와 의존성에 심각한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음13 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Every AI agent has amnesia.
Claude forgets your last conversation. GPT doesn't know what you decided last week. Your copilot can't recall the architecture discussions from three months ago. Every session starts from zero.
The current fixes don't work. Vector databases lose all structure -- you get "similar text," never "why did I decide this?". Markdown files are slow and break at scale. Key-value stores are flat -- no relationships, no reasoning chains. Provider memory is locked to one vendor.
AgenticMemory stores your agent's knowledge as a navigable graph in a single binary file. Not "search your old conversations." Your agent has a brain -- facts, decisions, reasoning chains, corrections, and skills -- all connected, all queryable in microseconds.
Problems Solved (Read This First)
- Problem: every chat starts over and previous decisions disappear.
Solved: persistent.amemmemory survives restarts, model switches, and long gaps between sessions. - Problem: vector search returns "similar text" but not true reasoning trails.
Solved: graph traversal, causal paths, and decision lineage are first-class queries. - Problem: corrections overwrite truth and erase history.
Solved: supersession chains preserve old and new beliefs with auditable change history. - Problem: memory quality degrades silently over time.
Solved: quality, drift, gap, and revision tooling keep memory reliable at runtime. - Problem: long-term memory becomes too heavy to keep portable.
Solved: compact single-file storage with practical multi-year lifespan and backup portability.
from agentic_memory import Brain
brain = Brain("my_agent.amem")
# Your agent learns
brain.add_fact("User is a senior Rust developer", session=1, confidence=0.95)
brain.add_decision("Recommended tokio for async -- team has no Go experience", session=1)
# Session 47 -- months later, different LLM, same brain:
results = brain.search("async runtime") # Hybrid BM25 + vector search
chain = brain.traverse(decision_id) # Why did I decide this?
current = brain.resolve(old_fact_id) # What's the latest version?
report = brain.revise("Team now knows Go") # If this is true, what breaks?
gaps = brain.gaps() # Where am I guessing?
timeline = brain.drift("programming languages") # How has this belief changed?
Operational reliability commands (CLI):
amem quality my_agent.amem
amem runtime-sync my_agent.amem --workspace . --write-episode
Six lines. Sixteen query types. One file holds everything. Works with Claude, GPT, Ollama, or any LLM you switch to next.
V3: Immortal Architecture
New in v0.4.1 -- Memory that never dies.
V3 adds a complete append-only, content-addressed storage layer with BLAKE3 integrity chains. Your agent's memory is now cryptographically tamper-proof, multi-client, and designed to last 20 years.
Core Capabilities
- Immortal Log -- Append-only storage with BLAKE3 integrity chains. Never deletes. Never modifies.
- Five Indexes -- Temporal, semantic, causal, entity, and procedural. Find anything instantly.
- Tiered Storage -- Hot -> Warm -> Cold -> Frozen. 20 years of memory in ~500MB.
- Ghost Writer -- Auto-syncs to Claude, Cursor, Windsurf, and Cody. Zero configuration.
- Smart Retrieval -- Multi-index fusion with token budgeting. Perfect context assembly.
- Crash Recovery -- WAL with CRC32 checksums. Survives anything.
- MCP Hardening -- Content-Length framing with 8 MiB limit, JSON-RPC 2.0 validation, no silent fallbacks.
Multi-Client Support
| Client | Auto-Sync Location | Status |
|---|---|---|
| Claude Code | ~/.claude/memory/V3_CONTEXT.md |
Full support |
| Cursor | ~/.cursor/memory/agentic-memory.md |
Full support |
| Windsurf | ~/.windsurf/memory/agentic-memory.md |
Full support |
| Cody | ~/.sourcegraph/cody/memory/agentic-memory.md |
Full support |
V3 Architecture
+-------------------------------------------------------------+
| YOUR AI AGENT |
| (Claude, Cursor, Windsurf, Cody) |
+----------------------------+--------------------------------+
|
+----------v----------+
| MCP LAYER |
| Tools + Resources |
+----------+----------+
|
+----------------------------v--------------------------------+
| V3 ENGINE |
+--------------+--------------+--------------+----------------+
| Immortal Log | 5 Indexes |Tiered Storage| Ghost Writer |
| (append-only)| (T/S/C/E/P) | (H/W/C/F) | (multi-client) |
+--------------+--------------+--------------+----------------+
|
+----------v----------+
| .amem FILE |
| (your memory) |
+---------------------+
The Five Indexes
| Index | Purpose | Query Type |
|---|---|---|
| Temporal | Find by time | "What happened yesterday?" |
| Semantic | Find by meaning | "Everything about contracts" |
| Causal | Find decision chains | "Why did we choose Rust?" |
| Entity | Find by file/person | "All changes to main.rs" |
| Procedural | Find workflows | "Steps to deploy" |
Tiered Storage
| Tier | Age | Access Time | Storage |
|---|---|---|---|
| Hot | < 24 hours | < 1ms | Memory |
| Warm | < 30 days | < 10ms | Disk |
| Cold | < 1 year | < 100ms | Compressed |
| Frozen | Forever | < 1s | Archive |
V3 MCP Tools
AgenticMemory V3 exposes 13 MCP tools for AI agents:
Capture Tools
| Tool | Description |
|---|---|
memory_capture_message |
Capture user/assistant messages |
memory_capture_tool |
Capture tool calls with input/output |
memory_capture_file |
Capture file operations |
memory_capture_decision |
Capture decisions with reasoning |
memory_capture_boundary |
Capture session boundaries (compaction, etc.) |
Retrieval Tools
| Tool | Description |
|---|---|
memory_retrieve |
Smart context assembly with token budgeting |
memory_resurrect |
Restore full state at any timestamp |
memory_v3_session_resume |
Load context for session continuation |
Search Tools
| Tool | Description |
|---|---|
memory_search_temporal |
Search by time range |
memory_search_semantic |
Search by meaning/text |
memory_search_entity |
Search by file/person/entity |
Stats Tools
| Tool | Description |
|---|---|
memory_v3_stats |
Storage and index statistics |
memory_verify_integrity |
Cryptographic integrity verification |
MCP Resources
memory://v3/session/context -- Full session context
memory://v3/session/decisions -- Recent decisions
memory://v3/session/files -- Files modified
memory://v3/session/errors -- Errors resolved
memory://v3/session/activity -- Recent activity
memory://v3/stats -- Storage statistics
Benchmarks
Rust core. Memory-mapped I/O. Zero-copy access. Real numbers from Criterion statistical benchmarks:
| Operation | Time | Scale |
|---|---|---|
| Add node | 276 ns | 10K graph |
| Add edge | 1.2 ms | 10K graph |
| Traverse depth-5 | 3.4 ms | 100K nodes |
| Similarity search (top 10) | 9.0 ms | 100K nodes |
| BM25 text search (fast path) | 1.58 ms | 100K nodes |
| BM25 text search (slow path) | 122 ms | 100K nodes |
| Hybrid search (BM25 + vector) | 10.83 ms | 100K nodes |
| PageRank convergence | 34.3 ms | 100K nodes |
| Bidirectional BFS shortest path | 104 us | 100K nodes |
| Belief revision (cascade) | 53.4 ms | 100K nodes |
| Drift detection | 68.4 ms | 100K nodes |
| Read 10K nodes from file | 3.7 ms | -- |
| mmap node access | 370 ns | 100K nodes |
All v0.2 query benchmarks measured with Criterion (100 samples) on Apple M4 Pro, 64 GB, Rust 1.90.0
--release. Computationally intensive queries (gap detection 297s, analogical 229s, consolidation 43.6s at 100K) are designed for periodic/offline execution and complete in <3s at 10K nodes.
Capacity: A year of daily use produces a ~24 MB file. A decade fits in ~240 MB. A lifetime of memory fits in under 1 GB.
| Vector DB | Markdown Files | Key-Value Store | AgenticMemory | |
|---|---|---|---|---|
| Storage / 10K events | ~500 MB | ~200 MB | ~50 MB | ~8 MB |
| Query latency (p99) | ~50 ms | ~200 ms | ~30 ms | <1 ms |
| Relationship tracking | None | None | None | 7 typed edges |
| Query types | 1 (similarity) | 1 (keyword) | 1 (key lookup) | 16 |
| Portability | Vendor-locked | File-based | API-locked | Single file |
| External dependencies | Cloud service | Embedding API | Cloud service | None |
| Reconstruct reasoning | No | No | No | Yes |
| Self-correction history | No | No | Partial | Yes |
| "What breaks if X changes?" | No | No | No | Yes |
| "Where am I guessing?" | No | No | No | Yes |
Why AgenticMemory
Memory is a graph, not a search index. When you remember why you made a decision, you traverse a chain: decision <- caused by <- these facts <- inferred from <- observations. That's graph navigation. Vector similarity search can never reconstruct this.
One file. Truly portable. Your entire memory is a single .amem file. Copy it. Back it up. Version control it. No cloud service, no API keys, no vendor lock-in.
Any LLM, any time. Start with Claude today. Switch to GPT tomorrow. Move to a local model next year. Same brain file. Cross-provider validation report with 21 interoperability tests.
Self-correcting. Corrections don't delete -- they SUPERSEDE. The old fact, the new fact, and the correction chain are all preserved. brain.resolve(old_id) always returns the current truth.
Sixteen query types. Not just search. Traversal, pattern matching, temporal comparison, causal impact, similarity, BM25 text search, hybrid search, graph centrality, shortest path, belief revision, reasoning gap detection, analogical reasoning, consolidation, drift detection, context extraction, and resolve. Five of these don't exist anywhere else.
The Query Engine
Sixteen ways to navigate a cognitive graph. Seven are foundational. Four are established algorithms adapted for cognitive graphs. Five are genuinely novel -- they don't exist in any other system.
| # | Query | What it answers |
|---|---|---|
| 1 | Traversal | "Why did I decide this?" -- walk reasoning chains |
| 2 | Pattern | "Show me all low-confidence decisions from last week" |
| 3 | Temporal | "What changed between session 5 and session 20?" |
| 4 | Impact | "What depends on this fact?" |
| 5 | Similarity | "What else do I know about this topic?" |
| 6 | Context | "Give me everything around this node" |
| 7 | Resolve | "What's the current truth after corrections?" |
| 8 | BM25 Search | "Find memories containing these exact terms" (1.58 ms @ 100K) |
| 9 | Hybrid Search | BM25 + vector fusion via RRF (10.83 ms @ 100K) |
| 10 | Centrality | "What are my foundational beliefs?" -- PageRank (34.3 ms @ 100K) |
| 11 | Shortest Path | "How are these two ideas connected?" -- BFS in 104 us |
| 12 | Belief Revision | "If I learn X, what breaks?" -- counterfactual cascade |
| 13 | Reasoning Gaps | "Where am I guessing?" -- 5 gap categories |
| 14 | Analogical | "I've solved something like this before" -- structural fingerprints |
| 15 | Consolidation | "Clean up: dedup, link contradictions, promote inferences" |
| 16 | Drift Detection | "How has my understanding of this topic evolved?" |
Belief Revision -- Counterfactual propagation. Inject a hypothetical fact, trace every causal edge forward, report what gets invalidated. Read-only -- nothing changes until you say so. Only possible because of typed causal edges + confidence scores.
report = brain.revise("Team now knows Go")
# report.contradicted -> ["Team has no Go experience"]
# report.invalidated_decisions -> ["Chose Rust because no Go"]
# report.total_affected -> 5 nodes
Reasoning Gaps -- Structural health audit. Finds decisions with no recorded justification, inferences built on a single fragile fact, high-impact nodes with low confidence, and correction chains that keep changing.
report = brain.gaps()
# report.health_score -> 0.73
# report.gaps -> [UnjustifiedDecision(...), SingleSourceInference(...), ...]
Analogical Reasoning -- Subgraph pattern matching. Finds past situations with the same reasoning structure even if the domain is completely different. A monolith-to-microservices migration matches a previous Flask-to-FastAPI migration -- same shape, different content.
Consolidation -- Brain maintenance. Deduplicates near-identical facts, detects unlinked contradictions, promotes stable inferences to facts. Dry-run by default. Automatic backup before any mutation.
Drift Detection -- Belief trajectory tracking. Shows how knowledge about a topic evolved session by session, computes stability scores, and identifies areas of active revision.
report = brain.drift("preferred language")
# Timeline: Python (session 1) -> Rust (session 15) -> exploring Zig (session 30)
# report.stability -> 0.3 (low -- keeps changing)
Install
One-liner (desktop profile, backwards-compatible):
curl -fsSL https://agentralabs.tech/install/memory | bash
Downloads a pre-built agentic-memory-mcp binary to ~/.local/bin/ and merges the MCP server into your Claude Desktop and Claude Code configs. Memory defaults to ~/.brain.amem. Requires curl and jq.
If release artifacts are not available, the installer automatically falls back to cargo install --git source install.
Environment profiles (one command per environment):
# Desktop MCP clients (auto-merge Claude Desktop + Claude Code when detected)
curl -fsSL https://agentralabs.tech/install/memory/desktop | bash
# Terminal-only (no desktop config writes)
curl -fsSL https://agentralabs.tech/install/memory/terminal | bash
# Remote/server hosts (no desktop config writes)
curl -fsSL https://agentralabs.tech/install/memory/server | bash
| Channel | Command | Result |
|---|---|---|
| GitHub installer (official) | curl -fsSL https://agentralabs.tech/install/memory | bash |
Installs release binaries when available, otherwise source fallback; merges MCP config |
| GitHub installer (desktop profile) | curl -fsSL https://agentralabs.tech/install/memory/desktop | bash |
Explicit desktop profile behavior |
| GitHub installer (terminal profile) | curl -fsSL https://agentralabs.tech/install/memory/terminal | bash |
Installs binaries only; no desktop config writes |
| GitHub installer (server profile) | curl -fsSL https://agentralabs.tech/install/memory/server | bash |
Installs binaries only; server-safe behavior |
| crates.io paired crates (official) | cargo install agentic-memory-cli agentic-memory-mcp |
Installs amem and agentic-memory-mcp |
| PyPI (SDK + installer) | pip install agentic-brain / pip install amem-installer |
Python SDK and auto-connector tools |
| npm (wasm) | npm install @agenticamem/memory |
WASM-based memory SDK for Node.js and browser |
Server auth and artifact sync
For cloud/server runtime:
export AGENTIC_TOKEN="$(openssl rand -hex 32)"
All MCP clients must send Authorization: Bearer <same-token>.
If .amem/.acb/.avis files are on another machine, sync them to the server first.
| Goal | Command |
|---|---|
| Just give me memory | Run the one-liner above |
| Python developer | pip install agentic-brain |
| Rust developer | cargo install agentic-memory-cli agentic-memory-mcp |
| Connect all AI tools | pip install amem-installer && amem-install install --auto |
Python SDK (requires amem Rust binary -- see INSTALL.md):
pip install agentic-brain
pip install agentic-brain[anthropic] # Claude
pip install agentic-brain[openai] # GPT
pip install agentic-brain[ollama] # Local models
pip install agentic-brain[all] # Everything
Rust CLI + MCP:
cargo install agentic-memory-cli # CLI (amem)
cargo install agentic-memory-mcp # MCP server
Rust library:
cargo add agentic-memory
Deployment Model
- Standalone by default: AgenticMemory is independently installable and operable. Integration with AgenticVision or AgenticCodebase is optional, never required.
- Autonomic operations by default: runtime maintenance uses safe profile-based defaults with backup, sleep-cycle upkeep, migration safeguards, and health-ledger snapshots.
| Area | Default behavior | Controls |
|---|---|---|
| Autonomic profile | Local-first conservative posture | `AMEM_AUTONOMIC_PROFILE=desktop |
| Sleep-cycle maintenance | Decay refresh, tier balancing, completed-session auto-archive | AMEM_SLEEP_CYCLE_SECS, AMEM_SLEEP_IDLE_SECS |
| Backup + retention | Rolling backups with bounded retention | AMEM_AUTO_BACKUP_SECS, AMEM_AUTO_BACKUP_RETENTION, AMEM_AUTO_BACKUP_DIR |
| Storage migration | Policy-gated with checkpointed auto-safe path | `AMEM_STORAGE_MIGRATION_POLICY=auto-safe |
| Storage budget policy | 20-year projection + auto-rollup when budget pressure appears | `AMEM_STORAGE_BUDGET_MODE=auto-rollup |
| Prompt + feedback auto-capture | Captures MCP prompt/tool context into .amem with privacy controls |
`AMEM_AUTO_CAPTURE_MODE=safe |
| Maintenance throttling | SLA-aware under sustained mutation load | AMEM_SLA_MAX_MUTATIONS_PER_MIN |
| Health ledger | Periodic operational snapshots (default: ~/.agentra/health-ledger) |
AMEM_HEALTH_LEDGER_DIR, AGENTRA_HEALTH_LEDGER_DIR, AMEM_HEALTH_LEDGER_EMIT_SECS |
MCP Server
Any MCP-compatible client gets instant access to persistent graph memory. The agentic-memory-mcp crate exposes the full AgenticMemory engine over the Model Context Protocol (JSON-RPC 2.0 over stdio).
cargo install agentic-memory-mcp
Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"agentic-memory": {
"command": "agentic-memory-mcp",
"args": ["serve"]
}
}
}
Zero-config: defaults to
~/.brain.amem. Override with"args": ["--memory", "/path/to/brain.amem", "serve"].
Memory modes — control how aggressively Claude saves:
| Mode | Behavior | Config |
|---|---|---|
| smart (default) | Auto-saves facts, decisions, preferences | ["serve"] |
| minimal | Only saves when you say "remember" | ["serve", "--mode", "minimal"] |
| full | Saves everything, creates session summaries | ["serve", "--mode", "full"] |
Configure VS Code / Cursor
Add to .vscode/settings.json:
{
"mcp.servers": {
"agentic-memory": {
"command": "agentic-memory-mcp",
"args": ["serve"]
}
}
}
agentic-memory MCP 질문
agentic-memory MCP는 어떤 도구를 제공하나요?
13개 도구를 제공합니다. 예: memory_capture_message, memory_capture_tool, memory_capture_file, memory_capture_decision, memory_capture_boundary.
AgenticMemory는 AI의 망각 문제를 어떻게 해결하나요?
에이전트의 지식을 단일 바이너리 파일 내의 탐색 가능한 그래프로 저장하여, 세션이 바뀌어도 사실, 결정, 추론 과정 및 수정 사항을 보존합니다.
어떤 유형의 쿼리를 지원하나요?
시간, 의미, 인과, 엔티티, 절차적 검색을 포함하여 총 16가지 유형의 쿼리를 지원합니다.
메모리 데이터는 안전하고 영구적인가요?
네, V3 아키텍처는 BLAKE3 무결성 체인을 사용하는 append-only 스토리지 레이어를 사용하여 메모리를 암호학적으로 변조가 불가능하게 보호합니다.
어떤 AI 클라이언트에서 이 메모리를 사용할 수 있나요?
Claude Code, Cursor, Windsurf, Cody와의 자동 동기화를 지원합니다.