Two-layer memory MCP server for AI agents with 37 tools, RAG, graphs, wiki, auth
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 into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Give your AI agents real memory โ episodic recall, knowledge graphs, hybrid search, and envelope encryption in a single MCP server. 19 tools. 4-layer hierarchy. 250+ tests.
mcp-ariel-memory is a production-ready MCP (Model Context Protocol) server that provides persistent, searchable memory for AI agents. It implements a two-layer architecture:
The server is built with the official MCP Python SDK (FastMCP), supports both stdio and HTTP transports, and includes enterprise features like authentication, rate limiting, automatic backups, and a real-time dashboard.
| Feature | mcp-ariel-memory | Typical Memory |
|---|---|---|
| Memory hierarchy | L1โL2โL3โL4 (4 layers) | Flat key-value store |
| Adaptive Threshold | Dynamic EMA-based noise filtering | Static threshold |
| Hybrid search | FTS5 + binary embeddings + RRF | FTS or vector only |
| ITS scoring | Novelty + relevance via document frequency | None |
| Knowledge graphs | Epistemic + Temporal | None |
| Typed memory | 13 categories with per-type retention | None |
| Two layers | User (about people) + Agent (self-knowledge) | User only |
| Wiki | 14 types, .md files as source of truth, FTS5 | None |
| Auto-Compaction | Periodic archiving of low-importance items | None |
| Encryption | libsodium secretbox (keychain-first) | Usually none |
| Metrics | Real-time Prometheus exporter (port 9120) | None |
| Tests | 250 (79 property-based/logic/chaos) | โ |
| Dashboard | Real-time HTML dashboard | โ |
Requires Python 3.10+ on the system. The npm wrapper automatically installs the Python package.
mcp-ariel-memory includes built-in tools for keeping the system healthy:
9120. Monitor search latency, operation counts, and memory growth.Add to claude_desktop_config.json:
Or with Docker:
Add to Hermes config (YAML format):
| Platform | Method | Notes |
|---|---|---|
| Windows | npm / pip / Docker | aiosqlite fallback (sync sqlite3 + to_thread) |
| Linux | npm / pip / Docker | aiosqlite (native async) |
| macOS | npm / pip / Docker | aiosqlite (native async) |
| Docker | Any | Works on all platforms with Docker |
Single memory.db file โ no external database required.
| Table | Module | Purpose |
|---|---|---|
core_memory | core/memory.py | L4 key-value facts |
sessions | core/session.py | L2 session history |
episodes | core/episodic.py | L3 episodic memories |
staging_memories | shared/dream_buffer.py | Temporary staging |
archived_memories | shared/archived_memories.py | Archived memories |
audit_log | features/audit_trail.py | Audit trail |
| `rate_limits" | features/rate_limiting.py | Rate limiting |
embedding_cache | shared/embeddings.py | Cached embeddings |
rag_pages | rag/engine.py | RAG document pages |
rag_chunks | rag/engine.py | RAG document chunks |
rag_relations | rag/engine.py | RAG relations |
epi_nodes | graph/epistemic.py | Epistemic graph nodes |
epi_edges | graph/epistemic.py | Epistemic graph edges |
temporal_events | graph/temporal.py | Temporal events |
temporal_links | graph/temporal.py | Temporal links |
user_wiki | wiki/models.py | User wiki entries |
agent_wiki | wiki/models.py | Agent wiki entries |
wiki_index | wiki/index.py | Wiki FTS5 index |
memory_conflicts | rag/conflict.py | Memory conflicts |
migration_log | shared/migrations.py | Migration history |
| Feature | Description |
|---|---|
| 19 MCP Tools | Layer tools (11): remember, recall, forget, session, episode, graph, stats, context. Ops tools (8): api_key, backup, saga, data, replica, cleanup, purge, search |
| Two-Layer Memory | L1 ReflexBuffer โ L2 SessionStore โ L3 EpisodicMemory โ L4 CoreMemory |
| Envelope Encryption | libsodium secretbox (AES-256-GCM) for API keys, tokens, saga state |
| Unified Search API | Single search() method with 4 strategies: fts, mib, hybrid, auto |
| MultiSourceRAG | Unified search across RAG + Wiki with deduplication and reranking |
| ITS Scoring | Novelty component using document frequency as prior for better ranking |
| Supervised Thresholds | Per-dimension MIB thresholds trained on labeled data (+10-15% recall) |
| Knowledge Graph | Epistemic graph (facts, decisions) + Temporal graph (timeline) |
| Wiki System | 14 types (7 user + 7 agent), .md files as source of truth, FTS5 index |
| 24 Hooks | 12 user hooks + 12 agent hooks, integrated into tool pipeline |
| Saga Pattern | Multi-step operations with compensation, timeout, watchdog |
| Dashboard | HTML dashboard with stats, facts, episodes, audit log |
| Auth | API keys + Bearer tokens, encrypted at rest |
| Rate Limiting | Per-user limits on write operations (100 req/min default) |
| Backup | Auto-backups with jitter, restore, cleanup |
| Metrics | Prometheus-compatible metrics endpoint |
| Read-Only Replica | SQLite read-only replica for queries |
| Embeddings | Multilingual (100+ languages including Russian) |
| Strategy | Description | When to Use |
|---|---|---|
fts | Full-text search via FTS5 with LIKE fallback | Short queries (<3 words), keyword-heavy |
mib | Binary embedding similarity (Hamming distance) | Semantic similarity, concept-based |
hybrid | Combines FTS5 + MIB with Scorer ranking | General-purpose, best recall |
auto | Automatically selects fts for short queries, hybrid for longer | Default for most use cases |
Full documentation with API reference, architecture diagrams, and guides:
| Topic | Link |
|---|---|
| Architecture | Overview |
| MCP Tools | Reference |
| Configuration | Guide |
| API Reference | Secrets, Importance |
| Operation | Speed | Notes |
|---|---|---|
memory_remember | 1533 ops/s | SQLite + encryption |
memory_recall | 6739 q/s | FTS5 search |
encrypt+decrypt | 402 ops/s | argon2id KDF |
fts_search | 1817 ops/s | FTS5 full-text search |
mib_search | 215 ops/s | Binary embedding search (batched) |
hybrid_search | 178 ops/s | FTS5 + MIB combined |
epi_tags_join | 1850 ops/s | Tag lookup via epi_tags table |
rag_chunks_join | 3537 ops/s | rag_chunks + rag_pages JOIN |
On first run without a master key, the server auto-generates a key and saves it to .env for development convenience.
MIT License - see LICENSE for details.
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/ariel-memory)<a href="https://allmcps.com/mcp/ariel-memory"><img src="https://allmcps.com/api/badge/ariel-memory?style=directory" alt="Ariel Memory on AllMCPs" /></a>