nigrty
Click on "Deploy 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., "@nigrtyremember that I prefer dark mode in all my apps"
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.
RecallLattice is a permanent local memory layer for AI agents. It turns durable facts into a searchable, typed knowledge lattice and returns only the context that fits the task and token budget.
No vector database. No embedding API. No hosted account. One portable SQLite file.
What makes it different
Capability | What RecallLattice does |
Budgeted Context Forge | Packs ranked memories into a hard token ceiling instead of flooding the model context. |
Hybrid Recall | Combines exact phrases, terms, stems, prefixes, typo similarity, tags, importance, strength, and pins. |
Graph Neighborhoods | Traverses one to three hops around any memory and preserves typed relationships. |
Batch Capture | Saves up to 100 facts in one MCP call while applying normal categorization, tags, deduplication, and auto-linking. |
Suggested Connections | Finds useful missing graph edges without silently mutating the lattice. |
Smart Deduplication | Merges exact duplicate facts, unions tags, and keeps the highest importance value. |
Progressive Disclosure | Compact previews are the default; full records are retrieved only when needed. |
Memory Timeline | Joins activity with memory previews for a chronological, inspectable history. |
Spaced Review | Importance-aware decay, review queues, strength tracking, pins, streaks, and XP. |
3D Observatory | Draggable graph, fullscreen neighborhoods, context lab, command palette, timeline, heatmap, and live health. |
Related MCP server: Cortex
Start in sixty seconds
git clone https://github.com/Adam-ZS/RecallLattice.git
cd RecallLattice
./scripts/install.shOpen the private dashboard:
http://127.0.0.1:8799The installer creates ~/.recall-lattice, builds a persistent virtual environment, preserves an existing database, installs the MCP/dashboard dependencies, and enables the localhost-only dashboard service.
The smart memory pipeline
Save more signal
A batch passes through one consistent path:
Normalize each fact.
Infer a category when none is supplied.
Extract useful technical tags.
Merge exact duplicates instead of creating noise.
Find related memories and create typed similarity edges.
Store the canonical record in SQLite and synchronize FTS5.
Spend fewer tokens
A context request follows a separate retrieval path:
Score exact, lexical, stemmed, prefix, fuzzy, and tag matches.
Blend relevance with pin status, importance, and memory strength.
Optionally add one-hop graph context.
Deduplicate records.
Fit the strongest content into an exact token budget.
import recall_lattice as brain
pack = brain.context_pack(
"How does the deployment pipeline work?",
token_budget=768,
include_related=True,
)
print(pack["estimated_tokens"], pack["memories"])Architecture
The standard-library core owns SQLite, FTS5, ranking, graph traversal, decay, and deduplication. MCP and FastAPI are optional interfaces around that same core, so dashboard writes and agent writes behave identically.
MCP configuration
Install with the all extra, or use ./scripts/install.sh:
python -m pip install 'recall-lattice-memory[all]'Add the server to an MCP-compatible client:
{
"mcpServers": {
"recall_lattice": {
"command": "/home/YOU/.recall-lattice/.venv/bin/python",
"args": ["/home/YOU/.recall-lattice/recall_lattice_mcp.py"]
}
}
}Hermes Agent YAML:
mcp_servers:
recall_lattice:
command: /home/YOU/.recall-lattice/.venv/bin/python
args:
- /home/YOU/.recall-lattice/recall_lattice_mcp.py
enabled: trueRestart the client after changing its MCP configuration.
Nineteen MCP tools
Capture and retrieval
Tool | Purpose |
| Store one durable fact with auto-category, tags, deduplication, and links. |
| Store up to 100 facts in one call. |
| Hybrid ranked recall with compact/full modes and optional graph context. |
| Produce a ranked context bundle inside a strict token budget. |
| Retrieve one complete memory and its direct links. |
Graph intelligence
Tool | Purpose |
| Traverse one to three graph hops around a memory. |
| Preview useful missing associations without mutation. |
| Create a typed association. |
| Export all graph nodes and edges. |
Memory lifecycle
Tool | Purpose |
| Protect and prioritize a critical memory. |
| Remove pin priority. |
| Refresh strength through spaced review. |
| Find memories that need reinforcement. |
| Delete one memory by ID. |
| Preview or remove stale low-value records. |
Observability and portability
Tool | Purpose |
| Return compact health, graph, category, and XP metrics. |
| Return activity joined with memory previews. |
| Aggregate activity over time. |
| Export portable memory records. |
MCP examples
Capture a whole session efficiently
{
"items": [
{"content": "Project Aurora uses FastAPI", "category": "project", "importance": 8},
{"content": "Production deploys require a signed tag", "category": "procedure", "importance": 9},
"The dashboard binds to localhost"
],
"source": "session-summary"
}Forge task-specific context
{
"query": "Aurora production deployment",
"token_budget": 640,
"include_related": true
}Inspect a memory neighborhood
{
"memory_id": 42,
"depth": 2,
"limit": 80
}The 3D memory observatory
The dashboard is an operational surface, not a decorative landing page.
Context Forge — search, set a token ceiling, preview the exact packed memories, then copy.
Interactive brain — drag to rotate; double-click or press
EXPANDfor fullscreen.Neighborhood focus — open a memory and jump directly into its two-hop subgraph.
Connection suggestions — inspect likely missing edges from the memory modal.
Batch capture — paste one fact per line and store the entire set in one operation.
Neural timeline — watch stores, recalls, reviews, links, and merges chronologically.
Command palette — press
Ctrl/⌘ + Kto capture, forge, explore, export, review, or open a random memory.Keyboard navigation —
Nnew memory,FContext Forge,Gfullscreen graph,Escclose.Pointer depth — memory cards respond spatially to cursor position.
Reduced motion — respects the operating-system preference.
The server binds to 127.0.0.1 by default because the dashboard has no authentication.
Python API
import recall_lattice as brain
saved = brain.store(
"RecallLattice keeps its canonical store in SQLite",
category="system",
tags=["SQLite", "local-first"],
importance=9,
)
matches = brain.recall("local canonical memory", limit=5)
neighbors = brain.neighborhood(saved["id"], depth=2)
suggestions = brain.suggest_links(saved["id"], limit=5)
timeline = brain.timeline(days=30, limit=100)Use another database without editing source:
export RECALL_LATTICE_DB="$HOME/my-brain/memory.db"REST API
Method | Endpoint | Purpose |
|
| Hybrid ranked search. |
|
| Budgeted context bundle. |
|
| Typed graph neighborhood. |
|
| Missing-link candidates. |
|
| Activity with memory previews. |
|
| Store one form-encoded memory. |
|
| Store a JSON array supplied in the |
|
| Complete graph. |
|
| Health and usage metrics. |
|
| Portable JSON export. |
Interactive endpoint documentation is available at http://127.0.0.1:8799/docs.
Token efficiency
RecallLattice uses three layers to control context cost:
Compact MCP serialization omits duplicated bookkeeping.
Progressive disclosure keeps full content behind explicit retrieval.
Context Forge enforces a caller-selected token ceiling.
A measured three-result compact recall reduced serialized output from 4,566 characters to 1,229 characters: 73.1% less context before applying a Context Forge budget.
Durability and privacy
SQLite runs in WAL mode.
FTS5 synchronization is maintained by database triggers.
Schema upgrades rebuild indexes from the canonical memories table.
The database is a single portable file.
Dashboard and API default to localhost.
No telemetry, hosted database, embedding provider, or API key is required.
Database files, exports, backups, and environment files are ignored by Git.
Backup manually:
cp ~/.recall-lattice/recall-lattice.db \
~/.recall-lattice/recall-lattice.db.backup-$(date +%Y%m%d)Test and package
python -m unittest discover -s tests -v
python -m py_compile recall_lattice.py recall_lattice_protocol.py recall_lattice_mcp.py server.py
python -m pip wheel . --no-deps -w distThe suite covers storage, exact deduplication, automatic links, FTS synchronization, hybrid ranking, typo tolerance, tag filters, access metadata, compact serialization, token-budget enforcement, batch capture, graph traversal, timeline previews, and all MCP schemas.
AI-agent setup
llms.txt gives coding agents a compact machine-readable installation guide, architecture summary, tool inventory, and operational constraints.
Contributing
Read CONTRIBUTING.md, open a focused issue, and submit changes through a pull request. main is protected from deletion and force pushes and requires linear history and resolved review conversations.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
- memnodeOAuthdev.memnode
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
- KogniteOAuthdev.kognite
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides persistent, searchable memory for MCP-compatible agents, enabling recall by meaning, automatic decay, trust scoring, and cross-agent handoffs.5MIT
- AlicenseNot gradedqualityDmaintenanceLocal-first AI memory layer with hybrid retrieval and brain-inspired namespaces. Enables agents to save, search, and manage memories directly via MCP tools.3 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to share a portable, user-level memory layer through MCP, allowing them to store, search, update, link, and consolidate facts with optional full-text and vector retrieval.714 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store and semantically retrieve durable memories across sessions via MCP or REST, with tools for remembering, recalling, asking, updating, and forgetting memories.18 npmMIT