Neuro-inspired long-term memory for AI agents with semantic graph and consolidation.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Enterprise-grade, privacy-first Long-Term Memory (LTM) engine for LLM agents, multi-agent frameworks, and MCP clients.
SMRITI is a high-performance, neuro-inspired long-term memory layer designed to give AI agents persistent, adaptive recall without blocking their real-time execution loop.
Inspired by human Dual-Process cognitive theory, SMRITI splits memory operations into:
| Feature | Naive RAG / Vector DBs | SMRITI Memory Engine |
|---|---|---|
| Latency | Scales linearly with context size; blocks agent loops | Sub-5ms ingestion (System 1); System 2 is asynchronous |
| Context Window | Stuffs raw logs, leading to prompt bloat and distraction | Miller's Law (7 Β± 2 slots) capacity-bounded Working Memory |
| Data Evolution | Static embeddings; struggles with contradictions/corrections | Automatic conflict resolution, abstraction, and temporal decay |
| Relationships | Flat vector search; no concept of entity links | Semantic Palace Graph showing structured Room/Topic associations |
| Privacy & Sync | All-or-nothing storage; complex namespace routing | Private Rooms and private=True tags natively isolating user syncs |
SMRITI can be used as a global, persistent memory layer across all your MCP-enabled developer clients.
Run the setup script directly in your terminal:
Install the package and run the setup CLI:
For application developers building custom agent loops.
SMRITI exposes 19 tools (13 native + 6 AMP aliases) for clients:
| Tool Name | Description |
|---|---|
smriti_encode | Ingests a new memory. Accept private=True to exclude from team syncs. |
smriti_recall | Retrieves memories using semantic and graph-based retrieval. |
smriti_get_context | Helper to inject the current active working memory slots into the context window. |
smriti_how_well_do_i_know | Performs a meta-memory confidence check on a given topic. |
smriti_knowledge_gaps | Identifies topics the agent has identified it needs more information on. |
smriti_pin | Marks a memory as permanent (protects it from strength decay). |
smriti_forget | Soft-deletes/archives a memory, leaving a cryptographic tombstone. |
smriti_consolidate | Triggers a background System 2 consolidation run. |
smriti_stats | Returns system-wide statistics (total memories, rooms, private counts). |
smriti_create_private_room | Spawns a private room. All memories inside this room are visibility-isolated. |
smriti_open_ui | Launches the interactive visual D3.js memory graph in your default browser. |
smriti_sync_obsidian | Exports the Semantic Palace graph structures to markdown files in an Obsidian Vault. |
These endpoints ensure complete conformance with the standard Agent Memory Protocol specification:
| AMP Tool | Native Mapping | Return Format |
|---|---|---|
amp.encode | smriti_encode | AMP standard JSON response |
amp.recall | smriti_recall | Array of {id, content, score, timestamp, status} |
amp.forget | smriti_forget | {status: "forgotten" | "not_found"} |
amp.stats | smriti_stats | {memory_count, ...} |
amp.pin | smriti_pin | {status: "pinned" | "not_found"} |
amp.consolidate | smriti_consolidate | {status: "ok", memories_processed: int} |
Use SmritiLangChainMemory as a drop-in replacement for default chat buffers. It limits active context using Working Memory and offloads the conversational history to the Semantic Palace graph in the background.
Tested against four architectures on the LoCoMo long-context dialogue dataset (28 turns, 15 evaluation questions):
| System | F1 Score | Latency | Tokens/Query | Consolidation |
|---|---|---|---|---|
| FullContext | 0.345 | 1147ms | 550 | β |
| MemGPT-style | 0.334 | 1397ms | 478 | β |
| NaiveRAG | 0.312 | 1387ms | 145 | β |
| SMRITI | 0.279 | 1317ms | 146 | 41.2s (async) |
| Mem0-style | 0.235 | 1088ms | 106 | β |
SMRITI retains high recall while drastically reducing query context size. Consolidation runs in the background and does not block client interactions.
Evaluated over 50+ chat sessions using the LongMemEval harness:
| System Configuration | Exact Match Accuracy | Average Query Latency |
|---|---|---|
| Baseline (Full Context) | 100.0% | 11.98s |
| SMRITI Dual-Process | 80.0% | 0.98s (12Γ latency reduction) |
Initialize SmritiConfig with custom parameters to tune the cognitive weights:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/smriti-memory-2)<a href="https://allmcps.com/mcp/smriti-memory-2"><img src="https://allmcps.com/api/badge/smriti-memory-2?style=directory" alt="SMRITI Memory on AllMCPs" /></a>