Agentic Memory
The Agentic Memory server provides a persistent, local-first memory and knowledge management system for AI agents, combining core memory operations, advanced hybrid search, a temporal knowledge graph, multi-agent coordination, skills management, feedback-driven ranking, maintenance, and monitoring.
Core Memory Operations: Save, read, update, delete, restore, supersede, and patch memories with structured Markdown content, categories (lessons, decisions, etc.), tags, importance, and pinning; soft-delete with recovery and hard-delete safeguards.
Advanced Search: Hybrid 14‑phase pipeline merging semantic (embedding), full-text (FTS5), knowledge graph, and fact retrieval; supports temporal filtering, reranking, and click-through feedback to continuously improve relevance.
Knowledge Graph: Explore, traverse, find shortest paths, and retrieve stats for a temporal, contradiction-aware graph with belief tracking, entity extraction, and low‑confidence belief review.
Multi-Agent Coordination: Manage tasks (create, claim, update, release, complete), lock/unlock files, exchange inter-agent messages, and share project state.
Session & Context: Generate structured cold‑start briefings; recall context for session continuity with pinned memories, user profiles, recent digests, and high‑importance items.
Skills Management: Extract skills from memories, list them by usage, and compile lesson notes into validated, executable agent rule files.
Feedback & Reinforcement: Record implicit click-through feedback and explicit success/failure signals to improve future search ranking.
Audit & Revision History: Review recent activity, errors, and full revision logs for supersede, amend, revert, and delete events.
Maintenance & Organization: Safely compact databases, consolidate and deduplicate entries, purge expired data, rewrite links, and curate auto‑saved tool invocations.
Health Monitoring: Multi‑dimensional health dashboard (database, search, workers, crons, auto‑save, disk) with detailed JSON health checks.
Sharing: Share specific memories between agents and manage the shared memory pool.
Advanced & Profiling: Power‑user maintenance escape hatch; view system profiles, agent scopes, Adaptive Resonance Theory (ART/ARC) statistics, and cached skills.
Provides a search tool for CrewAI agents, allowing them to access Agentic Memory's knowledge base.
Provides tools for integrating Agentic Memory with LangChain agents, enabling search and save operations within LangChain workflows.
Supports exporting memories to an Obsidian vault using the Open Knowledge Format (OKF), enabling easy integration with Obsidian note-taking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agentic Memoryremember that I prefer dark mode"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agentic Memory
Quick Start · Features · Architecture · MCP Server · SDKs · Comparison · Docs · Contributing
What is Agentic Memory?
Agentic Memory gives AI agents persistent, cross-session, local-first memory — no cloud, no vendor lock-in, no API keys required. Memories are stored as human-readable Markdown files. A derived SQLite index enables fast full-text, semantic, and knowledge-graph search.
Built for Claude Code, OpenCode, the Agentic Memory IDE, and any MCP-compatible agent harness.
graph TD
A[Agentic Memory] --> B[Markdown - source]
A --> C[SQLite FTS5 - derived]
A --> D[14-Phase Search Pipeline]
B --> E[.md files - Git-ready]
C --> F[Temporal Knowledge Graph]
D --> G[CQRS + CRDT Multi-Agent Sync]
A --> H[25 MCP tools]
A --> I[55 cron scripts -> 1 scheduler]
A --> J[9 hooks]
A --> K[Python SDK + TypeScript SDK + REST API]Related MCP server: mem-persistence
Quick Start
Python SDK (Recommended)
from agentic_memory import MemoryClient
mc = MemoryClient()
mc.save("User prefers dark mode", category="preferences")
results = mc.search("dark mode")
for r in results:
print(f"[{r.score:.2f}] {r.content}")Agent Scoping
from agentic_memory import AgentMemory
coder = AgentMemory(agent_id="coder")
coder.save("Frontend uses React with TypeScript")
designer = AgentMemory(agent_id="designer")
designer.save("Brand colors are #FF5733 and #33FF57")MCP Server
# Add to your MCP config
{
"agentic-memory": {
"command": "agentic-memory-server"
}
}REST API
agentic-memory api --port 9878
curl http://localhost:9878/api/v1/search?q=dark+modeFeatures
Search — 14-Phase Hybrid Pipeline
Phase | Technique | Purpose |
1 | Query parsing + expansion | Normalization, reasoning expansion |
2 | Skill-first lookup | Conditional early return on skill match |
3 | Cache check | Return cached results if fresh |
4 | DB setup + filter construction | Open connection, build filters |
5 | FTS5 BM25 + KG facts | Keyword + fact retrieval |
6 | Embedding fallback | Semantic vector search (usearch + model2vec) |
7 | Hybrid fusion (RRF) | Merge sparse + dense results |
8 | Temporal filtering | Decay old memories, exclude outdated |
9 | Chunk enhancement + session clustering | Enrich with sub-document chunks |
10 | KG boost + multi-hop traversal | Concept centrality, graph expansion |
11 | Reranking | Cross-encoder + ColBERT late-interaction |
12 | Build output items | Assemble result objects |
13 | Postprocessing | Safety gates, quality filters, profiling |
14 | Finalization | Access recording, telemetry, envelope |
Each phase is independently isolated — no single failure kills the search.
Write — Crash-Safe, Conflict-Preserving
Saga transactions — Crash-consistent writes with undo/redo
CQRS write journal — Lock-free multi-agent writes via journal.db
CRDT field-level LWWES — Concurrent edits to different fields both win
Safe atomic write — POSIX rename, conflict file preservation
Knowledge Graph — Temporal + Contradiction-Aware
Entity extraction with Jaccard fuzzy matching
Temporal edges with
valid_at/invalid_atContradiction detection and supersession chains
Graph analytics (centrality, community detection)
Neural Forget Curve
Surprise-based retention formula considering access patterns, query relevance, recency, and importance:
retention = sigmoid(w_acc × access + w_surp × surprise + w_imp × importance + w_fit × fitness - w_rec × recency - bias)Cron Consolidation
39 crontab entries replaced with 1 consolidated scheduler that runs every 5 minutes, checks which jobs are due by frequency tier, and runs them sequentially.
System Health Dashboard
memory_system_health MCP tool returns green/yellow/red across 6 dimensions with actionable next steps: database, search, worker, crons, auto-save, disk.
Architecture
agentic-memory/
├── agentic_memory/ # Python SDK (pip installable)
│ ├── client.py # MemoryClient (save/search/CRUD)
│ ├── temporal.py # TemporalKG
│ ├── kg.py # KnowledgeGraph
│ ├── integrations/ # LangChain + CrewAI adapters
│ └── models.py # 8 typed dataclasses
├── search/ # 14-phase search pipeline
│ ├── orchestrator.py # Main pipeline (2,825 LOC)
│ ├── scoring.py # RRF, temporal decay, KG boost
│ ├── rerankers.py # Cross-encoder, ColBERT
│ ├── chunk_index.py # Semantic chunking
│ └── synthesis.py # Answer synthesis
├── save/ # Write path
│ ├── pipeline.py # Saga-wrapped save
│ ├── backlinks.py # Wiki-style backlinks
│ └── post_save_hooks.py # Post-save operations
├── infra/ # Infrastructure
│ ├── db.py # Connection pool + WAL
│ ├── write_journal.py # CQRS write journal
│ ├── embedding_search.py # Semantic embeddings
│ ├── reranker.py # Neural reranker
│ ├── vector_store.py # ANN index abstraction
│ ├── api_server.py # REST + WebSocket
│ └── cache.py # Multi-level caching
├── knowledge_graph/ # KG extraction + search
├── kg/ # Temporal KG + analytics
├── crdt/ # Field-level CRDT merge
├── fact/ # Fact extraction + temporal
├── background/ # Daemon + worker + circuit breaker
├── cron/ # 47+ cron jobs + consolidated scheduler
├── hooks/ # 6 lifecycle hooks
├── migrations/ # 57 reversible migrations
├── eval/ # 363 test files, 5,703+ test functions
├── ts-sdk/ # TypeScript SDK
├── mcp_*.py # 31 MCP modules
├── mcp_health.py # System health MCP tool
└── dashboard.py # Streamlit observabilityProduction stats: ~147K LOC, 365 test files, 5,735+ test functions, schema v76, 77 reversible migrations, 25 CORE MCP tools, 1 consolidated scheduler, 7 lifecycle hooks.
SDKs
Python
pip install agentic-memoryfrom agentic_memory import MemoryClient, AgentMemory, TemporalKG
mc = MemoryClient()
mc.save("Important context", category="lessons")
results = mc.search("context")
stats = mc.stats()TypeScript
npm install @agentic-memory/sdkimport { MemoryClient } from '@agentic-memory/sdk';
const client = new MemoryClient();
await client.add('Important context');
const results = await client.search('context');REST API
agentic-memory api --port 9878curl -X POST http://localhost:9878/api/v1/memories \
-H "Content-Type: application/json" \
-d '{"content": "Important context"}'MCP Server
17 CORE tools always visible to your agent. 95 ADMIN + 3 DEPRECATED behind memory_maintenance(operation="...").
CORE Tools
memory_search memory_save memory_delete
memory_recall memory_note memory_learn
memory_audit memory_organize memory_share
memory_graph memory_profile memory_session_start
memory_advanced memory_review_beliefs memory_curate_autosave
memory_health_check memory_system_healthSetup
{
"agentic-memory": {
"command": "agentic-memory-server",
"env": {
"MEMORY_KNOWLEDGE_GRAPH": "1",
"MEMORY_DB_PATH": "./memory.db"
}
}
}Integrations
LangChain
from agentic_memory.integrations.langchain.tool import search_tool, save_tool
agent = create_react_agent(llm, tools=[search_tool, save_tool])CrewAI
from agentic_memory.integrations.crewai.tool import AgenticMemorySearchTool
agent = Agent(..., tools=[AgenticMemorySearchTool()])OKF (Open Knowledge Format)
mc.okf_export("~/ObsidianVault/agent-memory")Configuration
Install Extras
pip install agentic-memory # Core
pip install agentic-memory[embeddings] # + semantic search
pip install agentic-memory[reranker] # + cross-encoder
pip install agentic-memory[langchain] # + LangChain
pip install agentic-memory[crewai] # + CrewAI
pip install agentic-memory[all] # EverythingKey Environment Variables
Variable | Default | Description |
|
| Database path |
|
| Markdown directory |
|
| Enable KG extraction |
|
| Enable semantic search |
|
| Enable LLM fact extraction |
Comparison
Feature | Agentic Memory | Mem0 | Letta | Zep |
Local-first | Yes | No | No | No |
MCP-native | 17 CORE tools | No | No | 1 tool |
14-phase search | Yes | No | No | No |
Temporal KG | Yes | Partial | No | Yes |
CRDT sync | Field-level | No | No | No |
CQRS journal | Yes | No | No | No |
Neural forget | Yes | No | No | No |
Python SDK | Yes | Yes | Yes | Yes |
TypeScript SDK | Yes | Yes | Yes | Yes |
LangChain | Yes | Yes | Yes | Yes |
CrewAI | Yes | Yes | Yes | No |
OKF support | Yes | No | No | No |
Test coverage | 5,703+ tests | ~500 | ~2,000 | ~300 |
License | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 |
Documentation
Section | Description |
Get running in 5 minutes | |
Full API reference | |
Full API reference | |
HTTP endpoints | |
System design | |
Integration guide | |
Integration guide | |
Search pipeline, KG, CRDT, tiers | |
Integration, debugging, cron setup | |
MCP tools, configuration, schema |
Contributing
See CONTRIBUTING.md for dev setup, coding conventions, and PR guidelines.
Issues and PRs welcome. For security vulnerabilities, see SECURITY.md.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.51Apache 2.0
- Alicense-qualityBmaintenancePersistent memory MCP server that stores and retrieves memories in Markdown files, enabling shared context across multiple AI agents with hybrid search and deduplication.MIT
- AlicenseBqualityBmaintenanceLocal-first memory server for AI coding agents that stores work sessions, tasks, and durable memories in Markdown files, exposed through MCP tools for session management and memory retrieval.10151MIT
- Alicense-qualityBmaintenanceMCP server that provides agentic memory management for markdown vaults, enabling hybrid search, governed writing, and maintenance of episodic, semantic, procedural, and working memories for LLM agents.MIT
Related MCP Connectors
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ArkaAiAdmin/Agentic-Memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server